From ddb290d5f615019c33c42b8d94e5a5254cabcf33 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 22 Oct 2016 13:13:17 +0200 Subject: 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 --- src/lib/formats/vt_cas.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/lib/formats/vt_cas.cpp') diff --git a/src/lib/formats/vt_cas.cpp b/src/lib/formats/vt_cas.cpp index d3284d4d301..9dbc68f8074 100644 --- a/src/lib/formats/vt_cas.cpp +++ b/src/lib/formats/vt_cas.cpp @@ -10,7 +10,7 @@ #define SILENCE 8000 -static int generic_fill_wave(INT16 *buffer, int length, UINT8 *code, int bitsamples, int bytesamples, int lo, INT16 *(*fill_wave_byte)(INT16 *buffer, int byte)) +static int generic_fill_wave(int16_t *buffer, int length, uint8_t *code, int bitsamples, int bytesamples, int lo, int16_t *(*fill_wave_byte)(int16_t *buffer, int byte)) { static int nullbyte; @@ -66,7 +66,7 @@ static int generic_fill_wave(INT16 *buffer, int length, UINT8 *code, int bitsamp #define V1_BITSAMPLES 6 #define V1_BYTESAMPLES 8*V1_BITSAMPLES -static INT16 *vtech1_fill_wave_byte(INT16 *buffer, int byte) +static int16_t *vtech1_fill_wave_byte(int16_t *buffer, int byte) { int i; @@ -92,7 +92,7 @@ static INT16 *vtech1_fill_wave_byte(INT16 *buffer, int byte) return buffer; } -static int vtech1_cassette_fill_wave(INT16 *buffer, int length, UINT8 *code) +static int vtech1_cassette_fill_wave(int16_t *buffer, int length, uint8_t *code) { return generic_fill_wave(buffer, length, code, V1_BITSAMPLES, V1_BYTESAMPLES, V1_LO, vtech1_fill_wave_byte); } @@ -140,7 +140,7 @@ CASSETTE_FORMATLIST_END #define VT2_BITSAMPLES 18 #define VT2_BYTESAMPLES 8*VT2_BITSAMPLES -static const INT16 vtech2_bit0[VT2_BITSAMPLES] = +static const int16_t vtech2_bit0[VT2_BITSAMPLES] = { /* short cycle, long cycles */ VT2_HI,VT2_HI,VT2_HI,VT2_LO,VT2_LO,VT2_LO, @@ -148,7 +148,7 @@ static const INT16 vtech2_bit0[VT2_BITSAMPLES] = VT2_LO,VT2_LO,VT2_LO,VT2_LO,VT2_LO,VT2_LO }; -static const INT16 vtech2_bit1[VT2_BITSAMPLES] = +static const int16_t vtech2_bit1[VT2_BITSAMPLES] = { /* three short cycle */ VT2_HI,VT2_HI,VT2_HI,VT2_LO,VT2_LO,VT2_LO, @@ -157,7 +157,7 @@ static const INT16 vtech2_bit1[VT2_BITSAMPLES] = }; -static INT16 *vtech2_fill_wave_bit(INT16 *buffer, int bit) +static int16_t *vtech2_fill_wave_bit(int16_t *buffer, int bit) { int i; if( bit ) @@ -174,7 +174,7 @@ static INT16 *vtech2_fill_wave_bit(INT16 *buffer, int bit) } -static INT16 *vtech2_fill_wave_byte(INT16 *buffer, int byte) +static int16_t *vtech2_fill_wave_byte(int16_t *buffer, int byte) { buffer = vtech2_fill_wave_bit(buffer, (byte >> 7) & 1); buffer = vtech2_fill_wave_bit(buffer, (byte >> 6) & 1); @@ -187,7 +187,7 @@ static INT16 *vtech2_fill_wave_byte(INT16 *buffer, int byte) return buffer; } -static int vtech2_cassette_fill_wave(INT16 *buffer, int length, UINT8 *code) +static int vtech2_cassette_fill_wave(int16_t *buffer, int length, uint8_t *code) { return generic_fill_wave(buffer, length, code, VT2_BITSAMPLES, VT2_BYTESAMPLES, VT2_LO, vtech2_fill_wave_byte); } -- cgit v1.2.3-70-g09d2 a> 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77