gi-gstaudio-1.0.27: GStreamerAudio bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GstAudio.Structs.AudioDownmixMeta

Description

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

Exported types

newtype AudioDownmixMeta Source #

Memory-managed wrapper type.

Constructors

AudioDownmixMeta (ManagedPtr AudioDownmixMeta) 

Instances

Instances details
Eq AudioDownmixMeta Source # 
Instance details

Defined in GI.GstAudio.Structs.AudioDownmixMeta

BoxedPtr AudioDownmixMeta Source # 
Instance details

Defined in GI.GstAudio.Structs.AudioDownmixMeta

CallocPtr AudioDownmixMeta Source # 
Instance details

Defined in GI.GstAudio.Structs.AudioDownmixMeta

ManagedPtrNewtype AudioDownmixMeta Source # 
Instance details

Defined in GI.GstAudio.Structs.AudioDownmixMeta

tag ~ 'AttrSet => Constructible AudioDownmixMeta tag Source # 
Instance details

Defined in GI.GstAudio.Structs.AudioDownmixMeta

Methods

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 ]