diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/lib/formats/cbm_tap.cpp | |
parent | 333bff8de64dfaeb98134000412796b4fdef970b (diff) |
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8
also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/lib/formats/cbm_tap.cpp')
-rw-r--r-- | src/lib/formats/cbm_tap.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/formats/cbm_tap.cpp b/src/lib/formats/cbm_tap.cpp index a7b28a8f8af..0b0950eebcc 100644 --- a/src/lib/formats/cbm_tap.cpp +++ b/src/lib/formats/cbm_tap.cpp @@ -130,7 +130,7 @@ below could be not working. FP ] #define CBM_HEADER_SIZE 20 -static INT16 wave_data = 0; +static int16_t wave_data = 0; static int len; @@ -155,7 +155,7 @@ static void toggle_wave_data(void ) wave_data = (wave_data == WAVE_HIGH) ? WAVE_LOW : WAVE_HIGH; } -static void cbm_output_wave( INT16 **buffer, int length ) +static void cbm_output_wave( int16_t **buffer, int length ) { if (buffer == nullptr) return; @@ -168,7 +168,7 @@ static void cbm_output_wave( INT16 **buffer, int length ) } -static int cbm_tap_do_work( INT16 **buffer, int length, const UINT8 *data ) +static int cbm_tap_do_work( int16_t **buffer, int length, const uint8_t *data ) { int i, j = 0; int size = 0; @@ -179,7 +179,7 @@ static int cbm_tap_do_work( INT16 **buffer, int length, const UINT8 *data ) int tap_frequency = 0; int byte_samples = 0; - UINT8 over_pulse_bytes[3] = {0 , 0, 0 }; + uint8_t over_pulse_bytes[3] = {0 , 0, 0 }; int over_pulse_length = 0; /* These waveamp_* values are currently stored but not used. Further investigations are needed to find real pulse amplitude @@ -228,7 +228,7 @@ static int cbm_tap_do_work( INT16 **buffer, int length, const UINT8 *data ) for (i = CBM_HEADER_SIZE; i < length; i++) { - UINT8 byte = data[i]; + uint8_t byte = data[i]; /* .TAP v0 */ /* Here is simple: @@ -319,7 +319,7 @@ static int cbm_tap_do_work( INT16 **buffer, int length, const UINT8 *data ) } -static int cbm_tap_to_wav_size( const UINT8 *tapdata, int taplen ) +static int cbm_tap_to_wav_size( const uint8_t *tapdata, int taplen ) { int size = cbm_tap_do_work(nullptr, taplen, tapdata); len = taplen; @@ -327,11 +327,11 @@ static int cbm_tap_to_wav_size( const UINT8 *tapdata, int taplen ) return size; } -static int cbm_tap_fill_wave( INT16 *buffer, int length, UINT8 *bytes ) +static int cbm_tap_fill_wave( int16_t *buffer, int length, uint8_t *bytes ) { - INT16 *p = buffer; + int16_t *p = buffer; - return cbm_tap_do_work(&p, len, (const UINT8 *)bytes); + return cbm_tap_do_work(&p, len, (const uint8_t *)bytes); } |