Jeff Sheng
|
Issue to play stream data using io-media API
|
Jeff Sheng
09/16/2010 6:25 PM
post67679
|
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
|
|
|