summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/cbm_tap.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2023-09-17 14:47:13 -0400
committer AJR <ajrhacker@users.noreply.github.com>2023-09-17 14:47:13 -0400
commit26a310422adc69167ea180f8ca48b8aca240b2c6 (patch)
treebbdd0974e243a8c7a150a60dafd6e6db7a2486d9 /src/lib/formats/cbm_tap.cpp
parent2dc489fb90362a7d2ec6d34f64d899d0e24c1cc8 (diff)
formats: Use multibyte.h functions in more files
Diffstat (limited to 'src/lib/formats/cbm_tap.cpp')
-rw-r--r--src/lib/formats/cbm_tap.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/formats/cbm_tap.cpp b/src/lib/formats/cbm_tap.cpp
index eeb1872f28e..743ad4282d2 100644
--- a/src/lib/formats/cbm_tap.cpp
+++ b/src/lib/formats/cbm_tap.cpp
@@ -97,6 +97,8 @@ below could be not working. FP ]
#include "cbm_tap.h"
#include "imageutl.h"
+#include "multibyte.h"
+
#define CBM_WAV_FREQUENCY 44100
@@ -281,7 +283,7 @@ static int cbm_tap_do_work( int16_t **buffer, int length, const uint8_t *data )
if (j >= 4)
{
- over_pulse_length = ((over_pulse_bytes[2] << 16) | (over_pulse_bytes[1] << 8) | over_pulse_bytes[0]) >> 3;
+ over_pulse_length = get_u24le(over_pulse_bytes) >> 3;
byte_samples = tap_data_to_samplecount(over_pulse_length, tap_frequency);
/* waveamp_high = WAVE_PAUSE; */
j = 0;