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/camplynx_cas.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/lib/formats/camplynx_cas.cpp') diff --git a/src/lib/formats/camplynx_cas.cpp b/src/lib/formats/camplynx_cas.cpp index 330df5601a1..d6181d845ff 100644 --- a/src/lib/formats/camplynx_cas.cpp +++ b/src/lib/formats/camplynx_cas.cpp @@ -37,7 +37,7 @@ Each byte is 8 bits (MSB first) with no start or stop bits. // image size static int camplynx_image_size; -static int camplynx_put_samples(INT16 *buffer, int sample_pos, int count, int level) +static int camplynx_put_samples(int16_t *buffer, int sample_pos, int count, int level) { if (buffer) { @@ -48,7 +48,7 @@ static int camplynx_put_samples(INT16 *buffer, int sample_pos, int count, int le return count; } -static int camplynx_output_bit(INT16 *buffer, int sample_pos, bool bit) +static int camplynx_output_bit(int16_t *buffer, int sample_pos, bool bit) { int samples = 0; @@ -66,10 +66,10 @@ static int camplynx_output_bit(INT16 *buffer, int sample_pos, bool bit) return samples; } -static int camplynx_output_byte(INT16 *buffer, int sample_pos, UINT8 byte) +static int camplynx_output_byte(int16_t *buffer, int sample_pos, uint8_t byte) { int samples = 0; - UINT8 i; + uint8_t i; /* data */ for (i = 0; i<8; i++) @@ -78,11 +78,11 @@ static int camplynx_output_byte(INT16 *buffer, int sample_pos, UINT8 byte) return samples; } -static int camplynx_handle_cassette(INT16 *buffer, const UINT8 *bytes) +static int camplynx_handle_cassette(int16_t *buffer, const uint8_t *bytes) { - UINT32 sample_count = 0; - UINT32 byte_count = 0; - UINT32 i; + uint32_t sample_count = 0; + uint32_t byte_count = 0; + uint32_t i; /* header zeroes */ for (i=0; i<555; i++) @@ -137,7 +137,7 @@ static int camplynx_handle_cassette(INT16 *buffer, const UINT8 *bytes) Generate samples for the tape image ********************************************************************/ -static int camplynx_cassette_fill_wave(INT16 *buffer, int length, UINT8 *bytes) +static int camplynx_cassette_fill_wave(int16_t *buffer, int length, uint8_t *bytes) { return camplynx_handle_cassette(buffer, bytes); } @@ -146,7 +146,7 @@ static int camplynx_cassette_fill_wave(INT16 *buffer, int length, UINT8 *bytes) Calculate the number of samples needed for this tape image ********************************************************************/ -static int camplynx_cassette_calculate_size_in_samples(const UINT8 *bytes, int length) +static int camplynx_cassette_calculate_size_in_samples(const uint8_t *bytes, int length) { camplynx_image_size = length; -- cgit v1.2.3-70-g09d2