[Flac] Making the FLAC decoder work without callbacks
Ruchir Gulati
ruchir.gulati at tcs.com
Tue Sep 22 03:16:38 PDT 2009
Hi,
We are trying to port FLAC-1.2.1 decoder on a trimmed down MontaVista
Linux Kernel. This means that we will not be able to support Callbacks in
our program. The decoder needs to simply read flac encoded data from a
file, decode it, and play write the decoded PCM to the sound driver for
playing it.
I am looking to make a very simple application which uses the libFLAC.lib
static library and calls the following functions to do this task:
- FLAC__stream_decoder_new
- FLAC__stream_decoder_set_md5_checking
- FLAC__stream_decoder_init_FILE
- FLAC__stream_decoder_process_single (inside a while<no. of frames> loop)
- FLAC__stream_decoder_delete
All of this happens without resorting to callbacks. Even though it seems
from the documentation that this is a possibility with the given APIs, I
am not able to make it work. Does anyone have any ideas about how I should
go about doing this?
Any help will be greatly appreciated!
Thanks & regards,
Ruchir
System Engineer, Innovation Labs,
TATA Consultancy Services, Kolkata
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/flac/attachments/20090922/0a14e5cc/attachment.htm
More information about the Flac
mailing list