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.AudioFormatInfo

Description

Information for an audio format.

Synopsis

Exported types

newtype AudioFormatInfo Source #

Memory-managed wrapper type.

Constructors

AudioFormatInfo (ManagedPtr AudioFormatInfo) 

Instances

Instances details
Eq AudioFormatInfo Source # 
Instance details

Defined in GI.GstAudio.Structs.AudioFormatInfo

BoxedPtr AudioFormatInfo Source # 
Instance details

Defined in GI.GstAudio.Structs.AudioFormatInfo

CallocPtr AudioFormatInfo Source # 
Instance details

Defined in GI.GstAudio.Structs.AudioFormatInfo

ManagedPtrNewtype AudioFormatInfo Source # 
Instance details

Defined in GI.GstAudio.Structs.AudioFormatInfo

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

Defined in GI.GstAudio.Structs.AudioFormatInfo

Methods

new :: MonadIO m => (ManagedPtr AudioFormatInfo -> AudioFormatInfo) -> [AttrOp AudioFormatInfo tag] -> m AudioFormatInfo

newZeroAudioFormatInfo :: MonadIO m => m AudioFormatInfo Source #

Construct a AudioFormatInfo struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

fillSilence.

Getters

None.

Setters

None.

fillSilence

audioFormatInfoFillSilence Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> AudioFormatInfo

info: a AudioFormatInfo

-> ByteString

dest: a destination to fill

-> m () 

Fill length bytes in dest with silence samples for info.

Since: 1.20

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 ]