[gst-devel] Pause-Resume Audio Capture
Pavan Kumar Patale
pavanpatale at hotmail.com
Tue Sep 26 20:59:04 CEST 2006
Hi,
I am trying to record raw audio data from alsasrc. When i tried to pause
the recording and resume it does not work.(i.e.
filesize does not grow).
This is the piece of code i am using and the pipeline is alsasrc ! filesink
location=test.raw.
Can someone pls throw some light on this problem. Video capture does not
seem to have this problem
..
Thanks,
Pavan.
void pause_resume()
{
if(GST_STATE(pipeline)==GST_STATE_PAUSED)
{
g_print("It is already paused. Now resume\n");
gst_element_set_state(pipeline,GST_STATE_PLAYING);
}
else
{
g_print("It is recording. Now pause\n");
gst_element_set_state(pipeline,GST_STATE_PAUSED);
}
}
More information about the gstreamer-devel
mailing list