Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- newtype AudioTrack = AudioTrack (ManagedPtr AudioTrack)
- class (GObject o, IsDescendantOf AudioTrack o) => IsAudioTrack o
- toAudioTrack :: (MonadIO m, IsAudioTrack o) => o -> m AudioTrack
- audioTrackNew :: (HasCallStack, MonadIO m) => m AudioTrack
Exported types
newtype AudioTrack Source #
Memory-managed wrapper type.
AudioTrack (ManagedPtr AudioTrack) |
Instances
Eq AudioTrack Source # | |
Defined in GI.GES.Objects.AudioTrack (==) :: AudioTrack -> AudioTrack -> Bool # (/=) :: AudioTrack -> AudioTrack -> Bool # | |
GObject AudioTrack Source # | |
Defined in GI.GES.Objects.AudioTrack | |
ManagedPtrNewtype AudioTrack Source # | |
Defined in GI.GES.Objects.AudioTrack toManagedPtr :: AudioTrack -> ManagedPtr AudioTrack | |
TypedObject AudioTrack Source # | |
Defined in GI.GES.Objects.AudioTrack | |
HasParentTypes AudioTrack Source # | |
Defined in GI.GES.Objects.AudioTrack | |
IsGValue (Maybe AudioTrack) Source # | Convert |
Defined in GI.GES.Objects.AudioTrack gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe AudioTrack -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe AudioTrack) | |
type ParentTypes AudioTrack Source # | |
Defined in GI.GES.Objects.AudioTrack |
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
(GObject o, IsDescendantOf AudioTrack o) => IsAudioTrack o Source # | |
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
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
:: (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.