Hi,<br>&nbsp; I&#39;m playing mp3 file and the code snippet for that is as fallows<br><br>...<br>loop = g_main_loop_new ( NULL, FALSE );<br><br>pipeline = gst_pipeline_new ( &quot;mp3-player&quot; );<br>source = gst_element_factory_make ( &quot;filesrc&quot;, &quot;file-source&quot; );<br>
decoder = gst_element_factory_make ( &quot;mad&quot;, &quot;mp3-decoder&quot; );<br>conv = gst_element_factory_make ( &quot;audioconvert&quot;, &quot;converter&quot; );<br>sink = gst_element_factory_make ( &quot;alsasink&quot;, &quot;sink&quot; );<br>
<br>g_object_set ( G_OBJECT(source), &quot;location&quot;, &quot;x.mp3&quot;, NULL );<br><br>gst_bin_add_many ( GST_BIN(pipeline), souce, decoder, conv, sink, NULL );<br>gst_element_link_many ( souce, decoder, conv, sink, NULL );<br>
<br>gst_element_set_state ( pipeline, GST_STATE_PLAYING );<br>g_main_loop_run ( loop );<br><br>Here after, it starts playing. Once its playing, control is not coming out till the stream ended. <br>If i want to pause after certain time interval say 10 sec, i cant do it while playing the stream. Even i set alarm signal and signal handler, but&nbsp; alarm signal is not delivered while playing the stream.<br>
<br>Is there any way to play the audio files asynchronously?<br><br><br>/Ganesh