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 |
Information for an audio format.
Synopsis
- newtype AudioFormatInfo = AudioFormatInfo (ManagedPtr AudioFormatInfo)
- newZeroAudioFormatInfo :: MonadIO m => m AudioFormatInfo
- audioFormatInfoFillSilence :: (HasCallStack, MonadIO m) => AudioFormatInfo -> ByteString -> m ()
- getAudioFormatInfoDepth :: MonadIO m => AudioFormatInfo -> m Int32
- setAudioFormatInfoDepth :: MonadIO m => AudioFormatInfo -> Int32 -> m ()
- clearAudioFormatInfoDescription :: MonadIO m => AudioFormatInfo -> m ()
- getAudioFormatInfoDescription :: MonadIO m => AudioFormatInfo -> m (Maybe Text)
- setAudioFormatInfoDescription :: MonadIO m => AudioFormatInfo -> CString -> m ()
- getAudioFormatInfoEndianness :: MonadIO m => AudioFormatInfo -> m Int32
- setAudioFormatInfoEndianness :: MonadIO m => AudioFormatInfo -> Int32 -> m ()
- getAudioFormatInfoFlags :: MonadIO m => AudioFormatInfo -> m [AudioFormatFlags]
- setAudioFormatInfoFlags :: MonadIO m => AudioFormatInfo -> [AudioFormatFlags] -> m ()
- getAudioFormatInfoFormat :: MonadIO m => AudioFormatInfo -> m AudioFormat
- setAudioFormatInfoFormat :: MonadIO m => AudioFormatInfo -> AudioFormat -> m ()
- clearAudioFormatInfoName :: MonadIO m => AudioFormatInfo -> m ()
- getAudioFormatInfoName :: MonadIO m => AudioFormatInfo -> m (Maybe Text)
- setAudioFormatInfoName :: MonadIO m => AudioFormatInfo -> CString -> m ()
- clearAudioFormatInfoPackFunc :: MonadIO m => AudioFormatInfo -> m ()
- getAudioFormatInfoPackFunc :: MonadIO m => AudioFormatInfo -> m (Maybe AudioFormatPack)
- setAudioFormatInfoPackFunc :: MonadIO m => AudioFormatInfo -> FunPtr C_AudioFormatPack -> m ()
- getAudioFormatInfoUnpackFormat :: MonadIO m => AudioFormatInfo -> m AudioFormat
- setAudioFormatInfoUnpackFormat :: MonadIO m => AudioFormatInfo -> AudioFormat -> m ()
- clearAudioFormatInfoUnpackFunc :: MonadIO m => AudioFormatInfo -> m ()
- getAudioFormatInfoUnpackFunc :: MonadIO m => AudioFormatInfo -> m (Maybe AudioFormatUnpack)
- setAudioFormatInfoUnpackFunc :: MonadIO m => AudioFormatInfo -> FunPtr C_AudioFormatUnpack -> m ()
- getAudioFormatInfoWidth :: MonadIO m => AudioFormatInfo -> m Int32
- setAudioFormatInfoWidth :: MonadIO m => AudioFormatInfo -> Int32 -> m ()
Exported types
newtype AudioFormatInfo Source #
Memory-managed wrapper type.
AudioFormatInfo (ManagedPtr AudioFormatInfo) |
Instances
Eq AudioFormatInfo Source # | |
Defined in GI.GstAudio.Structs.AudioFormatInfo (==) :: AudioFormatInfo -> AudioFormatInfo -> Bool # (/=) :: AudioFormatInfo -> AudioFormatInfo -> Bool # | |
BoxedPtr AudioFormatInfo Source # | |
Defined in GI.GstAudio.Structs.AudioFormatInfo boxedPtrCopy :: AudioFormatInfo -> IO AudioFormatInfo boxedPtrFree :: AudioFormatInfo -> IO () | |
CallocPtr AudioFormatInfo Source # | |
Defined in GI.GstAudio.Structs.AudioFormatInfo | |
ManagedPtrNewtype AudioFormatInfo Source # | |
Defined in GI.GstAudio.Structs.AudioFormatInfo toManagedPtr :: AudioFormatInfo -> ManagedPtr AudioFormatInfo | |
tag ~ 'AttrSet => Constructible AudioFormatInfo tag Source # | |
Defined in GI.GstAudio.Structs.AudioFormatInfo 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
fillSilence
audioFormatInfoFillSilence Source #
:: (HasCallStack, MonadIO m) | |
=> AudioFormatInfo |
|
-> ByteString |
|
-> 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 ]