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 |
Extra buffer metadata describing how much audio has to be clipped from the start or end of a buffer. This is used for compressed formats, where the first frame usually has some additional samples due to encoder and decoder delays, and the last frame usually has some additional samples to be able to fill the complete last frame.
This is used to ensure that decoded data in the end has the same amount of samples, and multiply decoded streams can be gaplessly concatenated.
Note: If clipping of the start is done by adjusting the segment, this meta has to be dropped from buffers as otherwise clipping could happen twice.
Since: 1.8
Synopsis
- newtype AudioClippingMeta = AudioClippingMeta (ManagedPtr AudioClippingMeta)
- newZeroAudioClippingMeta :: MonadIO m => m AudioClippingMeta
- audioClippingMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo
- getAudioClippingMetaEnd :: MonadIO m => AudioClippingMeta -> m Word64
- setAudioClippingMetaEnd :: MonadIO m => AudioClippingMeta -> Word64 -> m ()
- getAudioClippingMetaFormat :: MonadIO m => AudioClippingMeta -> m Format
- setAudioClippingMetaFormat :: MonadIO m => AudioClippingMeta -> Format -> m ()
- getAudioClippingMetaMeta :: MonadIO m => AudioClippingMeta -> m Meta
- getAudioClippingMetaStart :: MonadIO m => AudioClippingMeta -> m Word64
- setAudioClippingMetaStart :: MonadIO m => AudioClippingMeta -> Word64 -> m ()
Exported types
newtype AudioClippingMeta Source #
Memory-managed wrapper type.
AudioClippingMeta (ManagedPtr AudioClippingMeta) |
Instances
Eq AudioClippingMeta Source # | |
Defined in GI.GstAudio.Structs.AudioClippingMeta (==) :: AudioClippingMeta -> AudioClippingMeta -> Bool # (/=) :: AudioClippingMeta -> AudioClippingMeta -> Bool # | |
BoxedPtr AudioClippingMeta Source # | |
Defined in GI.GstAudio.Structs.AudioClippingMeta boxedPtrCopy :: AudioClippingMeta -> IO AudioClippingMeta boxedPtrFree :: AudioClippingMeta -> IO () | |
CallocPtr AudioClippingMeta Source # | |
Defined in GI.GstAudio.Structs.AudioClippingMeta | |
ManagedPtrNewtype AudioClippingMeta Source # | |
Defined in GI.GstAudio.Structs.AudioClippingMeta toManagedPtr :: AudioClippingMeta -> ManagedPtr AudioClippingMeta | |
tag ~ 'AttrSet => Constructible AudioClippingMeta tag Source # | |
Defined in GI.GstAudio.Structs.AudioClippingMeta new :: MonadIO m => (ManagedPtr AudioClippingMeta -> AudioClippingMeta) -> [AttrOp AudioClippingMeta tag] -> m AudioClippingMeta |
newZeroAudioClippingMeta :: MonadIO m => m AudioClippingMeta Source #
Construct a AudioClippingMeta
struct initialized to zero.
Methods
getInfo
audioClippingMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo Source #
No description available in the introspection data.
Properties
end
Amount of to clip from end of buffer
getAudioClippingMetaEnd :: MonadIO m => AudioClippingMeta -> m Word64 Source #
Get the value of the “end
” field.
When overloading is enabled, this is equivalent to
get
audioClippingMeta #end
setAudioClippingMetaEnd :: MonadIO m => AudioClippingMeta -> Word64 -> m () Source #
Set the value of the “end
” field.
When overloading is enabled, this is equivalent to
set
audioClippingMeta [ #end:=
value ]
format
GstFormat of start
and stop
, GST_FORMAT_DEFAULT is samples
getAudioClippingMetaFormat :: MonadIO m => AudioClippingMeta -> m Format Source #
Get the value of the “format
” field.
When overloading is enabled, this is equivalent to
get
audioClippingMeta #format
setAudioClippingMetaFormat :: MonadIO m => AudioClippingMeta -> Format -> m () Source #
Set the value of the “format
” field.
When overloading is enabled, this is equivalent to
set
audioClippingMeta [ #format:=
value ]
meta
parent Meta
getAudioClippingMetaMeta :: MonadIO m => AudioClippingMeta -> m Meta Source #
Get the value of the “meta
” field.
When overloading is enabled, this is equivalent to
get
audioClippingMeta #meta
start
Amount of audio to clip from start of buffer
getAudioClippingMetaStart :: MonadIO m => AudioClippingMeta -> m Word64 Source #
Get the value of the “start
” field.
When overloading is enabled, this is equivalent to
get
audioClippingMeta #start
setAudioClippingMetaStart :: MonadIO m => AudioClippingMeta -> Word64 -> m () Source #
Set the value of the “start
” field.
When overloading is enabled, this is equivalent to
set
audioClippingMeta [ #start:=
value ]