|
Playing a .mp3 file in Neutrino 6.5
|
05/27/2013 3:36 AM
post101700
|
Playing a .mp3 file in Neutrino 6.5
Hi all,
I am new to QNX and I am using i.MX51 board. I am trying to play an audio file and to start with I went through wave.c
example (http://www.qnx.com/developers/docs/6.4.0/neutrino/audio/wavec.html) and was able to play the .wav file.
Now my next task is to play a .mp3 file for which I have the codecs in Windows. I have ported all the required calls
from Windows to QNX and I am also able to play the file but only for first 3 secs. Now in order to play the file
continuously I need to continuously decode and fill the frames in the buffer. In Windows, they use two APIs:
waveOutPrepareHeader and waveOutWrite which accomplish the task. But in QNX I am not getting any equivalent API which
could be used to play the complete audio file. :(
Any suggestions? Please help, I am new to all this....
Thanks in advance
|
|
|