diff options
Diffstat (limited to 'dec_audio.c')
-rw-r--r-- | dec_audio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dec_audio.c b/dec_audio.c index 1b3d482000..22f9ab6cf9 100644 --- a/dec_audio.c +++ b/dec_audio.c @@ -61,7 +61,11 @@ extern int init_acm_audio_codec(sh_audio_t *sh_audio); extern int acm_decode_audio(sh_audio_t *sh_audio, void* a_buffer,int minlen,int maxlen); sh_audio->samplesize=2; +#if WORDS_BIGENDIAN +sh_audio->sample_format=AFMT_S16_BE; +#else sh_audio->sample_format=AFMT_S16_LE; +#endif sh_audio->samplerate=0; //sh_audio->pcm_bswap=0; |