// // Generated by Brutal.OpenAl.Generate; do not edit by hand. #nullable enable namespace Brutal.OpenAlApi { public static unsafe partial class Al { /// /// Pauses playback of the given sources (alSourcePausev), as one operation. /// /// The sources to pause. public static void PauseSources(ReadOnlySpan sources) { if (sources.IsEmpty) return; var names = sources.Cast(); fixed (uint* p = names) Al.PInvoke.SourcePausev(names.Length, p); } /// /// Starts or resumes playback of the given sources (alSourcePlayv). The sources start as one operation, which is what makes a multi-source cue sample-aligned. /// /// The sources to play. public static void PlaySources(ReadOnlySpan sources) { if (sources.IsEmpty) return; var names = sources.Cast(); fixed (uint* p = names) Al.PInvoke.SourcePlayv(names.Length, p); } /// /// Rewinds the given sources to the start of their buffers (alSourceRewindv), as one operation. /// /// The sources to rewind. public static void RewindSources(ReadOnlySpan sources) { if (sources.IsEmpty) return; var names = sources.Cast(); fixed (uint* p = names) Al.PInvoke.SourceRewindv(names.Length, p); } /// /// Stops playback of the given sources (alSourceStopv), as one operation. /// /// The sources to stop. public static void StopSources(ReadOnlySpan sources) { if (sources.IsEmpty) return; var names = sources.Cast(); fixed (uint* p = names) Al.PInvoke.SourceStopv(names.Length, p); } } }