gstreamermm 0.10.9.1
|
The base class for audio sources. More...
Public Member Functions | |
virtual | ~BaseAudioSrc () |
GstBaseAudioSrc* | gobj () |
Provides access to the underlying C GObject. | |
const GstBaseAudioSrc* | gobj () const |
Provides access to the underlying C GObject. | |
GstBaseAudioSrc* | 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::Clock > | get_clock () |
Get the Gst::Clock of the Gst::AudioSrc. | |
Glib::RefPtr< const Gst::Clock > | get_clock () const |
Gets the currently configured clock of the element. | |
Glib::RefPtr< Gst::RingBuffer > | create_ring_buffer () |
Create and return the Gst::RingBuffer for src. | |
void | set_provide_clock (bool provide) |
Controls whether src will provide a clock or not. | |
bool | get_provide_clock () const |
Queries whether src will provide a clock or not. | |
void | set_slave_method (Gst::BaseAudioSrcSlaveMethod method) |
Controls how clock slaving will be performed in src. | |
Gst::BaseAudioSrcSlaveMethod | get_slave_method () const |
Get the current slave method used by src. | |
Glib::PropertyProxy_ReadOnly < gint64 > | property_actual_buffer_time () const |
Actual configured size of audio buffer in microseconds. | |
Glib::PropertyProxy_ReadOnly < gint64 > | property_actual_latency_time () const |
Actual configured audio latency in microseconds. | |
Glib::PropertyProxy< gint64 > | property_buffer_time () |
Size of audio buffer in microseconds. | |
Glib::PropertyProxy_ReadOnly < gint64 > | property_buffer_time () const |
Size of audio buffer in microseconds. | |
Glib::PropertyProxy< gint64 > | property_latency_time () |
Audio latency in microseconds. | |
Glib::PropertyProxy_ReadOnly < gint64 > | property_latency_time () const |
Audio latency in microseconds. | |
Glib::PropertyProxy< bool > | property_provide_clock () |
Provide a clock to be used as the global pipeline clock. | |
Glib::PropertyProxy_ReadOnly < bool > | property_provide_clock () const |
Provide a clock to be used as the global pipeline clock. | |
Glib::PropertyProxy < BaseAudioSrcSlaveMethod > | property_slave_method () |
Algorithm to use to match the rate of the masterclock. | |
Glib::PropertyProxy_ReadOnly < BaseAudioSrcSlaveMethod > | property_slave_method () const |
Algorithm to use to match the rate of the masterclock. | |
virtual Glib::RefPtr < Gst::RingBuffer > | create_ring_buffer_vfunc () |
vfunc to create and return a Gst::RingBuffer to read from. | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Gst::BaseAudioSrc > | wrap (GstBaseAudioSrc* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
The base class for audio sources.
This is the base class for audio sources. Subclasses need to implement the create_ringbuffer_vfunc vmethod. This base class will then take care of reading samples from the ringbuffer, synchronisation and flushing.
Last reviewed on 2006-09-27 (0.10.12).
virtual Gst::BaseAudioSrc::~BaseAudioSrc | ( | ) | [virtual] |
Glib::RefPtr<Gst::RingBuffer> Gst::BaseAudioSrc::create_ring_buffer | ( | ) |
Create and return the Gst::RingBuffer for src.
This function will call the ::create_ringbuffer vmethod and will set src as the parent of the returned buffer (see Gst::Object::set_parent()).
virtual Glib::RefPtr<Gst::RingBuffer> Gst::BaseAudioSrc::create_ring_buffer_vfunc | ( | ) | [virtual] |
vfunc to create and return a Gst::RingBuffer to read from.
Glib::RefPtr<const Gst::Clock> Gst::BaseAudioSrc::get_clock | ( | ) | const |
Gets the currently configured clock of the element.
This is the clock as was last set with set_clock().
MT safe.
Reimplemented from Gst::Element.
Glib::RefPtr<Gst::Clock> Gst::BaseAudioSrc::get_clock | ( | ) |
Get the Gst::Clock of the Gst::AudioSrc.
Reimplemented from Gst::Element.
bool Gst::BaseAudioSrc::get_provide_clock | ( | ) | const |
Queries whether src will provide a clock or not.
See also gst_base_audio_src_set_provide_clock.
true
if src will provide a clock. Gst::BaseAudioSrcSlaveMethod Gst::BaseAudioSrc::get_slave_method | ( | ) | const |
Get the current slave method used by src.
const GstBaseAudioSrc* Gst::BaseAudioSrc::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Gst::PushSrc.
Reimplemented in Gst::AudioSrc, and Gst::AlsaSrc.
GstBaseAudioSrc* Gst::BaseAudioSrc::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented from Gst::PushSrc.
Reimplemented in Gst::AudioSrc, and Gst::AlsaSrc.
GstBaseAudioSrc* Gst::BaseAudioSrc::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::PushSrc.
Reimplemented in Gst::AudioSrc, and Gst::AlsaSrc.
Glib::PropertyProxy_ReadOnly<gint64> Gst::BaseAudioSrc::property_actual_buffer_time | ( | ) | const |
Actual configured size of audio buffer in microseconds.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly<gint64> Gst::BaseAudioSrc::property_actual_latency_time | ( | ) | const |
Actual configured audio latency in microseconds.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<gint64> Gst::BaseAudioSrc::property_buffer_time | ( | ) |
Size of audio buffer in microseconds.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly<gint64> Gst::BaseAudioSrc::property_buffer_time | ( | ) | const |
Size of audio buffer in microseconds.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly<gint64> Gst::BaseAudioSrc::property_latency_time | ( | ) | const |
Audio latency in microseconds.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<gint64> Gst::BaseAudioSrc::property_latency_time | ( | ) |
Audio latency in microseconds.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<bool> Gst::BaseAudioSrc::property_provide_clock | ( | ) |
Provide a clock to be used as the global pipeline clock.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly<bool> Gst::BaseAudioSrc::property_provide_clock | ( | ) | const |
Provide a clock to be used as the global pipeline clock.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly<BaseAudioSrcSlaveMethod> Gst::BaseAudioSrc::property_slave_method | ( | ) | const |
Algorithm to use to match the rate of the masterclock.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<BaseAudioSrcSlaveMethod> Gst::BaseAudioSrc::property_slave_method | ( | ) |
Algorithm to use to match the rate of the masterclock.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
void Gst::BaseAudioSrc::set_provide_clock | ( | bool | provide | ) |
Controls whether src will provide a clock or not.
If provide is true
, Gst::Element::provide_clock() will return a clock that reflects the datarate of src. If provide is false
, Gst::Element::provide_clock() will return 0
.
provide | New state. |
void Gst::BaseAudioSrc::set_slave_method | ( | Gst::BaseAudioSrcSlaveMethod | method | ) |
Controls how clock slaving will be performed in src.
method | The new slave method. |
Glib::RefPtr< Gst::BaseAudioSrc > wrap | ( | GstBaseAudioSrc * | object, |
bool | take_copy = false |
||
) | [related] |
A Glib::wrap() method for this object.
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. |