* SECTION:element-dtmfsrc
* @short_description: Generates DTMF packets
*
- * <refsect2>
- *
- * <para>
* The DTMFSrc element generates DTMF (ITU-T Q.23 Specification) tone packets on request
* from application. The application communicates the beginning and end of a
* DTMF event using custom upstream gstreamer events. To report a DTMF event, an
* application must send an event of type GST_EVENT_CUSTOM_UPSTREAM, having a
* structure of name "dtmf-event" with fields set according to the following
* table:
- * </para>
*
- * <para>
* <informaltable>
* <tgroup cols='4'>
* <colspec colname='Name' />
* <colspec colname='Type' />
* <colspec colname='Possible values' />
* <colspec colname='Purpose' />
- *
* <thead>
* <row>
* <entry>Name</entry>
* <entry>Purpose</entry>
* </row>
* </thead>
- *
* <tbody>
* <row>
* <entry>type</entry>
* </tbody>
* </tgroup>
* </informaltable>
- * </para>
*
- * <para>For example, the following code informs the pipeline (and in turn, the
+ * For example, the following code informs the pipeline (and in turn, the
* DTMFSrc element inside the pipeline) about the start of a DTMF named
* event '1' of volume -25 dBm0:
- * </para>
*
- * <para>
* <programlisting>
* structure = gst_structure_new ("dtmf-event",
* "type", G_TYPE_INT, 1,
* event = gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM, structure);
* gst_element_send_event (pipeline, event);
* </programlisting>
- * </para>
*
- * </refsect2>
*/
#ifdef HAVE_CONFIG_H
struct _GstDTMFSrc
{
+ /*< private >*/
GstBaseSrc parent;
GAsyncQueue *event_queue;
GstDTMFSrcEvent *last_event;
struct _GstRtpDTMFDepay
{
+ /*< private >*/
GstBaseRTPDepayload depayload;
double sample;
guint32 previous_ts;
* SECTION:element-rtpdtmfsrc
* @short_description: Generates RTP DTMF packets
*
- * <refsect2>
- *
- * <para>
* The RTPDTMFSrc element generates RTP DTMF (RFC 2833) event packets on request
* from application. The application communicates the beginning and end of a
* DTMF event using custom upstream gstreamer events. To report a DTMF event, an
* application must send an event of type GST_EVENT_CUSTOM_UPSTREAM, having a
* structure of name "dtmf-event" with fields set according to the following
* table:
- * </para>
*
- * <para>
* <informaltable>
* <tgroup cols='4'>
* <colspec colname='Name' />
* <colspec colname='Type' />
* <colspec colname='Possible values' />
* <colspec colname='Purpose' />
- *
* <thead>
* <row>
* <entry>Name</entry>
* <entry>Purpose</entry>
* </row>
* </thead>
- *
* <tbody>
* <row>
* <entry>type</entry>
* </tbody>
* </tgroup>
* </informaltable>
- * </para>
*
- * <para>For example, the following code informs the pipeline (and in turn, the
+ * For example, the following code informs the pipeline (and in turn, the
* RTPDTMFSrc element inside the pipeline) about the start of an RTP DTMF named
* event '1' of volume -25 dBm0:
- * </para>
*
- * <para>
* <programlisting>
* structure = gst_structure_new ("dtmf-event",
* "type", G_TYPE_INT, 1,
* event = gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM, structure);
* gst_element_send_event (pipeline, event);
* </programlisting>
- * </para>
*
- * </refsect2>
*/
#ifdef HAVE_CONFIG_H
*/
struct _GstRTPDTMFSrc
{
+ /*< private >*/
GstBaseSrc basesrc;
GAsyncQueue *event_queue;