<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.12.1">
</HEAD>
<BODY>
On Sat, 2006-11-25 at 04:48 +0000, Pavan Kumar Patale wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Will try to answer your first questioin</FONT>

<FONT COLOR="#000000">You can add a bus_sync_handler to the pipeline and look for the</FONT>
<FONT COLOR="#000000">GST_MESSAGE_STATE_CHANGED in the handler.</FONT>
<FONT COLOR="#000000">The message-&gt;src will give the source element which has</FONT>
<FONT COLOR="#000000">generated this message.  GST_ELEMENT_STATE(message-&gt;src) will give</FONT>
<FONT COLOR="#000000">you the current state of the element.</FONT>

<FONT COLOR="#000000">BR, Pavan.</FONT>
</PRE>
</BLOCKQUOTE>
I tried this and see the state transitions.&nbsp; But they are not indicating silence on the line.&nbsp; I want to know when there is sound or not, like a voice-activated recorder.<BR>
John
</BODY>
</HTML>