gstaudio.global

Global functions for gstaudio1 library

Functions 22

fnulong audioChannelGetFallbackMask(int channels) nothrowGet the fallback channel-mask for the given number of channels.
fnbool 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 ...
fnbool audioChannelPositionsToMask(gstaudio.types.AudioChannelPosition[] position, bool forceOrder, out ulong channelMask) nothrowConvert the position array of channels channels to a bitmask.
fnstring audioChannelPositionsToString(gstaudio.types.AudioChannelPosition[] position) nothrowConverts position to a human-readable string representation for debugging purposes.
fnbool audioChannelPositionsToValidOrder(gstaudio.types.AudioChannelPosition[] position) nothrowReorders the channel positions in position from any order to the GStreamer channel order.
fnbool 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.
fngstaudio.types.AudioFormat[] audioFormatsRaw() nothrowReturn all the raw audio formats supported by GStreamer. Returns: an array of #GstAudioFormat
fnbool 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...
fnuint audioIec61937FrameSize(gstaudio.audio_ring_buffer_spec.AudioRingBufferSpec spec) nothrowCalculated the size of the buffer expected by [gstaudio.global.audioIec61937Payload] for payloading type from spec.
fnbool 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.
fngobject.types.GType audioLevelMetaApiGetType() nothrowReturn the #GType associated with #GstAudioLevelMeta. Returns: a #GType
fngst.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].
fnbool 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.
fngstaudio.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.
fngstaudio.audio_level_meta.AudioLevelMeta bufferAddAudioLevelMeta(gst.buffer.Buffer buffer, ubyte level, bool voiceActivity) nothrowAttaches audio level information to buffer. (RFC 6464)
fngstaudio.audio_downmix_meta.AudioDownmixMeta bufferGetAudioDownmixMetaForChannels(gst.buffer.Buffer buffer, gstaudio.types.AudioChannelPosition[] toPosition) nothrowFind the #GstAudioDownmixMeta on buffer for the given destination channel positions.
fngstaudio.audio_level_meta.AudioLevelMeta bufferGetAudioLevelMeta(gst.buffer.Buffer buffer) nothrowFind the #GstAudioLevelMeta on buffer.