gi-ges-1.0.4: libges bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GES.Objects.AudioTrack

Description

A AudioTrack is a default audio Track, with a GES_TRACK_TYPE_AUDIO Track:trackType and "audio/x-raw(ANY)" Track:caps.

By default, an audio track will have its Track:restrictionCaps set to "audio/x-raw" with the following properties:

  • format: "S32LE"
  • channels: 2
  • rate: 44100
  • layout: "interleaved"

These fields are needed for negotiation purposes, but you can change their values if you wish. It is advised that you do so using trackUpdateRestrictionCaps with new values for the fields you wish to change, and any additional fields you may want to add. Unlike using trackSetRestrictionCaps, this will ensure that these default fields will at least have some value set.

Synopsis

Exported types

newtype AudioTrack Source #

Memory-managed wrapper type.

Constructors

AudioTrack (ManagedPtr AudioTrack) 

Instances

Instances details
Eq AudioTrack Source # 
Instance details

Defined in GI.GES.Objects.AudioTrack

GObject AudioTrack Source # 
Instance details

Defined in GI.GES.Objects.AudioTrack

ManagedPtrNewtype AudioTrack Source # 
Instance details

Defined in GI.GES.Objects.AudioTrack

Methods

toManagedPtr :: AudioTrack -> ManagedPtr AudioTrack

TypedObject AudioTrack Source # 
Instance details

Defined in GI.GES.Objects.AudioTrack

Methods

glibType :: IO GType

HasParentTypes AudioTrack Source # 
Instance details

Defined in GI.GES.Objects.AudioTrack

IsGValue (Maybe AudioTrack) Source #

Convert AudioTrack to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.GES.Objects.AudioTrack

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe AudioTrack -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe AudioTrack)

type ParentTypes AudioTrack Source # 
Instance details

Defined in GI.GES.Objects.AudioTrack

type ParentTypes AudioTrack = '[Track, Bin, Element, Object, Object, MetaContainer, ChildProxy]

class (GObject o, IsDescendantOf AudioTrack o) => IsAudioTrack o Source #

Type class for types which can be safely cast to AudioTrack, for instance with toAudioTrack.

Instances

Instances details
(GObject o, IsDescendantOf AudioTrack o) => IsAudioTrack o Source # 
Instance details

Defined in GI.GES.Objects.AudioTrack

toAudioTrack :: (MonadIO m, IsAudioTrack o) => o -> m AudioTrack Source #

Cast to AudioTrack, for types for which this is known to be safe. For general casts, use castTo.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

abortState, add, addControlBinding, addElement, addElementFull, addMetasFromString, addPad, addPropertyDeepNotifyWatch, addPropertyNotifyWatch, bindProperty, bindPropertyFull, callAsync, changeState, checkMetaRegistered, childAdded, childRemoved, commit, continueState, createAllPads, defaultError, findUnlinkedPad, forceFloating, foreach, foreachPad, foreachSinkPad, foreachSrcPad, freezeNotify, getv, hasActiveControlBindings, hasAncestor, hasAsAncestor, hasAsParent, isFloating, isLockedState, iterateAllByElementFactoryName, iterateAllByInterface, iterateElements, iteratePads, iterateRecurse, iterateSinkPads, iterateSinks, iterateSorted, iterateSources, iterateSrcPads, link, linkFiltered, linkPads, linkPadsFiltered, linkPadsFull, lookup, lostState, messageFull, messageFullWithDetails, metasToString, noMorePads, notify, notifyByPspec, postMessage, provideClock, query, queryConvert, queryDuration, queryPosition, recalculateLatency, ref, refSink, registerMeta, registerMetaBoolean, registerMetaDate, registerMetaDateTime, registerMetaDouble, registerMetaFloat, registerMetaInt, registerMetaInt64, registerMetaString, registerMetaUint, registerMetaUint64, registerStaticMeta, releaseRequestPad, remove, removeControlBinding, removeElement, removeElementFull, removePad, removePropertyNotifyWatch, requestPad, requestPadSimple, runDispose, seek, seekSimple, sendEvent, stealData, stealQdata, suggestNextSync, syncChildrenStates, syncStateWithParent, syncValues, thawNotify, unlink, unlinkPads, unparent, unref, updateRestrictionCaps, watchClosure.

Getters

getBaseTime, getBoolean, getBus, getByInterface, getByName, getByNameRecurseUp, getCaps, getChildByIndex, getChildByName, getChildByNameRecurse, getChildrenCount, getClock, getCompatiblePad, getCompatiblePadTemplate, getContext, getContextUnlocked, getContexts, getControlBinding, getControlRate, getCurrentClockTime, getCurrentRunningTime, getData, getDate, getDateTime, getDouble, getElements, getFactory, getFloat, getGValueArray, getInt, getInt64, getMarkerList, getMeta, getMetadata, getMixing, getName, getPadTemplate, getPadTemplateList, getParent, getPathString, getProperty, getQdata, getRequestPad, getRestrictionCaps, getStartTime, getState, getStaticPad, getString, getSuppressedFlags, getTimeline, getUint, getUint64, getValue.

Setters

setBaseTime, setBoolean, setBus, setClock, setContext, setControlBindingDisabled, setControlBindingsDisabled, setControlRate, setData, setDataFull, setDate, setDateTime, setDouble, setFloat, setInt, setInt64, setLockedState, setMarkerList, setMeta, setMixing, setName, setParent, setProperty, setRestrictionCaps, setStartTime, setState, setString, setSuppressedFlags, setTimeline, setUint, setUint64.

new

audioTrackNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m AudioTrack

Returns: The newly created audio track.

Creates a new audio track, with a GES_TRACK_TYPE_AUDIO Track:trackType, "audio/x-raw(ANY)" Track:caps, and "audio/x-raw" Track:restrictionCaps with the properties:

  • format: "S32LE"
  • channels: 2
  • rate: 44100
  • layout: "interleaved"

You should use trackUpdateRestrictionCaps if you wish to modify these fields, or add additional ones.