Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Issue to play stream data using io-media API: (3 Items)
   
Issue to play stream data using io-media API  
Hi,

I have an issue to playback stream data from Bluetooth phone using io-media API calls. If I use PCM API to playback the 
Bluetooth phone, it works. It seems no error to debug the following codes step by step, but there is no audio output. I 
could not find the issue, and the document is very limited. Do I miss something to configure the io-media other 
parameters?   

      pthread_mutex_init( & mutexId, NULL );
      pthread_mutex_lock( & mutexId);
      graphId = iom_create_graph( "streamplayer", "BT_StreamPlayer", 0 );
      pthread_mutex_unlock( & mutexId);
      outputId = iom_attach_output(graphId, "/dev/snd/pcmC0D0p", IOM_OF_AUDIO );

      err = iom_attach_input(graphId, "/dev/snd/pcmC3D0c", fid );
      if ( err != 0 ) {
             iom_play(graphId);
      }

Thanks,
Jeff Sheng
Re: Issue to play stream data using io-media API  
On 10-09-16 6:25 PM, "Jeff Sheng" <community-noreply@qnx.com> wrote:
>       graphId = iom_create_graph( "streamplayer", "BT_StreamPlayer", 0 );

I would try a "trackplayer" instead of "streamplayer".

>       outputId = iom_attach_output(graphId, "/dev/snd/pcmC0D0p", IOM_OF_AUDIO

Here I think you should use "snd:/dev/snd/pcmC0D0p" (i.e. prefix with
"snd:")

>       err = iom_attach_input(graphId, "/dev/snd/pcmC3D0c", fid );

Again here try to add an "snd:" prefix.

Start io-media with -DD and post the output of sloginfo if it doesn't work.


Regards,
Gilles
Re: Issue to play stream data using io-media API  
Gilles,

Yes, it works after I did what you mentioned.

Thanks!,
Jeff