GstBase::BaseAudioSink Class Reference
[gstreamerbasemm Base Classes]

GstBase::BaseAudioSink — Base class for audio sinks. More...

#include <baseaudiosink.h>

Inheritance diagram for GstBase::BaseAudioSink:

Gst::BaseSink Gst::Element Gst::Object GstBase::AudioSink GstBase::AlsaSink

List of all members.

Public Member Functions

virtual ~BaseAudioSink ()
GstBaseAudioSink* gobj ()
 Provides access to the underlying C GObject.
const GstBaseAudioSink* gobj () const
 Provides access to the underlying C GObject.
GstBaseAudioSink* gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Glib::RefPtr<Gst::Clockget_provided_clock () const
 Get the Gst::Clock of the GstBase::BaseAudioSink.
void set_provide_clock (bool provide)
 Controls whether sink will provide a clock or not.
bool get_provide_clock ()
 Queries whether sink will provide a clock or not.

Related Functions

(Note that these are not member functions.)

Glib::RefPtr
<GstBase::BaseAudioSink
wrap (GstBaseAudioSink* object, bool take_copy=false)
 A Glib::wrap() method for this object.


Detailed Description

GstBase::BaseAudioSink — Base class for audio sinks.

This is the base class for audio sinks. Subclasses need to implement the create_ringbuffer_vfunc vmethod. This base class will then take care of writing samples to the ringbuffer, synchronisation, clipping and flushing.

Last reviewed on 2006-09-27 (0.10.12).


Constructor & Destructor Documentation

virtual GstBase::BaseAudioSink::~BaseAudioSink (  )  [virtual]


Member Function Documentation

bool GstBase::BaseAudioSink::get_provide_clock (  ) 

Queries whether sink will provide a clock or not.

See also gst_base_audio_sink_set_provide_clock.

Returns:
true if sink will provide a clock.
Since: 0.10.16.

Glib::RefPtr<Gst::Clock> GstBase::BaseAudioSink::get_provided_clock (  )  const

const GstBaseAudioSink* GstBase::BaseAudioSink::gobj (  )  const [inline]

Provides access to the underlying C GObject.

Reimplemented from Gst::BaseSink.

Reimplemented in GstBase::AlsaSink, and GstBase::AudioSink.

GstBaseAudioSink* GstBase::BaseAudioSink::gobj (  )  [inline]

Provides access to the underlying C GObject.

Reimplemented from Gst::BaseSink.

Reimplemented in GstBase::AlsaSink, and GstBase::AudioSink.

GstBaseAudioSink* GstBase::BaseAudioSink::gobj_copy (  ) 

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

Reimplemented from Gst::BaseSink.

Reimplemented in GstBase::AlsaSink, and GstBase::AudioSink.

void GstBase::BaseAudioSink::set_provide_clock ( bool  provide  ) 

Controls whether sink will provide a clock or not.

If provide is true, gst_element_provide_clock() will return a clock that reflects the datarate of sink. If provide is false, gst_element_provide_clock() will return 0.

Since: 0.10.16

Parameters:
provide New state.


Friends And Related Function Documentation

Glib::RefPtr<GstBase::BaseAudioSink> wrap ( GstBaseAudioSink *  object,
bool  take_copy = false 
) [related]

A Glib::wrap() method for this object.

Parameters:
object The C instance.
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


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

Generated on Thu Jan 15 09:33:13 2009 for gstreamermm by  doxygen 1.5.7.1