summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/rk_cas.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/lib/formats/rk_cas.cpp
parent333bff8de64dfaeb98134000412796b4fdef970b (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/rk_cas.cpp')
-rw-r--r--src/lib/formats/rk_cas.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/lib/formats/rk_cas.cpp b/src/lib/formats/rk_cas.cpp
index 8c422506451..18504fcb130 100644
--- a/src/lib/formats/rk_cas.cpp
+++ b/src/lib/formats/rk_cas.cpp
@@ -22,7 +22,7 @@
static int data_size;
-static INT16 *rk_emit_level(INT16 *p, int count, int level)
+static int16_t *rk_emit_level(int16_t *p, int count, int level)
{
int i;
@@ -33,7 +33,7 @@ static INT16 *rk_emit_level(INT16 *p, int count, int level)
return p;
}
-static INT16* rk_output_bit(INT16 *p, UINT8 b,int bitsize)
+static int16_t* rk_output_bit(int16_t *p, uint8_t b,int bitsize)
{
if (b)
{
@@ -49,7 +49,7 @@ static INT16* rk_output_bit(INT16 *p, UINT8 b,int bitsize)
return p;
}
-static INT16* rk_output_byte(INT16 *p, UINT8 byte,int bitsize)
+static int16_t* rk_output_byte(int16_t *p, uint8_t byte,int bitsize)
{
int i;
for (i=7; i>=0; i--)
@@ -59,29 +59,29 @@ static INT16* rk_output_byte(INT16 *p, UINT8 byte,int bitsize)
}
-static int rk20_cas_to_wav_size( const UINT8 *casdata, int caslen ) {
+static int rk20_cas_to_wav_size( const uint8_t *casdata, int caslen ) {
data_size = caslen;
return (RK_HEADER_LEN * 8 * 2 + 8*2 + caslen * 8 * 2) * RK_SIZE_20;
}
-static int rk22_cas_to_wav_size( const UINT8 *casdata, int caslen ) {
+static int rk22_cas_to_wav_size( const uint8_t *casdata, int caslen ) {
data_size = caslen;
return (RK_HEADER_LEN * 8 * 2 + 8*2 + caslen * 8 * 2) * RK_SIZE_22;
}
-static int rk60_cas_to_wav_size( const UINT8 *casdata, int caslen ) {
+static int rk60_cas_to_wav_size( const uint8_t *casdata, int caslen ) {
data_size = caslen;
return (RK_HEADER_LEN * 8 * 2 + 8*2 + caslen * 8 * 2) * RK_SIZE_60;
}
-static int gam_cas_to_wav_size( const UINT8 *casdata, int caslen ) {
+static int gam_cas_to_wav_size( const uint8_t *casdata, int caslen ) {
data_size = caslen;
return (RK_HEADER_LEN * 8 * 2 + caslen * 8 * 2) * RK_SIZE_20;
}
-static int rk20_cas_fill_wave( INT16 *buffer, int length, UINT8 *bytes ) {
+static int rk20_cas_fill_wave( int16_t *buffer, int length, uint8_t *bytes ) {
int i;
- INT16 * p = buffer;
+ int16_t * p = buffer;
for (i=0; i<RK_HEADER_LEN; i++) {
p = rk_output_byte (p, 0x00, RK_SIZE_20 );
@@ -95,9 +95,9 @@ static int rk20_cas_fill_wave( INT16 *buffer, int length, UINT8 *bytes ) {
return p - buffer;
}
-static int rk22_cas_fill_wave( INT16 *buffer, int length, UINT8 *bytes ) {
+static int rk22_cas_fill_wave( int16_t *buffer, int length, uint8_t *bytes ) {
int i;
- INT16 * p = buffer;
+ int16_t * p = buffer;
for (i=0; i<RK_HEADER_LEN; i++) {
p = rk_output_byte (p, 0x00, RK_SIZE_22 );
@@ -111,9 +111,9 @@ static int rk22_cas_fill_wave( INT16 *buffer, int length, UINT8 *bytes ) {
return p - buffer;
}
-static int rk60_cas_fill_wave( INT16 *buffer, int length, UINT8 *bytes ) {
+static int rk60_cas_fill_wave( int16_t *buffer, int length, uint8_t *bytes ) {
int i;
- INT16 * p = buffer;
+ int16_t * p = buffer;
for (i=0; i<RK_HEADER_LEN; i++) {
p = rk_output_byte (p, 0x00, RK_SIZE_60 );
@@ -127,9 +127,9 @@ static int rk60_cas_fill_wave( INT16 *buffer, int length, UINT8 *bytes ) {
return p - buffer;
}
-static int gam_cas_fill_wave( INT16 *buffer, int length, UINT8 *bytes ) {
+static int gam_cas_fill_wave( int16_t *buffer, int length, uint8_t *bytes ) {
int i;
- INT16 * p = buffer;
+ int16_t * p = buffer;
for (i=0; i<RK_HEADER_LEN; i++) {
p = rk_output_byte (p, 0x00, RK_SIZE_20 );