// // Generated by Brutal.OpenAl.Generate; do not edit by hand. #nullable enable namespace Brutal.OpenAlApi.Params { /// /// Keyed source parameter access (alSourcef/alSourcei/alSource3f) as extension members on , for generic or data-driven code. Typical code uses the named properties on instead. /// public static class SourceParams { extension(AlSource source) { /// /// Sets a float-valued source property (alSourcef). /// public void Set(AlSourcef param, float value) => Al.PInvoke.Sourcef(source.Name, (int)param, value); /// /// Gets a float-valued source property (alGetSourcef). /// public float Get(AlSourcef param) => Al.GetSourcef(source.Name, (int)param); /// /// Sets an integer-valued source property (alSourcei). /// public void Set(AlSourcei param, int value) => Al.PInvoke.Sourcei(source.Name, (int)param, value); /// /// Gets an integer-valued source property (alGetSourcei). /// public int Get(AlSourcei param) => Al.GetSourcei(source.Name, (int)param); /// /// Sets a -valued source property (alSource3f). /// public void Set(AlSource3f param, float3 value) => Al.PInvoke.Source3f(source.Name, (int)param, value.X, value.Y, value.Z); /// /// Gets a -valued source property (alGetSource3f). /// public float3 Get(AlSource3f param) => Al.GetSource3f(source.Name, (int)param); /// /// Sets a double-valued source property (alSourcedSOFT); provided by AL_SOFT_source_latency. /// public void Set(AlSourced param, double value) => Al.PInvoke.SourcedSOFT(source.Name, (int)param, value); /// /// Gets a double-valued source property (alGetSourcedSOFT); provided by AL_SOFT_source_latency. /// public double Get(AlSourced param) => Al.GetSourcedSOFT(source.Name, (int)param); /// /// Sets a 64-bit-integer-valued source property (alSourcei64SOFT); provided by AL_SOFT_source_latency. /// public void Set(AlSourcei64 param, long value) => Al.PInvoke.Sourcei64SOFT(source.Name, (int)param, value); /// /// Gets a 64-bit-integer-valued source property (alGetSourcei64SOFT); provided by AL_SOFT_source_latency. /// public long Get(AlSourcei64 param) => Al.GetSourcei64SOFT(source.Name, (int)param); } } /// /// Keyed buffer query access (alGetBufferi) as an extension member on . All keys are get-only. Typical code uses the named properties on instead. /// public static class BufferParams { extension(AlBuffer buffer) { /// /// Gets an integer-valued buffer query (alGetBufferi). /// public int Get(AlBufferi param) => Al.GetBufferi(buffer.Name, (int)param); } } /// /// Keyed listener parameter access (alListenerf/alListener3f). The listener is per-context state with no handle, so these are plain statics. Typical code uses the named properties on instead. /// public static class ListenerParams { /// /// Sets a float-valued listener property (alListenerf). /// public static void Set(AlListenerf param, float value) => Al.PInvoke.Listenerf((int)param, value); /// /// Gets a float-valued listener property (alGetListenerf). /// public static float Get(AlListenerf param) => Al.GetListenerf((int)param); /// /// Sets a -valued listener property (alListener3f). /// public static void Set(AlListener3f param, float3 value) => Al.PInvoke.Listener3f((int)param, value.X, value.Y, value.Z); /// /// Gets a -valued listener property (alGetListener3f). /// public static float3 Get(AlListener3f param) => Al.GetListener3f((int)param); } }