Gst::CddaBaseSrc Class Reference
[gstreamermm Base Classes]

Gst::CddaBaseSrc - Base class for CD digital audio (CDDA) sources. More...

#include <cddabasesrc.h>

Inheritance diagram for Gst::CddaBaseSrc:

Gst::PushSrc Gst::BaseSrc Gst::Element Gst::Object

List of all members.

Public Member Functions

virtual ~CddaBaseSrc ()
GstCddaBaseSrc* gobj ()
 Provides access to the underlying C GObject.
const GstCddaBaseSrc* gobj () const
 Provides access to the underlying C GObject.
GstCddaBaseSrc* gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Glib::PropertyProxy
<Glib::ustring> 
property_device ()
 CD device location.
Glib::PropertyProxy_ReadOnly
<Glib::ustring> 
property_device () const
 CD device location.
Glib::PropertyProxy
<CddaBaseSrcMode
property_mode ()
 Mode.
Glib::PropertyProxy_ReadOnly
<CddaBaseSrcMode
property_mode () const
 Mode.
Glib::PropertyProxy<guint> property_track ()
 Track.
Glib::PropertyProxy_ReadOnly
<guint> 
property_track () const
 Track.

Related Functions

(Note that these are not member functions.)

Glib::RefPtr<Gst::CddaBaseSrcwrap (GstCddaBaseSrc* object, bool take_copy=false)
 A Glib::wrap() method for this object.


Detailed Description

Gst::CddaBaseSrc - Base class for CD digital audio (CDDA) sources.

Provides a base class for CDDA sources, which handles things like seeking, querying, discid calculation, tags, and buffer timestamping.

Gst::CddaBaseSrc registers two Gst::Formats of its own, namely the "track" format and the "sector" format. Applications will usually only find the "track" format interesting. You can retrieve that Gst::Format for use in seek events or queries with Gst::get_format("track").

In order to query the number of tracks, for example, an application would set the CDDA source element to READY or PAUSED state and then query the the number of tracks via Gst::Element::query_duration() using the track format acquired above. Applications can query the currently playing track in the same way.

Alternatively, applications may retrieve the currently playing track and the total number of tracks from the taglist that will be posted on the bus whenever the CD is opened or the currently playing track changes. The taglist will contain Gst::Tag::TRACK_NUMBER and Gst::Tag::TRACK_COUNT tags.

Applications playing back CD audio using playbin and cdda://n URIs should issue a seek command in track format to change between tracks, rather than setting a new cdda://n+1 URI on playbin (as setting a new URI on playbin involves closing and re-opening the CD device, which is much much slower).

CDDA sources will automatically emit a number of tags, details about which can be found in the libgsttag documentation. Those tags are: Gst::Tag::CDDA_CDDB_DISCID, Gst::Tag::CDDA_CDDB_DISCID_FULL, Gst::Tag::CDDA_MUSICBRAINZ_DISCID, Gst::Tag::CDDA_MUSICBRAINZ_DISCID_FULL, among others.


Constructor & Destructor Documentation

virtual Gst::CddaBaseSrc::~CddaBaseSrc (  )  [virtual]


Member Function Documentation

const GstCddaBaseSrc* Gst::CddaBaseSrc::gobj (  )  const [inline]

Provides access to the underlying C GObject.

Reimplemented from Gst::PushSrc.

GstCddaBaseSrc* Gst::CddaBaseSrc::gobj (  )  [inline]

Provides access to the underlying C GObject.

Reimplemented from Gst::PushSrc.

GstCddaBaseSrc* Gst::CddaBaseSrc::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.

Glib::PropertyProxy_ReadOnly<Glib::ustring> Gst::CddaBaseSrc::property_device (  )  const

CD device location.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Glib::ustring> Gst::CddaBaseSrc::property_device (  ) 

CD device location.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy_ReadOnly<CddaBaseSrcMode> Gst::CddaBaseSrc::property_mode (  )  const

Mode.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<CddaBaseSrcMode> Gst::CddaBaseSrc::property_mode (  ) 

Mode.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy_ReadOnly<guint> Gst::CddaBaseSrc::property_track (  )  const

Track.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<guint> Gst::CddaBaseSrc::property_track (  ) 

Track.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.


Friends And Related Function Documentation

Glib::RefPtr<Gst::CddaBaseSrc> wrap ( GstCddaBaseSrc *  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 Wed May 27 12:01:57 2009 for gstreamermm by  doxygen 1.5.9