AudioInfo

Information describing audio properties. This information can be filled in from GstCaps with gstaudio.audio_info.AudioInfo.fromCaps.

Use the provided macros to access the info in this structure.

Constructors

this
this()

Allocate a new #GstAudioInfo that is also initialized with gstaudio.audio_info.AudioInfo.init_.

Members

Functions

convert
bool convert(gst.types.Format srcFmt, long srcVal, gst.types.Format destFmt, long destVal)

Converts among various #GstFormat types. This function handles GST_FORMAT_BYTES, GST_FORMAT_TIME, and GST_FORMAT_DEFAULT. For raw audio, GST_FORMAT_DEFAULT corresponds to audio frames. This function can be used to handle pad queries of the type GST_QUERY_CONVERT.

copy
gstaudio.audio_info.AudioInfo copy()

Copy a GstAudioInfo structure.

isEqual
bool isEqual(gstaudio.audio_info.AudioInfo other)

Compares two #GstAudioInfo and returns whether they are equal or not

setFormat
void setFormat(gstaudio.types.AudioFormat format, int rate, int channels, gstaudio.types.AudioChannelPosition[] position)

Set the default info for the audio info of format and rate and channels.

toCaps
gst.caps.Caps toCaps()

Convert the values of info into a #GstCaps.

Static functions

fromCaps
bool fromCaps(gstaudio.audio_info.AudioInfo info, gst.caps.Caps caps)

Parse caps and update info.

init_
void init_(gstaudio.audio_info.AudioInfo info)

Initialize info with default values.

newFromCaps
gstaudio.audio_info.AudioInfo newFromCaps(gst.caps.Caps caps)

Parse caps to generate a #GstAudioInfo.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.