#include <audiosrc.h>
Public Member Functions | |
virtual | ~AudioSrc () |
GstAudioSrc* | gobj () |
Provides access to the underlying C GObject. | |
const GstAudioSrc* | gobj () const |
Provides access to the underlying C GObject. | |
GstAudioSrc* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
virtual bool | prepare_vfunc (const Gst::RingBufferSpec& spec) |
vfunc to open the device. | |
virtual guint | read_vfunc (const void* data, guint length) |
vfunc to undo the configuration. | |
virtual guint | get_delay_vfunc () |
vfunc to get the number of samples queued in the device. | |
virtual void | reset_vfunc () |
vfunc to unblock a read to the device and reset. | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gst::AudioSrc> | wrap (GstAudioSrc* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
This is the most simple base class for audio sources that only requires subclasses to implement a set of simple virtual functions:
All scheduling of samples and timestamps is done in this base class together with Gst::BaseAudioSrc using a default implementation of a Gst::RingBuffer that uses threads.
Last reviewed on 2006-09-27 (0.10.12)
virtual Gst::AudioSrc::~AudioSrc | ( | ) | [virtual] |
virtual guint Gst::AudioSrc::get_delay_vfunc | ( | ) | [virtual] |
vfunc to get the number of samples queued in the device.
const GstAudioSrc* Gst::AudioSrc::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Gst::BaseAudioSrc.
Reimplemented in Gst::AlsaSrc.
GstAudioSrc* Gst::AudioSrc::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented from Gst::BaseAudioSrc.
Reimplemented in Gst::AlsaSrc.
GstAudioSrc* Gst::AudioSrc::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::BaseAudioSrc.
Reimplemented in Gst::AlsaSrc.
virtual bool Gst::AudioSrc::prepare_vfunc | ( | const Gst::RingBufferSpec& | spec | ) | [virtual] |
vfunc to open the device.
vfunc to configure device with spec.
virtual guint Gst::AudioSrc::read_vfunc | ( | const void * | data, | |
guint | length | |||
) | [virtual] |
vfunc to undo the configuration.
vfunc to close the device. vfunc to read samples to the audio device.
virtual void Gst::AudioSrc::reset_vfunc | ( | ) | [virtual] |
vfunc to unblock a read to the device and reset.
Glib::RefPtr<Gst::AudioSrc> wrap | ( | GstAudioSrc * | 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. |