summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/wavwrite.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/util/wavwrite.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/util/wavwrite.cpp')
-rw-r--r--src/lib/util/wavwrite.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/util/wavwrite.cpp b/src/lib/util/wavwrite.cpp
index d052287216d..0667e9dcaff 100644
--- a/src/lib/util/wavwrite.cpp
+++ b/src/lib/util/wavwrite.cpp
@@ -8,16 +8,16 @@
struct wav_file
{
FILE *file;
- UINT32 total_offs;
- UINT32 data_offs;
+ uint32_t total_offs;
+ uint32_t data_offs;
};
wav_file *wav_open(const char *filename, int sample_rate, int channels)
{
wav_file *wav;
- UINT32 bps, temp32;
- UINT16 align, temp16;
+ uint32_t bps, temp32;
+ uint16_t align, temp16;
/* allocate memory for the wav struct */
wav = global_alloc_nothrow(wav_file);
@@ -90,8 +90,8 @@ wav_file *wav_open(const char *filename, int sample_rate, int channels)
void wav_close(wav_file *wav)
{
- UINT32 total;
- UINT32 temp32;
+ uint32_t total;
+ uint32_t temp32;
if (!wav) return;
@@ -114,7 +114,7 @@ void wav_close(wav_file *wav)
}
-void wav_add_data_16(wav_file *wav, INT16 *data, int samples)
+void wav_add_data_16(wav_file *wav, int16_t *data, int samples)
{
if (!wav) return;
@@ -124,9 +124,9 @@ void wav_add_data_16(wav_file *wav, INT16 *data, int samples)
}
-void wav_add_data_32(wav_file *wav, INT32 *data, int samples, int shift)
+void wav_add_data_32(wav_file *wav, int32_t *data, int samples, int shift)
{
- std::vector<INT16> temp;
+ std::vector<int16_t> temp;
int i;
if (!wav || !samples) return;
@@ -147,9 +147,9 @@ void wav_add_data_32(wav_file *wav, INT32 *data, int samples, int shift)
}
-void wav_add_data_16lr(wav_file *wav, INT16 *left, INT16 *right, int samples)
+void wav_add_data_16lr(wav_file *wav, int16_t *left, int16_t *right, int samples)
{
- std::vector<INT16> temp;
+ std::vector<int16_t> temp;
int i;
if (!wav || !samples) return;
@@ -167,9 +167,9 @@ void wav_add_data_16lr(wav_file *wav, INT16 *left, INT16 *right, int samples)
}
-void wav_add_data_32lr(wav_file *wav, INT32 *left, INT32 *right, int samples, int shift)
+void wav_add_data_32lr(wav_file *wav, int32_t *left, int32_t *right, int samples, int shift)
{
- std::vector<INT16> temp;
+ std::vector<int16_t> temp;
int i;
if (!wav || !samples) return;