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(void* ptr, Flag!"Take" take)
this
this()

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

Members

Functions

cPtr
void* cPtr(Flag!"Dup" dup)
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

self
AudioInfo self()

Returns this, for use in with statements.

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.

Properties

bpf
int bpf [@property getter]

Get field bpf.

bpf
int bpf [@property setter]

Set field bpf.

channels
int channels [@property getter]

Get field channels.

channels
int channels [@property setter]

Set field channels.

finfo
gstaudio.audio_format_info.AudioFormatInfo finfo [@property getter]

Get field finfo.

flags
gstaudio.types.AudioFlags flags [@property getter]

Get field flags.

flags
gstaudio.types.AudioFlags flags [@property setter]

Set field flags.

gType
GType gType [@property getter]
layout
gstaudio.types.AudioLayout layout [@property getter]

Get field layout.

layout
gstaudio.types.AudioLayout layout [@property setter]

Set field layout.

rate
int rate [@property getter]

Get field rate.

rate
int rate [@property setter]

Set field rate.

Static functions

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

Parse caps and update info.

getGType
GType getGType()
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.