Gnash  0.8.10
Public Member Functions
gnash::media::gst::AudioInputGst Class Reference

The main AudioInputGst class, which actually doesn't store too much important information (most of that is stored in the GnashAudio and GnashAudioPrivate classes) More...

#include <AudioInputGst.h>

Inheritance diagram for gnash::media::gst::AudioInputGst:
gnash::media::AudioInput gnash::media::gst::GnashAudioPrivate

List of all members.

Public Member Functions

 AudioInputGst ()
 This part implements the interface.
virtual ~AudioInputGst ()
virtual void setActivityLevel (double a)
virtual double activityLevel () const
virtual void setGain (double g)
 Set the input's gain.
virtual double gain () const
 Get the input's gain.
virtual void setIndex (int i)
virtual int index () const
virtual bool muted ()
virtual void setName (std::string name)
virtual const std::string & name () const
virtual void setRate (int r)
 Supported rates are (maybe hardware-dependent): 5, 8, 11, 16, 22, 44.
virtual int rate () const
 Supported rates are (maybe hardware-dependent): 5, 8, 11, 16, 22, 44.
virtual void setSilenceLevel (double s)
virtual double silenceLevel () const
virtual void setSilenceTimeout (int s)
virtual int silenceTimeout () const
virtual void setUseEchoSuppression (bool e)
virtual bool useEchoSuppression () const

Detailed Description

The main AudioInputGst class, which actually doesn't store too much important information (most of that is stored in the GnashAudio and GnashAudioPrivate classes)

The top part of this class implements the AudioInput interface, which is more or less what is needed to implement the rest, though it lacks any data-fetching methods. I'm not sure what the rest of it does, but it's not anything useful. Anyone implementing this class should start by implementing the interface.


Constructor & Destructor Documentation

gnash::media::gst::AudioInputGst::AudioInputGst ( )

This part implements the interface.

gnash::media::gst::AudioInputGst::~AudioInputGst ( ) [virtual]

Member Function Documentation

virtual double gnash::media::gst::AudioInputGst::activityLevel ( ) const [inline, virtual]
virtual double gnash::media::gst::AudioInputGst::gain ( ) const [inline, virtual]

Get the input's gain.

Interface range is 0..100, gst range is -60 to 60 TODO: shouldn't we query the value from the input rather than storing it here?

Implements gnash::media::AudioInput.

virtual int gnash::media::gst::AudioInputGst::index ( ) const [inline, virtual]
virtual bool gnash::media::gst::AudioInputGst::muted ( ) [inline, virtual]
virtual const std::string& gnash::media::gst::AudioInputGst::name ( ) const [inline, virtual]

Implements gnash::media::AudioInput.

Referenced by setName().

virtual int gnash::media::gst::AudioInputGst::rate ( ) const [inline, virtual]

Supported rates are (maybe hardware-dependent): 5, 8, 11, 16, 22, 44.

TODO: store in device and query that.

Implements gnash::media::AudioInput.

Referenced by setRate().

virtual void gnash::media::gst::AudioInputGst::setActivityLevel ( double  a) [inline, virtual]

Implements gnash::media::AudioInput.

References gnash::key::a.

virtual void gnash::media::gst::AudioInputGst::setGain ( double  g) [inline, virtual]

Set the input's gain.

Interface range is 0..100, gst range is -60 to 60 TODO: shouldn't we set the value in the input rather than storing it here?

Implements gnash::media::AudioInput.

References assert, and gnash::key::g.

virtual void gnash::media::gst::AudioInputGst::setIndex ( int  i) [inline, virtual]

Implements gnash::media::AudioInput.

References gnash::key::i.

virtual void gnash::media::gst::AudioInputGst::setName ( std::string  name) [inline, virtual]

Implements gnash::media::AudioInput.

References name().

virtual void gnash::media::gst::AudioInputGst::setRate ( int  r) [inline, virtual]

Supported rates are (maybe hardware-dependent): 5, 8, 11, 16, 22, 44.

TODO: store in device and query that.

Implements gnash::media::AudioInput.

References rate().

virtual void gnash::media::gst::AudioInputGst::setSilenceLevel ( double  s) [inline, virtual]

Implements gnash::media::AudioInput.

References gnash::key::s.

virtual void gnash::media::gst::AudioInputGst::setSilenceTimeout ( int  s) [inline, virtual]

Implements gnash::media::AudioInput.

References gnash::key::s.

virtual void gnash::media::gst::AudioInputGst::setUseEchoSuppression ( bool  e) [inline, virtual]

Implements gnash::media::AudioInput.

References gnash::key::e.

virtual double gnash::media::gst::AudioInputGst::silenceLevel ( ) const [inline, virtual]
virtual int gnash::media::gst::AudioInputGst::silenceTimeout ( ) const [inline, virtual]
virtual bool gnash::media::gst::AudioInputGst::useEchoSuppression ( ) const [inline, virtual]

The documentation for this class was generated from the following files: