summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/rk_cas.cpp
diff options
context:
space:
mode:
author holub <andrei.holub@gmail.com>2025-04-25 12:50:12 -0400
committer GitHub <noreply@github.com>2025-04-26 02:50:12 +1000
commit0855e13672a17e5601eb72491f8a013f044c20d3 (patch)
tree95e344618252c68379a81ed9a069b8ae37bf039b /src/lib/formats/rk_cas.cpp
parentbbb45dfa649e7d5901ea26cd4b7b2d5e8f6f4aca (diff)
formats/cassimg.cpp: Pass byte count to wave fill function for legacy cassette formats. (#13294)
formats/tzx_cass.cpp: Check length of data read for TAP format blocks (fixes MT08952).
Diffstat (limited to 'src/lib/formats/rk_cas.cpp')
-rw-r--r--src/lib/formats/rk_cas.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/formats/rk_cas.cpp b/src/lib/formats/rk_cas.cpp
index e63569f1308..25bbb79eea3 100644
--- a/src/lib/formats/rk_cas.cpp
+++ b/src/lib/formats/rk_cas.cpp
@@ -77,7 +77,7 @@ static int gam_cas_to_wav_size( const uint8_t *casdata, int caslen ) {
return (RK_HEADER_LEN * 8 * 2 + caslen * 8 * 2) * RK_SIZE_20;
}
-static int rk20_cas_fill_wave( int16_t *buffer, int length, const uint8_t *bytes ) {
+static int rk20_cas_fill_wave( int16_t *buffer, int length, const uint8_t *bytes, int ) {
int i;
int16_t * p = buffer;
@@ -93,7 +93,7 @@ static int rk20_cas_fill_wave( int16_t *buffer, int length, const uint8_t *bytes
return p - buffer;
}
-static int rk22_cas_fill_wave( int16_t *buffer, int length, const uint8_t *bytes ) {
+static int rk22_cas_fill_wave( int16_t *buffer, int length, const uint8_t *bytes, int ) {
int i;
int16_t * p = buffer;
@@ -109,7 +109,7 @@ static int rk22_cas_fill_wave( int16_t *buffer, int length, const uint8_t *bytes
return p - buffer;
}
-static int rk60_cas_fill_wave( int16_t *buffer, int length, const uint8_t *bytes ) {
+static int rk60_cas_fill_wave( int16_t *buffer, int length, const uint8_t *bytes, int ) {
int i;
int16_t * p = buffer;
@@ -125,7 +125,7 @@ static int rk60_cas_fill_wave( int16_t *buffer, int length, const uint8_t *bytes
return p - buffer;
}
-static int gam_cas_fill_wave( int16_t *buffer, int length, const uint8_t *bytes ) {
+static int gam_cas_fill_wave( int16_t *buffer, int length, const uint8_t *bytes, int ) {
int i;
int16_t * p = buffer;