Mercurial > mplayer.hg
changeset 3967:faf5af8e5481
mono ac3 support
author | arpi |
---|---|
date | Thu, 03 Jan 2002 22:59:21 +0000 |
parents | 6185a66a63cf |
children | 3bbaeba57939 |
files | liba52/resample_c.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/liba52/resample_c.c Thu Jan 03 21:12:35 2002 +0000 +++ b/liba52/resample_c.c Thu Jan 03 22:59:21 2002 +0000 @@ -20,6 +20,15 @@ return 5*256; } +static int a52_resample_MONO_to_1_C(float * _f, int16_t * s16){ + int i; + int32_t * f = (int32_t *) _f; + for (i = 0; i < 256; i++) { + s16[i] = convert (f[i]); + } + return 1*256; +} + static int a52_resample_STEREO_to_2_C(float * _f, int16_t * s16){ int i; int32_t * f = (int32_t *) _f; @@ -136,6 +145,7 @@ switch (flags) { case A52_MONO: if(ch==5) return a52_resample_MONO_to_5_C; + if(ch==1) return a52_resample_MONO_to_1_C; break; case A52_CHANNEL: case A52_STEREO: