search for: filedecoderwritecallback

Displaying 2 results from an estimated 2 matches for "filedecoderwritecallback".

2004 Sep 10
2
[Flac-users] Extending mp3/ogg application to play flac
...). The existing code decodes into a mad_pcm structure using mad fixed point format (mad_fixed_t). I have read the API of libFlac++ and I understand what I have to do in general. However there are two issues I'm unsure about: - Do I need to convert the decoded audio data delivered to the FileDecoderWriteCallback to be compatible with mad_pcm/mad_fixed_t data? - The mad_pcm structure expects 1152 samples per channel. How Do I obtain 1152 samples from the Flac decoder? Any help is appreciated, Lars
2004 Sep 10
0
[Flac-users] Extending mp3/ogg application to play flac
--- Lars von Wedel <vonwedel@web.de> wrote: > However there are two issues I'm unsure about: > > - Do I need to convert the decoded audio data delivered to the > FileDecoderWriteCallback to be compatible with mad_pcm/mad_fixed_t > data? not sure about the mad_fixed_t format, but probably. all samples coming out of the FLAC decoder are linear PCM 32-bit signed ints. e.g. a sample from CD audio will be in the range -32768 (0xFFFF8000) to 32767 (0x00007FFF) > - The mad_pcm s...