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) nothrowGet the fallback channel-mask for the given number of channels.fn
bool audioChannelPositionsFromMask(ulong channelMask, gstaudio.types.AudioChannelPosition[] position) nothrowConvert the channels present in channel_mask to a position array (which should have at least channels entries ensured by caller). If channel_mask is set to 0, it is considered as 'not present' for ...fn
bool audioChannelPositionsToMask(gstaudio.types.AudioChannelPosition[] position, bool forceOrder, out ulong channelMask) nothrowConvert the position array of channels channels to a bitmask.fn
string audioChannelPositionsToString(gstaudio.types.AudioChannelPosition[] position) nothrowConverts position to a human-readable string representation for debugging purposes.fn
bool audioChannelPositionsToValidOrder(gstaudio.types.AudioChannelPosition[] position) nothrowReorders the channel positions in position from any order to the GStreamer channel order.fn
bool audioCheckValidChannelPositions(gstaudio.types.AudioChannelPosition[] position, bool forceOrder) nothrowChecks 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() nothrowReturn 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) nothrowReturns 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) nothrowCalculated 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) nothrowPayloads 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() nothrowReturn the #GType associated with #GstAudioLevelMeta. Returns: a #GTypefn
gst.caps.Caps audioMakeRawCaps(gstaudio.types.AudioFormat[] formats, gstaudio.types.AudioLayout layout) nothrowReturn 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) nothrowReorders 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) nothrowAttaches #GstAudioClippingMeta metadata to buffer with the given parameters.fn
gstaudio.audio_level_meta.AudioLevelMeta bufferAddAudioLevelMeta(gst.buffer.Buffer buffer, ubyte level, bool voiceActivity) nothrowAttaches audio level information to buffer. (RFC 6464)fn
gstaudio.audio_downmix_meta.AudioDownmixMeta bufferGetAudioDownmixMetaForChannels(gst.buffer.Buffer buffer, gstaudio.types.AudioChannelPosition[] toPosition) nothrowFind the #GstAudioDownmixMeta on buffer for the given destination channel positions.fn
gstaudio.audio_level_meta.AudioLevelMeta bufferGetAudioLevelMeta(gst.buffer.Buffer buffer) nothrowFind the #GstAudioLevelMeta on buffer.