summaryrefslogtreecommitdiff
path: root/apps/codecs/wav_enc.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-01-30 00:58:45 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-01-30 00:58:45 +0000
commit18770dac2e560c88daa3ca9944917be561c3548f (patch)
tree5adf8aef7cb7999a6e07ddefcbb9e1d9bf18a15c /apps/codecs/wav_enc.c
parentc0c769c5a86c56c2ab2c9e88515a64da98575182 (diff)
downloadrockbox-18770dac2e560c88daa3ca9944917be561c3548f.tar.gz
rockbox-18770dac2e560c88daa3ca9944917be561c3548f.zip
Use __builtin_constant_p() to select the best byteswapping method: constant or target optimized. Same macro can then be used for constant values and inits as well as non-constant.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29171 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/wav_enc.c')
-rw-r--r--apps/codecs/wav_enc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/wav_enc.c b/apps/codecs/wav_enc.c
index b11c3a2e99..193181d825 100644
--- a/apps/codecs/wav_enc.c
+++ b/apps/codecs/wav_enc.c
@@ -71,14 +71,14 @@ static const struct riff_header riff_header =
71 /* format header */ 71 /* format header */
72 { 'W', 'A', 'V', 'E' }, /* format */ 72 { 'W', 'A', 'V', 'E' }, /* format */
73 { 'f', 'm', 't', ' ' }, /* format_id */ 73 { 'f', 'm', 't', ' ' }, /* format_id */
74 H_TO_LE32(16), /* format_size */ 74 htole32(16), /* format_size */
75 /* format data */ 75 /* format data */
76 H_TO_LE16(1), /* audio_format */ 76 htole16(1), /* audio_format */
77 0, /* num_channels (*) */ 77 0, /* num_channels (*) */
78 0, /* sample_rate (*) */ 78 0, /* sample_rate (*) */
79 0, /* byte_rate (*) */ 79 0, /* byte_rate (*) */
80 0, /* block_align (*) */ 80 0, /* block_align (*) */
81 H_TO_LE16(PCM_DEPTH_BITS), /* bits_per_sample */ 81 htole16(PCM_DEPTH_BITS), /* bits_per_sample */
82 /* data header */ 82 /* data header */
83 { 'd', 'a', 't', 'a' }, /* data_id */ 83 { 'd', 'a', 't', 'a' }, /* data_id */
84 0 /* data_size (*) */ 84 0 /* data_size (*) */