diff options
author | 2016-07-31 16:47:26 +0200 | |
---|---|---|
committer | 2016-07-31 16:47:26 +0200 | |
commit | f127621e13050aad6b455ebfadec5bfdcbdd00d4 (patch) | |
tree | 0601ca3093ab58610f108f93167d344151b2d4e5 /src/lib/util/wavwrite.cpp | |
parent | eaa70ae0313eb1135ba63814f07f7e22c766a504 (diff) |
made constexprs lower case and used constexpr for returning input value as well for rest of defines in osdcomm.h (nw)
Diffstat (limited to 'src/lib/util/wavwrite.cpp')
-rw-r--r-- | src/lib/util/wavwrite.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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); |