[gst-devel] Pause-Resume Audio Capture

Wim Taymans wim at fluendo.com
Wed Sep 27 13:22:16 CEST 2006


On Tue, 2006-09-26 at 18:59 +0000, Pavan Kumar Patale wrote:
> 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
> ..
It seems to be a bug. I'm trying to fix it now.

Wim

> 
> 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);
> 
>         }
> 
> }
> 
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
-- 
Wim Taymans <wim at fluendo.com>





More information about the gstreamer-devel mailing list