From f127621e13050aad6b455ebfadec5bfdcbdd00d4 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 31 Jul 2016 16:47:26 +0200 Subject: made constexprs lower case and used constexpr for returning input value as well for rest of defines in osdcomm.h (nw) --- src/lib/util/wavwrite.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/lib/util/wavwrite.cpp') diff --git a/src/lib/util/wavwrite.cpp b/src/lib/util/wavwrite.cpp index 7172873a14d..d052287216d 100644 --- a/src/lib/util/wavwrite.cpp +++ b/src/lib/util/wavwrite.cpp @@ -47,33 +47,33 @@ wav_file *wav_open(const char *filename, int sample_rate, int channels) fwrite("fmt ", 1, 4, wav->file); /* write the format length */ - temp32 = LITTLE_ENDIANIZE_INT32(16); + temp32 = little_endianize_int32(16); fwrite(&temp32, 1, 4, wav->file); /* write the format (PCM) */ - temp16 = LITTLE_ENDIANIZE_INT16(1); + temp16 = little_endianize_int16(1); fwrite(&temp16, 1, 2, wav->file); /* write the channels */ - temp16 = LITTLE_ENDIANIZE_INT16(channels); + temp16 = little_endianize_int16(channels); fwrite(&temp16, 1, 2, wav->file); /* write the sample rate */ - temp32 = LITTLE_ENDIANIZE_INT32(sample_rate); + temp32 = little_endianize_int32(sample_rate); fwrite(&temp32, 1, 4, wav->file); /* write the bytes/second */ bps = sample_rate * 2 * channels; - temp32 = LITTLE_ENDIANIZE_INT32(bps); + temp32 = little_endianize_int32(bps); fwrite(&temp32, 1, 4, wav->file); /* write the block align */ align = 2 * channels; - temp16 = LITTLE_ENDIANIZE_INT16(align); + temp16 = little_endianize_int16(align); fwrite(&temp16, 1, 2, wav->file); /* write the bits/sample */ - temp16 = LITTLE_ENDIANIZE_INT16(16); + temp16 = little_endianize_int16(16); fwrite(&temp16, 1, 2, wav->file); /* write the 'data' tag */ @@ -100,13 +100,13 @@ void wav_close(wav_file *wav) /* update the total file size */ fseek(wav->file, wav->total_offs, SEEK_SET); temp32 = total - (wav->total_offs + 4); - temp32 = LITTLE_ENDIANIZE_INT32(temp32); + temp32 = little_endianize_int32(temp32); fwrite(&temp32, 1, 4, wav->file); /* update the data size */ fseek(wav->file, wav->data_offs, SEEK_SET); temp32 = total - (wav->data_offs + 4); - temp32 = LITTLE_ENDIANIZE_INT32(temp32); + temp32 = little_endianize_int32(temp32); fwrite(&temp32, 1, 4, wav->file); fclose(wav->file); -- cgit v1.2.3-70-g09d2