summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/camplynx_cas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/formats/camplynx_cas.cpp')
-rw-r--r--src/lib/formats/camplynx_cas.cpp20
1 files changed, 10 insertions, 10 deletions
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;