gstaudio.global
Global functions for gstaudio1 library
fn audioChannelGetFallbackMask audioChannelPositionsFromMask audioChannelPositionsToMask audioChannelPositionsToString audioChannelPositionsToValidOrder audioCheckValidChannelPositions audioClippingMetaApiGetType audioDownmixMetaApiGetType audioFormatInfoGetType audioFormatsRaw audioGetChannelReorderMap audioIec61937FrameSize audioIec61937Payload audioLevelMetaApiGetType audioMakeRawCaps audioMetaApiGetType audioReorderChannels bufferAddAudioClippingMeta bufferAddAudioLevelMeta bufferGetAudioDownmixMetaForChannels bufferGetAudioLevelMeta dsdPlaneOffsetMetaApiGetType
Functions 22
fn
ulong audioChannelGetFallbackMask(int channels)Get the fallback channel-mask for the given number of channels.fn
bool audioChannelPositionsFromMask(ulong channelMask, gstaudio.types.AudioChannelPosition[] position)Convert the channels present in channelmask to a position array (which should have at least channels entries ensured by caller). If channelmask is set to 0, it is considered as 'not present' for pu...fn
bool audioChannelPositionsToMask(gstaudio.types.AudioChannelPosition[] position, bool forceOrder, out ulong channelMask)Convert the position array of channels channels to a bitmask.fn
string audioChannelPositionsToString(gstaudio.types.AudioChannelPosition[] position)Converts position to a human-readable string representation for debugging purposes.fn
bool audioChannelPositionsToValidOrder(gstaudio.types.AudioChannelPosition[] position)Reorders the channel positions in position from any order to the GStreamer channel order.fn
bool audioCheckValidChannelPositions(gstaudio.types.AudioChannelPosition[] position, bool forceOrder)Checks if position contains valid channel positions for channels channels. If force_order is true it additionally checks if the channels are in the order required by GStreamer.fn
gstaudio.types.AudioFormat[] audioFormatsRaw()Return all the raw audio formats supported by GStreamer. Returns: an array of #GstAudioFormatfn
bool audioGetChannelReorderMap(gstaudio.types.AudioChannelPosition[] from, gstaudio.types.AudioChannelPosition[] to, int[] reorderMap)Returns a reorder map for from to to that can be used in custom channel reordering code, e.g. to convert from or to the GStreamer channel order. from and to must contain the same number of position...fn
uint audioIec61937FrameSize(gstaudio.audio_ring_buffer_spec.AudioRingBufferSpec spec)Calculated the size of the buffer expected by [gstaudio.global.audioIec61937Payload] for payloading type from spec.fn
bool audioIec61937Payload(ubyte[] src, ubyte[] dst, gstaudio.audio_ring_buffer_spec.AudioRingBufferSpec spec, int endianness)Payloads src in the form specified by IEC 61937 for the type from spec and stores the result in dst. src must contain exactly one frame of data and the frame is not checked for errors.fn
gobject.types.GType audioLevelMetaApiGetType()Return the #GType associated with #GstAudioLevelMeta. Returns: a #GTypefn
gst.caps.Caps audioMakeRawCaps(gstaudio.types.AudioFormat[] formats, gstaudio.types.AudioLayout layout)Return a generic raw audio caps for formats defined in formats. If formats is null returns a caps for all the supported raw audio formats, see [gstaudio.global.audioFormatsRaw].fn
bool audioReorderChannels(ubyte[] data, gstaudio.types.AudioFormat format, gstaudio.types.AudioChannelPosition[] from, gstaudio.types.AudioChannelPosition[] to)Reorders data from the channel positions from to the channel positions to. from and to must contain the same number of positions and the same positions, only in a different order.fn
gstaudio.audio_clipping_meta.AudioClippingMeta bufferAddAudioClippingMeta(gst.buffer.Buffer buffer, gst.types.Format format, ulong start, ulong end)Attaches #GstAudioClippingMeta metadata to buffer with the given parameters.fn
gstaudio.audio_level_meta.AudioLevelMeta bufferAddAudioLevelMeta(gst.buffer.Buffer buffer, ubyte level, bool voiceActivity)Attaches audio level information to buffer. (RFC 6464)fn
gstaudio.audio_downmix_meta.AudioDownmixMeta bufferGetAudioDownmixMetaForChannels(gst.buffer.Buffer buffer, gstaudio.types.AudioChannelPosition[] toPosition)Find the #GstAudioDownmixMeta on buffer for the given destination channel positions.fn
gstaudio.audio_level_meta.AudioLevelMeta bufferGetAudioLevelMeta(gst.buffer.Buffer buffer)Find the #GstAudioLevelMeta on buffer.