From: <ran...@ya...> - 2004-01-02 00:46:19
|
--- Mike Melanson <mel...@pc...> wrote: > On Fri, 2 Jan 2004, James Courtier-Dutton wrote: > > > decoder_info can be anything. > > It is just to pass any info one wants between > demuxer and decoder. > > For example, the details passed to the LPCM > decoder are different from > > the details passed to the liba52 decoder. > > Agreed. I will clarify the most common conventions: > When > decoder_flags sets BUF_FLAG_HEADER, many demuxers > set: > > decoder_info[1] = sample rate > decoder_info[2] = bits/sample > decoder_info[3] = number of channels > > No hard and fast rules. But these conventions help > demuxers and decoders interoperate. Interesting. However, the underlying point seems to be that this call to SoundConverterSetInfo() rejects Qclp audio. Could this be because Qclp is "Mono", whereas this particular function call is expecting "Stereo" (c.f. FOUR_CHAR_CODE('w','a','v','e').)? In which case, this random dancing around magic numbers in decoder_info[2] is doomed to failure. Chris ________________________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html |