gstaudio.audio_info
Module for [AudioInfo] class
class AudioInfo
Types 1
classAudioInfo : gobject.boxed.Boxed
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
gstaudio.audio_format_info.AudioFormatInfo finfo() @property nothrowGet `finfo` field. Returns: the format info of the audiogstaudio.types.AudioFlags flags() @property nothrowGet `flags` field. Returns: additional audio flagsvoid flags(gstaudio.types.AudioFlags propval) @property nothrowSet `flags` field. Params: propval = additional audio flagsvoid layout(gstaudio.types.AudioLayout propval) @property nothrowSet `layout` field. Params: propval = audio layoutvoid channels(int propval) @property nothrowSet `channels` field. Params: propval = the number of channelsint bpf() @property nothrowGet `bpf` field. Returns: the number of bytes for one frame, this is the size of one sample * @channelsvoid bpf(int propval) @property nothrowSet `bpf` field. Params: propval = the number of bytes for one frame, this is the size of one sample * @channelsgstaudio.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 notvoid 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.