The problem is that in a RAW stream there is no way to tell up front how
many channels there are. If possible you should make your playback
initialisation depend on the faacDecFrameInfo structure (member: channels)
after decoding 1 frame for RAW streams.
> -----Original Message-----
> From: Miguel Freitas [mailto:miguel@...]
> Sent: dinsdag 27 januari 2004 3:31
> To: James Stembridge
> Cc: xine-dev; mbakker@...
> Subject: Re: [xine-devel] AAC problems
> Hi James, Hi Menno,
> On Mon, 2004-01-26 at 17:46, James Stembridge wrote:
> > Done, and the crashing streams are now working. The only remaining
> > problem is with this bit of code:
> > // MAJOR HACK: faacDecInit always initializes a raw AAC stream as
> > having // 1 audio channel; hardcode it to 2 here
> because...just because...
> > printf("this->num_channels: %d\n", this->num_channels);
> > this->num_channels = 2;
> > This causes obvious problems with raw 5.1 streams. With all the aac
> > files I have here faacDecInit seems to initialise the number of
> > channels correctly, but I guess this isn't always the case.
> Any samples?
> yes, Mike must have a couple of those streams. this is
> something i wanted to ask Menno but i keep forgetting...
> Menno, a small intro: there are some stereo aac streams, like
> where faacDecInit reports only 1 channel. maybe we are doing
> something wrong here, but i double checked xine
> initialization code with the xmms plugin source and it seemed correct.
> any idea?