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

Description

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

Exported types

newtype AudioClippingMeta Source #

Memory-managed wrapper type.

Constructors

AudioClippingMeta (ManagedPtr AudioClippingMeta) 

Instances

Instances details
Eq AudioClippingMeta Source # 
Instance details

Defined in GI.GstAudio.Structs.AudioClippingMeta

BoxedPtr AudioClippingMeta Source # 
Instance details

Defined in GI.GstAudio.Structs.AudioClippingMeta

CallocPtr AudioClippingMeta Source # 
Instance details

Defined in GI.GstAudio.Structs.AudioClippingMeta

ManagedPtrNewtype AudioClippingMeta Source # 
Instance details

Defined in GI.GstAudio.Structs.AudioClippingMeta

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

Defined in GI.GstAudio.Structs.AudioClippingMeta

Methods

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 ]