Ryan Allen(deleted)
|
Re: Playing a .mp3 file in Neutrino 6.5
|
Ryan Allen(deleted)
05/27/2013 2:51 PM
post101729
|
Re: Playing a .mp3 file in Neutrino 6.5
You will use snd_pcm_plugin_prepare() and snd_pcm_plugin_write() on QNX,
as is done by the wave.c example. Please spend some time looking at the
example as its usage likely differs somewhat compared to the Windows APIs.
<http://www.qnx.com/developers/docs/6.5.0_sp1/topic/com.qnx.doc.neutrino_au
dio/wavec.html>
--
Ryan J. Allen
QNX Software Systems
On 13-05-27 3:36 AM, "electronics g" <community-noreply@qnx.com> wrote:
>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
|
|
|