summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/apf_apt.cpp
diff options
context:
space:
mode:
author holub <andrei.holub@gmail.com>2025-01-27 15:38:48 -0500
committer GitHub <noreply@github.com>2025-01-27 15:38:48 -0500
commitcdb94c2be58ccbc427871890017e2213ee634079 (patch)
treec011024ee4c800db05901aeb99d8e20b43fa1f88 /src/lib/formats/apf_apt.cpp
parent4b3183447b8d1e636dfce950f612e3e07f8071fa (diff)
formats/tzx_cas.cpp: Cut data size in case header requesting more than available (MT8952) (#13289)
Diffstat (limited to 'src/lib/formats/apf_apt.cpp')
-rw-r--r--src/lib/formats/apf_apt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/formats/apf_apt.cpp b/src/lib/formats/apf_apt.cpp
index dd1d119b010..0d9befb154b 100644
--- a/src/lib/formats/apf_apt.cpp
+++ b/src/lib/formats/apf_apt.cpp
@@ -152,12 +152,12 @@ static int apf_cpf_handle_cassette(int16_t *buffer, const uint8_t *bytes)
Generate samples for the tape image
********************************************************************/
-static int apf_apt_fill_wave(int16_t *buffer, int length, uint8_t *bytes)
+static int apf_apt_fill_wave(int16_t *buffer, int length, const uint8_t *bytes)
{
return apf_apt_handle_cassette(buffer, bytes);
}
-static int apf_cpf_fill_wave(int16_t *buffer, int length, uint8_t *bytes)
+static int apf_cpf_fill_wave(int16_t *buffer, int length, const uint8_t *bytes)
{
return apf_cpf_handle_cassette(buffer, bytes);
}