gi-gstaudio-1.0.12: GStreamerAudio bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GstAudio.Objects.AudioCdSrc

Contents

Description

<para> Provides a base class for CD digital audio (CDDA) sources, which handles things like seeking, querying, discid calculation, tags, and buffer timestamping. </para> <refsect2> <title>Using GstAudioCdSrc-based elements in applications</title> <para> GstAudioCdSrc registers two Format<!-- -->s of its own, namely the "track" format and the "sector" format. Applications will usually only find the "track" format interesting. You can retrieve that Format for use in seek events or queries with gst_format_get_by_nick("track"). </para> <para> 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 elementQueryDuration using the track format acquired above. Applications can query the currently playing track in the same way. </para> <para> Alternatively, applications may retrieve the currently playing track and the total number of tracks from the taglist that will 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. </para> <para> 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). </para> <refsect2> </refsect2> <title>Tags and meta-information</title> <para> CDDA sources will automatically emit a number of tags, details about which can be found in the libgsttag documentation. Those tags are: TAG_CDDA_CDDB_DISCID, TAG_CDDA_CDDB_DISCID_FULL, TAG_CDDA_MUSICBRAINZ_DISCID, TAG_CDDA_MUSICBRAINZ_DISCID_FULL, among others. </para> </refsect2> <refsect2> <title>Tracks and Table of Contents (TOC)</title> <para> Applications will be informed of the available tracks via a TOC message on the pipeline's Bus. The Toc will contain a TocEntry for each track, with information about each track. The duration for each track can be retrieved via the TAG_DURATION tag from each entry's tag list, or calculated via tocEntryGetStartStopTimes. The track entries in the TOC will be sorted by track number. </para> </refsect2>

Synopsis

Exported types

Methods

addTrack

audioCdSrcAddTrack Source #

Arguments

:: (HasCallStack, MonadIO m, IsAudioCdSrc a) 
=> a

src: a AudioCdSrc

-> AudioCdSrcTrack

track: address of AudioCdSrcTrack to add

-> m Bool

Returns: FALSE on error, otherwise TRUE.

CDDA sources use this function from their start vfunc to announce the available data and audio tracks to the base source class. The caller should allocate track on the stack, the base source will do a shallow copy of the structure (and take ownership of the taglist if there is one).

Properties

device

data AudioCdSrcDevicePropertyInfo Source #

Instances

AttrInfo AudioCdSrcDevicePropertyInfo Source # 
type AttrOrigin AudioCdSrcDevicePropertyInfo Source # 
type AttrLabel AudioCdSrcDevicePropertyInfo Source # 
type AttrGetType AudioCdSrcDevicePropertyInfo Source # 
type AttrBaseTypeConstraint AudioCdSrcDevicePropertyInfo Source # 
type AttrSetTypeConstraint AudioCdSrcDevicePropertyInfo Source # 
type AttrAllowedOps AudioCdSrcDevicePropertyInfo Source # 

mode

data AudioCdSrcModePropertyInfo Source #

Instances

AttrInfo AudioCdSrcModePropertyInfo Source # 
type AttrOrigin AudioCdSrcModePropertyInfo Source # 
type AttrLabel AudioCdSrcModePropertyInfo Source # 
type AttrGetType AudioCdSrcModePropertyInfo Source # 
type AttrBaseTypeConstraint AudioCdSrcModePropertyInfo Source # 
type AttrSetTypeConstraint AudioCdSrcModePropertyInfo Source # 
type AttrAllowedOps AudioCdSrcModePropertyInfo Source # 

track

data AudioCdSrcTrackPropertyInfo Source #

Instances

AttrInfo AudioCdSrcTrackPropertyInfo Source # 
type AttrOrigin AudioCdSrcTrackPropertyInfo Source # 
type AttrLabel AudioCdSrcTrackPropertyInfo Source # 
type AttrGetType AudioCdSrcTrackPropertyInfo Source # 
type AttrBaseTypeConstraint AudioCdSrcTrackPropertyInfo Source # 
type AttrSetTypeConstraint AudioCdSrcTrackPropertyInfo Source # 
type AttrAllowedOps AudioCdSrcTrackPropertyInfo Source #