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 |
AudioDownmixMeta
defines an audio downmix matrix to be send along with
audio buffers. These functions in this module help to create and attach the
meta as well as extracting it.
Since: 1.16
Synopsis
- newtype AudioMeta = AudioMeta (ManagedPtr AudioMeta)
- newZeroAudioMeta :: MonadIO m => m AudioMeta
- audioMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo
- getAudioMetaInfo :: MonadIO m => AudioMeta -> m AudioInfo
- getAudioMetaMeta :: MonadIO m => AudioMeta -> m Meta
- getAudioMetaOffsets :: MonadIO m => AudioMeta -> m Word64
- setAudioMetaOffsets :: MonadIO m => AudioMeta -> Word64 -> m ()
- getAudioMetaSamples :: MonadIO m => AudioMeta -> m Word64
- setAudioMetaSamples :: MonadIO m => AudioMeta -> Word64 -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq AudioMeta Source # | |
BoxedPtr AudioMeta Source # | |
Defined in GI.GstAudio.Structs.AudioMeta boxedPtrCopy :: AudioMeta -> IO AudioMeta boxedPtrFree :: AudioMeta -> IO () | |
CallocPtr AudioMeta Source # | |
Defined in GI.GstAudio.Structs.AudioMeta boxedPtrCalloc :: IO (Ptr AudioMeta) | |
ManagedPtrNewtype AudioMeta Source # | |
Defined in GI.GstAudio.Structs.AudioMeta toManagedPtr :: AudioMeta -> ManagedPtr AudioMeta | |
tag ~ 'AttrSet => Constructible AudioMeta tag Source # | |
newZeroAudioMeta :: MonadIO m => m AudioMeta Source #
Construct a AudioMeta
struct initialized to zero.
Methods
getInfo
audioMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo Source #
No description available in the introspection data.
Properties
info
the audio properties of the buffer
getAudioMetaInfo :: MonadIO m => AudioMeta -> m AudioInfo Source #
Get the value of the “info
” field.
When overloading is enabled, this is equivalent to
get
audioMeta #info
meta
parent Meta
getAudioMetaMeta :: MonadIO m => AudioMeta -> m Meta Source #
Get the value of the “meta
” field.
When overloading is enabled, this is equivalent to
get
audioMeta #meta
offsets
the offsets (in bytes) where each channel plane starts in the
buffer or Nothing
if the buffer has interleaved layout; if not Nothing
, this
is guaranteed to be an array of info
.channels elements
getAudioMetaOffsets :: MonadIO m => AudioMeta -> m Word64 Source #
Get the value of the “offsets
” field.
When overloading is enabled, this is equivalent to
get
audioMeta #offsets
setAudioMetaOffsets :: MonadIO m => AudioMeta -> Word64 -> m () Source #
Set the value of the “offsets
” field.
When overloading is enabled, this is equivalent to
set
audioMeta [ #offsets:=
value ]
samples
the number of valid samples in the buffer
getAudioMetaSamples :: MonadIO m => AudioMeta -> m Word64 Source #
Get the value of the “samples
” field.
When overloading is enabled, this is equivalent to
get
audioMeta #samples
setAudioMetaSamples :: MonadIO m => AudioMeta -> Word64 -> m () Source #
Set the value of the “samples
” field.
When overloading is enabled, this is equivalent to
set
audioMeta [ #samples:=
value ]