mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
18
brutal.openal/Brutal.OpenAl/Manual/AlAuxiliaryEffectSlot.cs
Normal file
18
brutal.openal/Brutal.OpenAl/Manual/AlAuxiliaryEffectSlot.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// The identity half and the Gain/SendAuto properties are generated. Load is hand-written, and is a
|
||||
// verb rather than a settable Effect property because the native call COPIES the effect's
|
||||
// parameters at call time - property-assignment syntax would falsely suggest a live link.
|
||||
|
||||
namespace Brutal.OpenAlApi;
|
||||
|
||||
public readonly partial struct AlAuxiliaryEffectSlot
|
||||
{
|
||||
/// <summary>
|
||||
/// Loads an effect into the slot (<c>AL_EFFECTSLOT_EFFECT</c>). OpenAL copies the effect's
|
||||
/// parameters into the slot NOW: changing the effect's parameters afterwards has no audible
|
||||
/// effect until it is loaded again. Pass <see cref="AlEffect.Null"/> to detach.
|
||||
/// </summary>
|
||||
public void Load(AlEffect effect)
|
||||
{
|
||||
Al.PInvoke.AuxiliaryEffectSloti(Name, Al.Constants.AL_EFFECTSLOT_EFFECT, (int)effect.Name);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue