Gnash  0.8.11dev
Public Member Functions | Public Attributes | List of all members
gnash::media::gst::GnashAudioPrivate Class Reference

This class is initialized once a hardware input device is chosen it is more robust than GnashAudio because it has additional room to store important Gstreamer information (pipelines, references to elements, etc.) More...

#include <AudioInputGst.h>

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

Public Member Functions

 GnashAudioPrivate ()
 Constructor for the GnashAudioPrivate class. More...
 
void setAudioDevice (GnashAudio *d)
 This function sets the private _audioDevice element in the GnashAudioPrivate class. More...
 
GnashAudiogetAudioDevice ()
 This function returns the private _audioDevice element pointer from the GnashAudioPrivate class. More...
 
void setDeviceName (gchar *n)
 This function sets the private _deviceName element in the GnashAudioPrivate class. More...
 
gchar * getDeviceName ()
 This function returns the private _deviceName variable from the GnashAudioPrivate class. More...
 

Public Attributes

GstElement * audioSource
 A pointer to the Gstreamer element corresponding to the audio source (e.g. a built-in or usb microphone). More...
 
GstElement * audioEnc
 A pointer to the audio encoder element of the Gstreamer pipeline. The only format currently supported format is vorbis. More...
 
GnashAudio_audioDevice
 A pointer to the GnashAudio class of the selected hardware device This info should be stored to the GnashAudioPrivate class in the transferToPrivate function. More...
 
gchar * _deviceName
 A gchar* describing the physical input device's name (e.g. HDA Intel or Built-In Microphone) More...
 
GstElement * _pipeline
 A pointer to the main Gstreamer pipeline that all created elements and bins will be dropped into. More...
 
GstElement * _audioMainBin
 
GstElement * _audioSourceBin
 
GstElement * _audioPlaybackBin
 
GstElement * _audioSaveBin
 
GstElement * _mux
 A direct link to the oggmux element in the _audioSaveBin for use with linking up to a video muxer so that audio and video are both muxed out to the same file. More...
 
gboolean _pipelineIsPlaying
 A boolean value which stores whether or not the _pipeline element is currently in it's 'playing' state or not. More...
 

Detailed Description

This class is initialized once a hardware input device is chosen it is more robust than GnashAudio because it has additional room to store important Gstreamer information (pipelines, references to elements, etc.)

Constructor & Destructor Documentation

§ GnashAudioPrivate()

gnash::media::gst::GnashAudioPrivate::GnashAudioPrivate ( )

Constructor for the GnashAudioPrivate class.

Referenced by gnash::media::gst::AudioInputGst::~AudioInputGst().

Member Function Documentation

§ getAudioDevice()

GnashAudio* gnash::media::gst::GnashAudioPrivate::getAudioDevice ( )
inline

This function returns the private _audioDevice element pointer from the GnashAudioPrivate class.

Returns
The GnashAudio* stored in the _audioDevice variable

§ getDeviceName()

gchar* gnash::media::gst::GnashAudioPrivate::getDeviceName ( )
inline

This function returns the private _deviceName variable from the GnashAudioPrivate class.

Returns
The gchar* describing the physical device's name (e.g. HDA Intel)

§ setAudioDevice()

void gnash::media::gst::GnashAudioPrivate::setAudioDevice ( GnashAudio d)
inline

This function sets the private _audioDevice element in the GnashAudioPrivate class.

Parameters
dA pointer to the GnashAudio class that you want to use for audio input.

References gnash::key::d.

Referenced by gnash::media::gst::AudioInputGst::~AudioInputGst().

§ setDeviceName()

void gnash::media::gst::GnashAudioPrivate::setDeviceName ( gchar *  n)
inline

This function sets the private _deviceName element in the GnashAudioPrivate class.

Parameters
nA gchar* describing the input hardware (e.g. HDA Intel)

References gnash::key::n.

Referenced by gnash::media::gst::AudioInputGst::~AudioInputGst().

Member Data Documentation

§ _audioDevice

gnash::media::gst::GnashAudioPrivate::_audioDevice

A pointer to the GnashAudio class of the selected hardware device This info should be stored to the GnashAudioPrivate class in the transferToPrivate function.

Referenced by gnash::media::gst::AudioInputGst::~AudioInputGst().

§ _audioMainBin

gnash::media::gst::GnashAudioPrivate::_audioMainBin

The main bin is set up to handle any number of connections to be made later in the program. The basic pipeline design is as follows: (sink ghostpad) tee ! audioPlaybackQueue (sink ghostpad) tee ! audioSaveQueue The source bin is dropped into the main bin and will eventually be fed into the tee element

Referenced by gnash::media::gst::audio_bus_call(), and gnash::media::gst::AudioInputGst::~AudioInputGst().

§ _audioPlaybackBin

gnash::media::gst::GnashAudioPrivate::_audioPlaybackBin

The audio playback bin contains the elements necessary to playback the audio being captured by the selected device. Note that if you create the playback bin it will not automatically link up to the playback queue. To do that you need to call makeAudioSourcePlaybackLink() function. The basic pipeline design is as follows: autoaudiosink ! NULL

Referenced by gnash::media::gst::AudioInputGst::~AudioInputGst().

§ _audioSaveBin

gnash::media::gst::GnashAudioPrivate::_audioSaveBin

The audio save bin contains the elements necessary to save the audio being captured to a file (currently just to an ogg file). Note that if you create the save bin it will not automatically link up to the save queue in the main bin. To do that you need to call the makeAudioSourceSaveLink() function. The basic pipeline structure is as follows: audioconvert ! vorbinenc ! oggmux ! filesink

Referenced by gnash::media::gst::audio_bus_call().

§ _audioSourceBin

gnash::media::gst::GnashAudioPrivate::_audioSourceBin

The audio source bin contains the source device and a restriction on its capabilities. Currently a lot of stuff in here is hardcoded and will probably eventually be made into options that can be changed using setters. The basic pipeline design is as follows: <selected audio="" source>=""> ! capsfiter The source bin is dropped into the _audioMainBin.

Referenced by gnash::media::gst::AudioInputGst::~AudioInputGst().

§ _deviceName

gnash::media::gst::GnashAudioPrivate::_deviceName

A gchar* describing the physical input device's name (e.g. HDA Intel or Built-In Microphone)

Referenced by gnash::media::gst::AudioInputGst::~AudioInputGst().

§ _mux

gnash::media::gst::GnashAudioPrivate::_mux

A direct link to the oggmux element in the _audioSaveBin for use with linking up to a video muxer so that audio and video are both muxed out to the same file.

Referenced by gnash::media::gst::audio_bus_call().

§ _pipeline

gnash::media::gst::GnashAudioPrivate::_pipeline

A pointer to the main Gstreamer pipeline that all created elements and bins will be dropped into.

Referenced by gnash::media::gst::audio_bus_call(), and gnash::media::gst::AudioInputGst::~AudioInputGst().

§ _pipelineIsPlaying

gnash::media::gst::GnashAudioPrivate::_pipelineIsPlaying

A boolean value which stores whether or not the _pipeline element is currently in it's 'playing' state or not.

Referenced by gnash::media::gst::audio_bus_call(), and gnash::media::gst::AudioInputGst::~AudioInputGst().

§ audioEnc

gnash::media::gst::GnashAudioPrivate::audioEnc

A pointer to the audio encoder element of the Gstreamer pipeline. The only format currently supported format is vorbis.

Referenced by gnash::media::gst::audio_bus_call().

§ audioSource

gnash::media::gst::GnashAudioPrivate::audioSource

A pointer to the Gstreamer element corresponding to the audio source (e.g. a built-in or usb microphone).

Referenced by gnash::media::gst::AudioInputGst::~AudioInputGst().


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