Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > d620e9f76c810e9fbdaebc304909c8fc > files > 210

lib64gstreamer0.10-devel-0.10.36-7.mga4.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>The Mixer interface</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79;charset=UTF-8"><LINK
REL="HOME"
TITLE="GStreamer Application Development Manual (0.10.36)"
HREF="index.html"><LINK
REL="UP"
TITLE="Interfaces"
HREF="chapter-interfaces.html"><LINK
REL="PREVIOUS"
TITLE="Interfaces"
HREF="chapter-interfaces.html"><LINK
REL="NEXT"
TITLE="The Tuner interface"
HREF="section-interfaces-tuner.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
><SPAN
CLASS="application"
>GStreamer</SPAN
> Application Development Manual (0.10.36)</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="chapter-interfaces.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 13. Interfaces</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="section-interfaces-tuner.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="section-interfaces-mixer"
>13.2. The Mixer interface</A
></H1
><P
>&#13;      The mixer interface provides a uniform way to control the volume on a
      hardware (or software) mixer. The interface is primarily intended to
      be implemented by elements for audio inputs and outputs that talk
      directly to the hardware (e.g. OSS or ALSA plugins).
    </P
><P
>&#13;      Using this interface, it is possible to control a list of tracks
      (such as Line-in, Microphone, etc.) from a mixer element. They can
      be muted, their volume can be changed and, for input tracks, their
      record flag can be set as well.
    </P
><P
>&#13;      Example plugins implementing this interface include the OSS elements
      (osssrc, osssink, ossmixer) and the ALSA plugins (alsasrc, alsasink
      and alsamixer).
    </P
><P
>&#13;      You should not use this interface for volume control in a playback
      application. Either use a <CODE
CLASS="classname"
>volume</CODE
> element or use
      <CODE
CLASS="classname"
>playbin</CODE
>'s <SPAN
CLASS="QUOTE"
>"volume"</SPAN
> property, or use
      the <CODE
CLASS="classname"
>audiosink</CODE
>'s <SPAN
CLASS="QUOTE"
>"volume"</SPAN
> property (if it has one).
    </P
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>&#13;	In order for the <A
HREF="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstmixer.html"
TARGET="_top"
><CODE
CLASS="classname"
>GstMixer</CODE
></A
>
	interface to be
        usable, the element implementing it needs to be in the right state,
        so that the underlying mixer device is open. This usually means the
        element needs to be at least in <CODE
CLASS="classname"
>GST_STATE_READY</CODE
>
        before you can use this interface. You will get confusing warnings
        if the element is not in the right state when the interface is used.
      </P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="chapter-interfaces.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="section-interfaces-tuner.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Interfaces</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="chapter-interfaces.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>The Tuner interface</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>