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 |
Outputs a test audio stream using audiotestsrc. The default property values output silence. Useful for testing pipelines, or to fill gaps in an audio track.
Synopsis
- newtype AudioTestSource = AudioTestSource (ManagedPtr AudioTestSource)
- class (GObject o, IsDescendantOf AudioTestSource o) => IsAudioTestSource o
- toAudioTestSource :: (MonadIO m, IsAudioTestSource o) => o -> m AudioTestSource
- audioTestSourceGetFreq :: (HasCallStack, MonadIO m, IsAudioTestSource a) => a -> m Double
- audioTestSourceGetVolume :: (HasCallStack, MonadIO m, IsAudioTestSource a) => a -> m Double
- audioTestSourceSetFreq :: (HasCallStack, MonadIO m, IsAudioTestSource a) => a -> Double -> m ()
- audioTestSourceSetVolume :: (HasCallStack, MonadIO m, IsAudioTestSource a) => a -> Double -> m ()
Exported types
newtype AudioTestSource Source #
Memory-managed wrapper type.
AudioTestSource (ManagedPtr AudioTestSource) |
Instances
class (GObject o, IsDescendantOf AudioTestSource o) => IsAudioTestSource o Source #
Type class for types which can be safely cast to AudioTestSource
, for instance with toAudioTestSource
.
Instances
(GObject o, IsDescendantOf AudioTestSource o) => IsAudioTestSource o Source # | |
Defined in GI.GES.Objects.AudioTestSource |
toAudioTestSource :: (MonadIO m, IsAudioTestSource o) => o -> m AudioTestSource Source #
Cast to AudioTestSource
, 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
addChildProperty, addChildrenProps, addMetasFromString, bindProperty, bindPropertyFull, checkMetaRegistered, clampControlSource, copy, edit, editFull, forceFloating, foreach, freezeNotify, getv, hasInternalSource, isActive, isCore, isFloating, listChildrenProperties, lookupChild, metasToString, notify, notifyByPspec, paste, ref, refSink, registerMeta, registerMetaBoolean, registerMetaDate, registerMetaDateTime, registerMetaDouble, registerMetaFloat, registerMetaInt, registerMetaInt64, registerMetaString, registerMetaUint, registerMetaUint64, registerStaticMeta, removeChildProperty, removeControlBinding, ripple, rippleEnd, rollEnd, rollStart, runDispose, stealData, stealQdata, thawNotify, trim, unref, watchClosure.
Getters
getAllControlBindings, getAsset, getAutoClampControlSources, getBoolean, getChildProperty, getChildPropertyByPspec, getControlBinding, getData, getDate, getDateTime, getDouble, getDuration, getElement, getFloat, getFreq, getGnlobject, getId, getInpoint, getInt, getInt64, getLayerPriority, getMarkerList, getMaxDuration, getMeta, getName, getNaturalFramerate, getNleobject, getParent, getPriority, getProperty, getQdata, getStart, getString, getTimeline, getToplevelParent, getTrack, getTrackType, getTrackTypes, getUint, getUint64, getVolume.
Setters
setActive, setAsset, setAutoClampControlSources, setBoolean, setChildProperty, setChildPropertyByPspec, setChildPropertyFull, setControlSource, setData, setDataFull, setDate, setDateTime, setDouble, setDuration, setFloat, setFreq, setHasInternalSource, setInpoint, setInt, setInt64, setMarkerList, setMaxDuration, setMeta, setName, setParent, setPriority, setProperty, setStart, setString, setTimeline, setTrackType, setUint, setUint64, setVolume.
getFreq
audioTestSourceGetFreq Source #
:: (HasCallStack, MonadIO m, IsAudioTestSource a) | |
=> a |
|
-> m Double | Returns: The current frequency of |
Get the current frequency of self
.
getVolume
audioTestSourceGetVolume Source #
:: (HasCallStack, MonadIO m, IsAudioTestSource a) | |
=> a |
|
-> m Double | Returns: The current volume of |
Get the current volume of self
.
setFreq
audioTestSourceSetFreq Source #
:: (HasCallStack, MonadIO m, IsAudioTestSource a) | |
=> a |
|
-> Double |
|
-> m () |
Lets you set the frequency applied on the track element
setVolume
audioTestSourceSetVolume Source #
:: (HasCallStack, MonadIO m, IsAudioTestSource a) | |
=> a |
|
-> Double |
|
-> m () |
Sets the volume of the test audio signal.