[MPlayer-dev-eng] [RFC] Support for 8 channel audio
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Wed Aug 19 08:04:56 CEST 2009
On Tue, Aug 18, 2009 at 07:59:02PM -0400, Jason Tackaberry wrote:
> + case 3:
> + {
> + int8_t *dest_8 = dest;
> + const int8_t *src_8 = src;
> + for (i = 0; i < samples; i += 24) {
> + dest_8[i] = src_8[i+s0*3];
> + dest_8[i+1] = src_8[i+s0*3+1];
> + dest_8[i+2] = src_8[i+s0*3+2];
> + dest_8[i+3] = src_8[i+s1*3];
> + dest_8[i+4] = src_8[i+s1*3+1];
> + dest_8[i+5] = src_8[i+s1*3+2];
> + dest_8[i+6] = src_8[i+s2*3];
> + dest_8[i+7] = src_8[i+s2*3+1];
> + dest_8[i+8] = src_8[i+s2*3+2];
> + dest_8[i+9] = src_8[i+s3*3];
> + dest_8[i+10] = src_8[i+s3*3+1];
> + dest_8[i+11] = src_8[i+s3*3+2];
> + dest_8[i+12] = src_8[i+s4*3];
> + dest_8[i+13] = src_8[i+s4*3+1];
> + dest_8[i+14] = src_8[i+s4*3+2];
> + dest_8[i+15] = src_8[i+s5*3];
> + dest_8[i+16] = src_8[i+s5*3+1];
> + dest_8[i+17] = src_8[i+s5*3+2];
> + dest_8[i+18] = src_8[i+s6*3];
> + dest_8[i+19] = src_8[i+s6*3+1];
> + dest_8[i+20] = src_8[i+s6*3+2];
> + dest_8[i+21] = src_8[i+s7*3];
> + dest_8[i+22] = src_8[i+s7*3+1];
> + dest_8[i+23] = src_8[i+s7*3+2];
> + }
> + }
This lacks a break, there is a patch somewhere which fixes the many
other cases in that file that lack it, would you volunteer to apply it?
:-).
About OpenAL, I maintain it so I'll try to have a look at it after this
is in, can you give me an idea of what the speaker positions for a 8
channel layout are (ao_openal uses OpenAL in a somewhat strange way).
More information about the MPlayer-dev-eng
mailing list