diff options
Diffstat (limited to 'src/lib/util/wavwrite.cpp')
-rw-r--r-- | src/lib/util/wavwrite.cpp | 26 |
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; |