//
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.OpenAlApi
{
public static unsafe partial class AlDebug
{
///
/// Labels the auxiliary effect slot for diagnostics (alObjectLabelEXT); a label clears it.
///
public static void ObjectLabel(AlAuxiliaryEffectSlot auxiliaryEffectSlot, string? label) =>
ObjectLabel(AlObjectLabelIdentifier.AuxiliaryEffectSlot, auxiliaryEffectSlot.Name, label);
///
/// Labels the auxiliary effect slot for diagnostics (alObjectLabelEXT) from UTF-8 bytes (no transcode, no allocation); an empty label clears it.
///
public static void ObjectLabel(AlAuxiliaryEffectSlot auxiliaryEffectSlot, ReadOnlySpan label) =>
ObjectLabel(AlObjectLabelIdentifier.AuxiliaryEffectSlot, auxiliaryEffectSlot.Name, label);
///
/// Labels the buffer for diagnostics (alObjectLabelEXT); a label clears it.
///
public static void ObjectLabel(AlBuffer buffer, string? label) =>
ObjectLabel(AlObjectLabelIdentifier.Buffer, buffer.Name, label);
///
/// Labels the buffer for diagnostics (alObjectLabelEXT) from UTF-8 bytes (no transcode, no allocation); an empty label clears it.
///
public static void ObjectLabel(AlBuffer buffer, ReadOnlySpan label) =>
ObjectLabel(AlObjectLabelIdentifier.Buffer, buffer.Name, label);
///
/// Labels the effect for diagnostics (alObjectLabelEXT); a label clears it.
///
public static void ObjectLabel(AlEffect effect, string? label) =>
ObjectLabel(AlObjectLabelIdentifier.Effect, effect.Name, label);
///
/// Labels the effect for diagnostics (alObjectLabelEXT) from UTF-8 bytes (no transcode, no allocation); an empty label clears it.
///
public static void ObjectLabel(AlEffect effect, ReadOnlySpan label) =>
ObjectLabel(AlObjectLabelIdentifier.Effect, effect.Name, label);
///
/// Labels the filter for diagnostics (alObjectLabelEXT); a label clears it.
///
public static void ObjectLabel(AlFilter filter, string? label) =>
ObjectLabel(AlObjectLabelIdentifier.Filter, filter.Name, label);
///
/// Labels the filter for diagnostics (alObjectLabelEXT) from UTF-8 bytes (no transcode, no allocation); an empty label clears it.
///
public static void ObjectLabel(AlFilter filter, ReadOnlySpan label) =>
ObjectLabel(AlObjectLabelIdentifier.Filter, filter.Name, label);
///
/// Labels the source for diagnostics (alObjectLabelEXT); a label clears it.
///
public static void ObjectLabel(AlSource source, string? label) =>
ObjectLabel(AlObjectLabelIdentifier.Source, source.Name, label);
///
/// Labels the source for diagnostics (alObjectLabelEXT) from UTF-8 bytes (no transcode, no allocation); an empty label clears it.
///
public static void ObjectLabel(AlSource source, ReadOnlySpan label) =>
ObjectLabel(AlObjectLabelIdentifier.Source, source.Name, label);
///
/// Gets the auxiliary effect slot's diagnostic label (alGetObjectLabelEXT) as UTF-8 bytes, or an empty span if none was set; see for the returned span's validity rules.
///
public static ReadOnlySpan GetObjectLabel(AlAuxiliaryEffectSlot auxiliaryEffectSlot) =>
GetObjectLabel(AlObjectLabelIdentifier.AuxiliaryEffectSlot, auxiliaryEffectSlot.Name);
///
/// Gets the buffer's diagnostic label (alGetObjectLabelEXT) as UTF-8 bytes, or an empty span if none was set; see for the returned span's validity rules.
///
public static ReadOnlySpan GetObjectLabel(AlBuffer buffer) =>
GetObjectLabel(AlObjectLabelIdentifier.Buffer, buffer.Name);
///
/// Gets the effect's diagnostic label (alGetObjectLabelEXT) as UTF-8 bytes, or an empty span if none was set; see for the returned span's validity rules.
///
public static ReadOnlySpan GetObjectLabel(AlEffect effect) =>
GetObjectLabel(AlObjectLabelIdentifier.Effect, effect.Name);
///
/// Gets the filter's diagnostic label (alGetObjectLabelEXT) as UTF-8 bytes, or an empty span if none was set; see for the returned span's validity rules.
///
public static ReadOnlySpan GetObjectLabel(AlFilter filter) =>
GetObjectLabel(AlObjectLabelIdentifier.Filter, filter.Name);
///
/// Gets the source's diagnostic label (alGetObjectLabelEXT) as UTF-8 bytes, or an empty span if none was set; see for the returned span's validity rules.
///
public static ReadOnlySpan GetObjectLabel(AlSource source) =>
GetObjectLabel(AlObjectLabelIdentifier.Source, source.Name);
}
}