gstaudio.audio_info

Module for [AudioInfo] class

class AudioInfo

Types 1

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.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
AudioInfo self() nothrowReturns `this`, for use in `with` statements.
gstaudio.audio_format_info.AudioFormatInfo finfo() @property nothrowGet `finfo` field. Returns: the format info of the audio
gstaudio.types.AudioFlags flags() @property nothrowGet `flags` field. Returns: additional audio flags
void flags(gstaudio.types.AudioFlags propval) @property nothrowSet `flags` field. Params: propval = additional audio flags
gstaudio.types.AudioLayout layout() @property nothrowGet `layout` field. Returns: audio layout
void layout(gstaudio.types.AudioLayout propval) @property nothrowSet `layout` field. Params: propval = audio layout
int rate() @property nothrowGet `rate` field. Returns: the audio sample rate
void rate(int propval) @property nothrowSet `rate` field. Params: propval = the audio sample rate
int channels() @property nothrowGet `channels` field. Returns: the number of channels
void channels(int propval) @property nothrowSet `channels` field. Params: propval = the number of channels
int bpf() @property nothrowGet `bpf` field. Returns: the number of bytes for one frame, this is the size of one sample * @channels
void bpf(int propval) @property nothrowSet `bpf` field. Params: propval = the number of bytes for one frame, this is the size of one sample * @channels
gstaudio.audio_info.AudioInfo newFromCaps(gst.caps.Caps caps) static nothrowParse caps to generate a #GstAudioInfo.
bool convert(gst.types.Format srcFmt, long srcVal, gst.types.Format destFmt, out long destVal) nothrowConverts 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 func...
gstaudio.audio_info.AudioInfo copy() nothrowCopy a GstAudioInfo structure. Returns: a new #GstAudioInfo. free with gst_audio_info_free.
bool isEqual(gstaudio.audio_info.AudioInfo other) nothrowCompares two #GstAudioInfo and returns whether they are equal or not
void setFormat(gstaudio.types.AudioFormat format, int rate, int channels, gstaudio.types.AudioChannelPosition[] position = null) nothrowSet the default info for the audio info of format and rate and channels.
gst.caps.Caps toCaps() nothrowConvert the values of info into a #GstCaps. Returns: the new #GstCaps containing the info of info.
bool fromCaps(out gstaudio.audio_info.AudioInfo info, gst.caps.Caps caps) static nothrowParse caps and update info.
void init_(out gstaudio.audio_info.AudioInfo info) static nothrowInitialize info with default values.
Constructors
this(void * ptr, Flag!"Take" take)
this()Allocate a new #GstAudioInfo that is also initialized with [gstaudio.audio_info.AudioInfo.init_]. Returns: a new #GstAudioInfo. free with [gstaudio.audio_info.AudioInfo.free].