gi-gstaudio-1.0.18: GStreamerAudio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.GstAudio.Structs.AudioFormatInfo

Contents

Description

Information for an audio format.

Synopsis

Exported types

newZeroAudioFormatInfo :: MonadIO m => m AudioFormatInfo Source #

Construct a AudioFormatInfo struct initialized to zero.

Properties

depth

amount of valid bits in width

getAudioFormatInfoDepth :: MonadIO m => AudioFormatInfo -> m Int32 Source #

Get the value of the “depth” field. When overloading is enabled, this is equivalent to

get audioFormatInfo #depth

setAudioFormatInfoDepth :: MonadIO m => AudioFormatInfo -> Int32 -> m () Source #

Set the value of the “depth” field. When overloading is enabled, this is equivalent to

set audioFormatInfo [ #depth := value ]

description

user readable description of the format

clearAudioFormatInfoDescription :: MonadIO m => AudioFormatInfo -> m () Source #

Set the value of the “description” field to Nothing. When overloading is enabled, this is equivalent to

clear #description

getAudioFormatInfoDescription :: MonadIO m => AudioFormatInfo -> m (Maybe Text) Source #

Get the value of the “description” field. When overloading is enabled, this is equivalent to

get audioFormatInfo #description

setAudioFormatInfoDescription :: MonadIO m => AudioFormatInfo -> CString -> m () Source #

Set the value of the “description” field. When overloading is enabled, this is equivalent to

set audioFormatInfo [ #description := value ]

endianness

the endianness

getAudioFormatInfoEndianness :: MonadIO m => AudioFormatInfo -> m Int32 Source #

Get the value of the “endianness” field. When overloading is enabled, this is equivalent to

get audioFormatInfo #endianness

setAudioFormatInfoEndianness :: MonadIO m => AudioFormatInfo -> Int32 -> m () Source #

Set the value of the “endianness” field. When overloading is enabled, this is equivalent to

set audioFormatInfo [ #endianness := value ]

flags

getAudioFormatInfoFlags :: MonadIO m => AudioFormatInfo -> m [AudioFormatFlags] Source #

Get the value of the “flags” field. When overloading is enabled, this is equivalent to

get audioFormatInfo #flags

setAudioFormatInfoFlags :: MonadIO m => AudioFormatInfo -> [AudioFormatFlags] -> m () Source #

Set the value of the “flags” field. When overloading is enabled, this is equivalent to

set audioFormatInfo [ #flags := value ]

format

getAudioFormatInfoFormat :: MonadIO m => AudioFormatInfo -> m AudioFormat Source #

Get the value of the “format” field. When overloading is enabled, this is equivalent to

get audioFormatInfo #format

setAudioFormatInfoFormat :: MonadIO m => AudioFormatInfo -> AudioFormat -> m () Source #

Set the value of the “format” field. When overloading is enabled, this is equivalent to

set audioFormatInfo [ #format := value ]

name

string representation of the format

clearAudioFormatInfoName :: MonadIO m => AudioFormatInfo -> m () Source #

Set the value of the “name” field to Nothing. When overloading is enabled, this is equivalent to

clear #name

getAudioFormatInfoName :: MonadIO m => AudioFormatInfo -> m (Maybe Text) Source #

Get the value of the “name” field. When overloading is enabled, this is equivalent to

get audioFormatInfo #name

setAudioFormatInfoName :: MonadIO m => AudioFormatInfo -> CString -> m () Source #

Set the value of the “name” field. When overloading is enabled, this is equivalent to

set audioFormatInfo [ #name := value ]

packFunc

function to pack samples

clearAudioFormatInfoPackFunc :: MonadIO m => AudioFormatInfo -> m () Source #

Set the value of the “pack_func” field to Nothing. When overloading is enabled, this is equivalent to

clear #packFunc

getAudioFormatInfoPackFunc :: MonadIO m => AudioFormatInfo -> m (Maybe AudioFormatPack) Source #

Get the value of the “pack_func” field. When overloading is enabled, this is equivalent to

get audioFormatInfo #packFunc

setAudioFormatInfoPackFunc :: MonadIO m => AudioFormatInfo -> FunPtr C_AudioFormatPack -> m () Source #

Set the value of the “pack_func” field. When overloading is enabled, this is equivalent to

set audioFormatInfo [ #packFunc := value ]

unpackFormat

the format of the unpacked samples

getAudioFormatInfoUnpackFormat :: MonadIO m => AudioFormatInfo -> m AudioFormat Source #

Get the value of the “unpack_format” field. When overloading is enabled, this is equivalent to

get audioFormatInfo #unpackFormat

setAudioFormatInfoUnpackFormat :: MonadIO m => AudioFormatInfo -> AudioFormat -> m () Source #

Set the value of the “unpack_format” field. When overloading is enabled, this is equivalent to

set audioFormatInfo [ #unpackFormat := value ]

unpackFunc

function to unpack samples

clearAudioFormatInfoUnpackFunc :: MonadIO m => AudioFormatInfo -> m () Source #

Set the value of the “unpack_func” field to Nothing. When overloading is enabled, this is equivalent to

clear #unpackFunc

getAudioFormatInfoUnpackFunc :: MonadIO m => AudioFormatInfo -> m (Maybe AudioFormatUnpack) Source #

Get the value of the “unpack_func” field. When overloading is enabled, this is equivalent to

get audioFormatInfo #unpackFunc

setAudioFormatInfoUnpackFunc :: MonadIO m => AudioFormatInfo -> FunPtr C_AudioFormatUnpack -> m () Source #

Set the value of the “unpack_func” field. When overloading is enabled, this is equivalent to

set audioFormatInfo [ #unpackFunc := value ]

width

amount of bits used for one sample

getAudioFormatInfoWidth :: MonadIO m => AudioFormatInfo -> m Int32 Source #

Get the value of the “width” field. When overloading is enabled, this is equivalent to

get audioFormatInfo #width

setAudioFormatInfoWidth :: MonadIO m => AudioFormatInfo -> Int32 -> m () Source #

Set the value of the “width” field. When overloading is enabled, this is equivalent to

set audioFormatInfo [ #width := value ]