summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/a26_cas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/formats/a26_cas.cpp')
-rw-r--r--src/lib/formats/a26_cas.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/lib/formats/a26_cas.cpp b/src/lib/formats/a26_cas.cpp
index 2e76eea73a0..5030c2bfe0f 100644
--- a/src/lib/formats/a26_cas.cpp
+++ b/src/lib/formats/a26_cas.cpp
@@ -17,16 +17,16 @@ Atari 2600 SuperCharger support
#define BIT_ONE_LENGTH 15
#define ZEROS_ONES 2755
-static const UINT16 one_wave[BIT_ONE_LENGTH] = {
+static const uint16_t one_wave[BIT_ONE_LENGTH] = {
0x2AE5, 0x4E60, 0x644E, 0x68E4, 0x5B56, 0x3DFE, 0x15ED, 0xEA13, 0xC202, 0xA4AA,
0x971C, 0x9BB2, 0xB1A0, 0xD51B, 0x0000
};
-static const UINT16 zero_wave[BIT_ZERO_LENGTH] = {
+static const uint16_t zero_wave[BIT_ZERO_LENGTH] = {
0x3DFE, 0x644E, 0x644E, 0x3DFE, 0x0000, 0xC202, 0x9BB2, 0x9BB2, 0xC202, 0x0000
};
-static int a26_cas_output_wave( INT16 **buffer, INT16 wave_data, int length ) {
+static int a26_cas_output_wave( int16_t **buffer, int16_t wave_data, int length ) {
int i;
if ( buffer ) {
@@ -38,10 +38,10 @@ static int a26_cas_output_wave( INT16 **buffer, INT16 wave_data, int length ) {
return length;
}
-static int a26_cas_output_bit( INT16 **buffer, int bit ) {
+static int a26_cas_output_bit( int16_t **buffer, int bit ) {
int size = 0;
int bit_size = bit ? BIT_ONE_LENGTH : BIT_ZERO_LENGTH;
- const INT16 *p = bit ? (const INT16 *)one_wave : (const INT16 *)zero_wave;
+ const int16_t *p = bit ? (const int16_t *)one_wave : (const int16_t *)zero_wave;
int i;
for ( i = 0; i < bit_size; i++ ) {
@@ -51,7 +51,7 @@ static int a26_cas_output_bit( INT16 **buffer, int bit ) {
return size;
}
-static int a26_cas_output_byte( INT16 **buffer, UINT8 byte ) {
+static int a26_cas_output_byte( int16_t **buffer, uint8_t byte ) {
int size = 0;
int i;
@@ -61,14 +61,14 @@ static int a26_cas_output_byte( INT16 **buffer, UINT8 byte ) {
return size;
}
-static int a26_cas_clearing_tone( INT16 **buffer ) {
+static int a26_cas_clearing_tone( int16_t **buffer ) {
int size = 0;
size += a26_cas_output_wave( buffer, 0, 44100 );
return size;
}
-static int a26_cas_zeros_ones( INT16 **buffer ) {
+static int a26_cas_zeros_ones( int16_t **buffer ) {
int size = 0;
int i;
@@ -81,7 +81,7 @@ static int a26_cas_zeros_ones( INT16 **buffer ) {
return size;
}
-static int a26_cas_output_contents( INT16 **buffer, const UINT8 *bytes ) {
+static int a26_cas_output_contents( int16_t **buffer, const uint8_t *bytes ) {
int size = 0;
int i, pages, j;
@@ -104,7 +104,7 @@ static int a26_cas_output_contents( INT16 **buffer, const UINT8 *bytes ) {
return size;
}
-static int a26_cas_do_work( INT16 **buffer, const UINT8 *bytes ) {
+static int a26_cas_do_work( int16_t **buffer, const uint8_t *bytes ) {
int size = 0;
/* Output clearing tone */
@@ -122,13 +122,13 @@ static int a26_cas_do_work( INT16 **buffer, const UINT8 *bytes ) {
return size;
}
-static int a26_cas_fill_wave( INT16 *buffer, int length, UINT8 *bytes ) {
- INT16 *p = buffer;
+static int a26_cas_fill_wave( int16_t *buffer, int length, uint8_t *bytes ) {
+ int16_t *p = buffer;
- return a26_cas_do_work( &p, (const UINT8 *)bytes );
+ return a26_cas_do_work( &p, (const uint8_t *)bytes );
}
-static int a26_cas_to_wav_size( const UINT8 *casdata, int caslen ) {
+static int a26_cas_to_wav_size( const uint8_t *casdata, int caslen ) {
return a26_cas_do_work( nullptr, casdata );
}
@@ -143,7 +143,7 @@ static const struct CassetteLegacyWaveFiller a26_legacy_fill_wave = {
};
static cassette_image::error a26_cassette_identify( cassette_image *cassette, struct CassetteOptions *opts ) {
- UINT64 size;
+ uint64_t size;
size = cassette_image_size( cassette );
if ( size == A26_CAS_SIZE ) {