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 |
The structure containing the format specification of the ringbuffer.
Synopsis
- newtype AudioRingBufferSpec = AudioRingBufferSpec (ManagedPtr AudioRingBufferSpec)
- newZeroAudioRingBufferSpec :: MonadIO m => m AudioRingBufferSpec
- getAudioRingBufferSpecBufferTime :: MonadIO m => AudioRingBufferSpec -> m Word64
- setAudioRingBufferSpecBufferTime :: MonadIO m => AudioRingBufferSpec -> Word64 -> m ()
- clearAudioRingBufferSpecCaps :: MonadIO m => AudioRingBufferSpec -> m ()
- getAudioRingBufferSpecCaps :: MonadIO m => AudioRingBufferSpec -> m (Maybe Caps)
- setAudioRingBufferSpecCaps :: MonadIO m => AudioRingBufferSpec -> Ptr Caps -> m ()
- getAudioRingBufferSpecInfo :: MonadIO m => AudioRingBufferSpec -> m AudioInfo
- getAudioRingBufferSpecLatencyTime :: MonadIO m => AudioRingBufferSpec -> m Word64
- setAudioRingBufferSpecLatencyTime :: MonadIO m => AudioRingBufferSpec -> Word64 -> m ()
- getAudioRingBufferSpecSeglatency :: MonadIO m => AudioRingBufferSpec -> m Int32
- setAudioRingBufferSpecSeglatency :: MonadIO m => AudioRingBufferSpec -> Int32 -> m ()
- getAudioRingBufferSpecSegsize :: MonadIO m => AudioRingBufferSpec -> m Int32
- setAudioRingBufferSpecSegsize :: MonadIO m => AudioRingBufferSpec -> Int32 -> m ()
- getAudioRingBufferSpecSegtotal :: MonadIO m => AudioRingBufferSpec -> m Int32
- setAudioRingBufferSpecSegtotal :: MonadIO m => AudioRingBufferSpec -> Int32 -> m ()
- getAudioRingBufferSpecType :: MonadIO m => AudioRingBufferSpec -> m AudioRingBufferFormatType
- setAudioRingBufferSpecType :: MonadIO m => AudioRingBufferSpec -> AudioRingBufferFormatType -> m ()
Exported types
newtype AudioRingBufferSpec Source #
Memory-managed wrapper type.
AudioRingBufferSpec (ManagedPtr AudioRingBufferSpec) |
Instances
Eq AudioRingBufferSpec Source # | |
Defined in GI.GstAudio.Structs.AudioRingBufferSpec (==) :: AudioRingBufferSpec -> AudioRingBufferSpec -> Bool # (/=) :: AudioRingBufferSpec -> AudioRingBufferSpec -> Bool # | |
BoxedPtr AudioRingBufferSpec Source # | |
Defined in GI.GstAudio.Structs.AudioRingBufferSpec | |
CallocPtr AudioRingBufferSpec Source # | |
Defined in GI.GstAudio.Structs.AudioRingBufferSpec | |
ManagedPtrNewtype AudioRingBufferSpec Source # | |
Defined in GI.GstAudio.Structs.AudioRingBufferSpec toManagedPtr :: AudioRingBufferSpec -> ManagedPtr AudioRingBufferSpec | |
tag ~ 'AttrSet => Constructible AudioRingBufferSpec tag Source # | |
Defined in GI.GstAudio.Structs.AudioRingBufferSpec new :: MonadIO m => (ManagedPtr AudioRingBufferSpec -> AudioRingBufferSpec) -> [AttrOp AudioRingBufferSpec tag] -> m AudioRingBufferSpec |
newZeroAudioRingBufferSpec :: MonadIO m => m AudioRingBufferSpec Source #
Construct a AudioRingBufferSpec
struct initialized to zero.
Methods
Properties
bufferTime
the total buffer size in microseconds
getAudioRingBufferSpecBufferTime :: MonadIO m => AudioRingBufferSpec -> m Word64 Source #
Get the value of the “buffer_time
” field.
When overloading is enabled, this is equivalent to
get
audioRingBufferSpec #bufferTime
setAudioRingBufferSpecBufferTime :: MonadIO m => AudioRingBufferSpec -> Word64 -> m () Source #
Set the value of the “buffer_time
” field.
When overloading is enabled, this is equivalent to
set
audioRingBufferSpec [ #bufferTime:=
value ]
caps
The caps that generated the Spec.
clearAudioRingBufferSpecCaps :: MonadIO m => AudioRingBufferSpec -> m () Source #
Set the value of the “caps
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#caps
getAudioRingBufferSpecCaps :: MonadIO m => AudioRingBufferSpec -> m (Maybe Caps) Source #
Get the value of the “caps
” field.
When overloading is enabled, this is equivalent to
get
audioRingBufferSpec #caps
setAudioRingBufferSpecCaps :: MonadIO m => AudioRingBufferSpec -> Ptr Caps -> m () Source #
Set the value of the “caps
” field.
When overloading is enabled, this is equivalent to
set
audioRingBufferSpec [ #caps:=
value ]
info
the AudioInfo
getAudioRingBufferSpecInfo :: MonadIO m => AudioRingBufferSpec -> m AudioInfo Source #
Get the value of the “info
” field.
When overloading is enabled, this is equivalent to
get
audioRingBufferSpec #info
latencyTime
the latency in microseconds
getAudioRingBufferSpecLatencyTime :: MonadIO m => AudioRingBufferSpec -> m Word64 Source #
Get the value of the “latency_time
” field.
When overloading is enabled, this is equivalent to
get
audioRingBufferSpec #latencyTime
setAudioRingBufferSpecLatencyTime :: MonadIO m => AudioRingBufferSpec -> Word64 -> m () Source #
Set the value of the “latency_time
” field.
When overloading is enabled, this is equivalent to
set
audioRingBufferSpec [ #latencyTime:=
value ]
seglatency
number of segments queued in the lower level device, defaults to segtotal
getAudioRingBufferSpecSeglatency :: MonadIO m => AudioRingBufferSpec -> m Int32 Source #
Get the value of the “seglatency
” field.
When overloading is enabled, this is equivalent to
get
audioRingBufferSpec #seglatency
setAudioRingBufferSpecSeglatency :: MonadIO m => AudioRingBufferSpec -> Int32 -> m () Source #
Set the value of the “seglatency
” field.
When overloading is enabled, this is equivalent to
set
audioRingBufferSpec [ #seglatency:=
value ]
segsize
the size of one segment in bytes
getAudioRingBufferSpecSegsize :: MonadIO m => AudioRingBufferSpec -> m Int32 Source #
Get the value of the “segsize
” field.
When overloading is enabled, this is equivalent to
get
audioRingBufferSpec #segsize
setAudioRingBufferSpecSegsize :: MonadIO m => AudioRingBufferSpec -> Int32 -> m () Source #
Set the value of the “segsize
” field.
When overloading is enabled, this is equivalent to
set
audioRingBufferSpec [ #segsize:=
value ]
segtotal
the total number of segments
getAudioRingBufferSpecSegtotal :: MonadIO m => AudioRingBufferSpec -> m Int32 Source #
Get the value of the “segtotal
” field.
When overloading is enabled, this is equivalent to
get
audioRingBufferSpec #segtotal
setAudioRingBufferSpecSegtotal :: MonadIO m => AudioRingBufferSpec -> Int32 -> m () Source #
Set the value of the “segtotal
” field.
When overloading is enabled, this is equivalent to
set
audioRingBufferSpec [ #segtotal:=
value ]
type
the sample type
getAudioRingBufferSpecType :: MonadIO m => AudioRingBufferSpec -> m AudioRingBufferFormatType Source #
Get the value of the “type
” field.
When overloading is enabled, this is equivalent to
get
audioRingBufferSpec #type
setAudioRingBufferSpecType :: MonadIO m => AudioRingBufferSpec -> AudioRingBufferFormatType -> m () Source #
Set the value of the “type
” field.
When overloading is enabled, this is equivalent to
set
audioRingBufferSpec [ #type:=
value ]