# HG changeset patch # User arpi # Date 1010098761 0 # Node ID faf5af8e5481d4e92f9847fa90fcc04c0a072356 # Parent 6185a66a63cf53687e803aa7924230ad785603c3 mono ac3 support diff -r 6185a66a63cf -r faf5af8e5481 liba52/resample_c.c --- 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: