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 |
Extra buffer metadata describing audio downmixing matrix. This metadata is
attached to audio buffers and contains a matrix to downmix the buffer number
of channels to channels
.
matrix
is an two-dimensional array of toChannels
times fromChannels
coefficients, i.e. the i-th output channels is constructed by multiplicating
the input channels with the coefficients in matrix
[i] and taking the sum
of the results.
Synopsis
- newtype AudioDownmixMeta = AudioDownmixMeta (ManagedPtr AudioDownmixMeta)
- newZeroAudioDownmixMeta :: MonadIO m => m AudioDownmixMeta
- audioDownmixMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo
- getAudioDownmixMetaFromChannels :: MonadIO m => AudioDownmixMeta -> m Int32
- setAudioDownmixMetaFromChannels :: MonadIO m => AudioDownmixMeta -> Int32 -> m ()
- getAudioDownmixMetaFromPosition :: MonadIO m => AudioDownmixMeta -> m AudioChannelPosition
- setAudioDownmixMetaFromPosition :: MonadIO m => AudioDownmixMeta -> AudioChannelPosition -> m ()
- getAudioDownmixMetaMatrix :: MonadIO m => AudioDownmixMeta -> m Float
- setAudioDownmixMetaMatrix :: MonadIO m => AudioDownmixMeta -> Float -> m ()
- getAudioDownmixMetaMeta :: MonadIO m => AudioDownmixMeta -> m Meta
- getAudioDownmixMetaToChannels :: MonadIO m => AudioDownmixMeta -> m Int32
- setAudioDownmixMetaToChannels :: MonadIO m => AudioDownmixMeta -> Int32 -> m ()
- getAudioDownmixMetaToPosition :: MonadIO m => AudioDownmixMeta -> m AudioChannelPosition
- setAudioDownmixMetaToPosition :: MonadIO m => AudioDownmixMeta -> AudioChannelPosition -> m ()
Exported types
newtype AudioDownmixMeta Source #
Memory-managed wrapper type.
AudioDownmixMeta (ManagedPtr AudioDownmixMeta) |
Instances
Eq AudioDownmixMeta Source # | |
Defined in GI.GstAudio.Structs.AudioDownmixMeta (==) :: AudioDownmixMeta -> AudioDownmixMeta -> Bool # (/=) :: AudioDownmixMeta -> AudioDownmixMeta -> Bool # | |
BoxedPtr AudioDownmixMeta Source # | |
Defined in GI.GstAudio.Structs.AudioDownmixMeta boxedPtrCopy :: AudioDownmixMeta -> IO AudioDownmixMeta boxedPtrFree :: AudioDownmixMeta -> IO () | |
CallocPtr AudioDownmixMeta Source # | |
Defined in GI.GstAudio.Structs.AudioDownmixMeta | |
ManagedPtrNewtype AudioDownmixMeta Source # | |
Defined in GI.GstAudio.Structs.AudioDownmixMeta toManagedPtr :: AudioDownmixMeta -> ManagedPtr AudioDownmixMeta | |
tag ~ 'AttrSet => Constructible AudioDownmixMeta tag Source # | |
Defined in GI.GstAudio.Structs.AudioDownmixMeta new :: MonadIO m => (ManagedPtr AudioDownmixMeta -> AudioDownmixMeta) -> [AttrOp AudioDownmixMeta tag] -> m AudioDownmixMeta |
newZeroAudioDownmixMeta :: MonadIO m => m AudioDownmixMeta Source #
Construct a AudioDownmixMeta
struct initialized to zero.
Methods
getInfo
audioDownmixMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo Source #
No description available in the introspection data.
Properties
fromChannels
the number of channels of the source
getAudioDownmixMetaFromChannels :: MonadIO m => AudioDownmixMeta -> m Int32 Source #
Get the value of the “from_channels
” field.
When overloading is enabled, this is equivalent to
get
audioDownmixMeta #fromChannels
setAudioDownmixMetaFromChannels :: MonadIO m => AudioDownmixMeta -> Int32 -> m () Source #
Set the value of the “from_channels
” field.
When overloading is enabled, this is equivalent to
set
audioDownmixMeta [ #fromChannels:=
value ]
fromPosition
the channel positions of the source
getAudioDownmixMetaFromPosition :: MonadIO m => AudioDownmixMeta -> m AudioChannelPosition Source #
Get the value of the “from_position
” field.
When overloading is enabled, this is equivalent to
get
audioDownmixMeta #fromPosition
setAudioDownmixMetaFromPosition :: MonadIO m => AudioDownmixMeta -> AudioChannelPosition -> m () Source #
Set the value of the “from_position
” field.
When overloading is enabled, this is equivalent to
set
audioDownmixMeta [ #fromPosition:=
value ]
matrix
the matrix coefficients.
getAudioDownmixMetaMatrix :: MonadIO m => AudioDownmixMeta -> m Float Source #
Get the value of the “matrix
” field.
When overloading is enabled, this is equivalent to
get
audioDownmixMeta #matrix
setAudioDownmixMetaMatrix :: MonadIO m => AudioDownmixMeta -> Float -> m () Source #
Set the value of the “matrix
” field.
When overloading is enabled, this is equivalent to
set
audioDownmixMeta [ #matrix:=
value ]
meta
parent Meta
getAudioDownmixMetaMeta :: MonadIO m => AudioDownmixMeta -> m Meta Source #
Get the value of the “meta
” field.
When overloading is enabled, this is equivalent to
get
audioDownmixMeta #meta
toChannels
the number of channels of the destination
getAudioDownmixMetaToChannels :: MonadIO m => AudioDownmixMeta -> m Int32 Source #
Get the value of the “to_channels
” field.
When overloading is enabled, this is equivalent to
get
audioDownmixMeta #toChannels
setAudioDownmixMetaToChannels :: MonadIO m => AudioDownmixMeta -> Int32 -> m () Source #
Set the value of the “to_channels
” field.
When overloading is enabled, this is equivalent to
set
audioDownmixMeta [ #toChannels:=
value ]
toPosition
the channel positions of the destination
getAudioDownmixMetaToPosition :: MonadIO m => AudioDownmixMeta -> m AudioChannelPosition Source #
Get the value of the “to_position
” field.
When overloading is enabled, this is equivalent to
get
audioDownmixMeta #toPosition
setAudioDownmixMetaToPosition :: MonadIO m => AudioDownmixMeta -> AudioChannelPosition -> m () Source #
Set the value of the “to_position
” field.
When overloading is enabled, this is equivalent to
set
audioDownmixMeta [ #toPosition:=
value ]