mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
741 lines
25 KiB
C#
741 lines
25 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.OpenAl.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using static Brutal.OpenAlApi.Al.Constants;
|
|
|
|
namespace Brutal.OpenAlApi
|
|
{
|
|
public readonly unsafe partial struct AlSource
|
|
{
|
|
/// <summary>
|
|
/// Source or listener gain.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_GAIN</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// For sources, an initial linear gain value (before attenuation is applied). For the listener, an output
|
|
/// linear gain adjustment.
|
|
/// </para>
|
|
/// <para>
|
|
/// A value of 1.0 means unattenuated. Each division by 2 equals an attenuation of about -6dB. Each
|
|
/// multiplication by 2 equals an amplification of about +6dB.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>; minimum 0.0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float Gain
|
|
{
|
|
get => Al.GetSourcef(Name, AL_GAIN);
|
|
set => Al.PInvoke.Sourcef(Name, AL_GAIN, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source pitch.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_PITCH</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// A multiplier for the sample rate of the source's buffer.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>; range 0.5 to 2.0; default 1.0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float Pitch
|
|
{
|
|
get => Al.GetSourcef(Name, AL_PITCH);
|
|
set => Al.PInvoke.Sourcef(Name, AL_PITCH, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Minimum source gain.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_MIN_GAIN</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// The minimum gain allowed for a source, after distance and cone attenuation are applied (if applicable).
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>; range 0.0 to 1.0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float MinGain
|
|
{
|
|
get => Al.GetSourcef(Name, AL_MIN_GAIN);
|
|
set => Al.PInvoke.Sourcef(Name, AL_MIN_GAIN, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Maximum source gain.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_MAX_GAIN</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// The maximum gain allowed for a source, after distance and cone attenuation are applied (if applicable).
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>; range 0.0 to 1.0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float MaxGain
|
|
{
|
|
get => Al.GetSourcef(Name, AL_MAX_GAIN);
|
|
set => Al.PInvoke.Sourcef(Name, AL_MAX_GAIN, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source maximum distance.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_MAX_DISTANCE</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// The distance above which the source is not attenuated any further with a clamped distance model, or
|
|
/// where attenuation reaches 0.0 gain for linear distance models with a default rolloff factor.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>; minimum 0.0; default <c>FLT_MAX</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float MaxDistance
|
|
{
|
|
get => Al.GetSourcef(Name, AL_MAX_DISTANCE);
|
|
set => Al.PInvoke.Sourcef(Name, AL_MAX_DISTANCE, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source rolloff factor.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_ROLLOFF_FACTOR</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// Multiplier to exaggerate or diminish distance attenuation.
|
|
/// </para>
|
|
/// <para>
|
|
/// At 0.0, no distance attenuation ever occurs.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>; minimum 0.0; default 1.0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float RolloffFactor
|
|
{
|
|
get => Al.GetSourcef(Name, AL_ROLLOFF_FACTOR);
|
|
set => Al.PInvoke.Sourcef(Name, AL_ROLLOFF_FACTOR, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source reference distance.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_REFERENCE_DISTANCE</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// The distance in units that no distance attenuation occurs.
|
|
/// </para>
|
|
/// <para>
|
|
/// At 0.0, no distance attenuation occurs with non-linear attenuation models.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>; minimum 0.0; default 1.0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float ReferenceDistance
|
|
{
|
|
get => Al.GetSourcef(Name, AL_REFERENCE_DISTANCE);
|
|
set => Al.PInvoke.Sourcef(Name, AL_REFERENCE_DISTANCE, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Outer cone gain.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_CONE_OUTER_GAIN</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// The gain attenuation applied when the listener is outside of the source's outer cone angle.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>; range 0.0 to 1.0; default 0.0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float ConeOuterGain
|
|
{
|
|
get => Al.GetSourcef(Name, AL_CONE_OUTER_GAIN);
|
|
set => Al.PInvoke.Sourcef(Name, AL_CONE_OUTER_GAIN, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Inner cone angle, in degrees.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_CONE_INNER_ANGLE</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// The angle covered by the inner cone, the area within which the source will not be attenuated by
|
|
/// direction.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALint</c>/<c>ALfloat</c>; range 0 to 360; default 360.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float ConeInnerAngle
|
|
{
|
|
get => Al.GetSourcef(Name, AL_CONE_INNER_ANGLE);
|
|
set => Al.PInvoke.Sourcef(Name, AL_CONE_INNER_ANGLE, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Outer cone angle, in degrees.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_CONE_OUTER_ANGLE</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// The angle covered by the outer cone, the area outside of which the source will be fully attenuated by
|
|
/// direction.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALint</c>/<c>ALfloat</c>; range 0 to 360; default 360.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float ConeOuterAngle
|
|
{
|
|
get => Al.GetSourcef(Name, AL_CONE_OUTER_ANGLE);
|
|
set => Al.PInvoke.Sourcef(Name, AL_CONE_OUTER_ANGLE, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source buffer offset, in seconds.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_SEC_OFFSET</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>/<c>ALint</c>; minimum 0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float SecOffset
|
|
{
|
|
get => Al.GetSourcef(Name, AL_SEC_OFFSET);
|
|
set => Al.PInvoke.Sourcef(Name, AL_SEC_OFFSET, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source buffer offset, in sample frames.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_SAMPLE_OFFSET</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALint</c>; minimum 0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int SampleOffset
|
|
{
|
|
get => Al.GetSourcei(Name, AL_SAMPLE_OFFSET);
|
|
set => Al.PInvoke.Sourcei(Name, AL_SAMPLE_OFFSET, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source buffer offset, in bytes.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_BYTE_OFFSET</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALint</c>; minimum 0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int ByteOffset
|
|
{
|
|
get => Al.GetSourcei(Name, AL_BYTE_OFFSET);
|
|
set => Al.PInvoke.Sourcei(Name, AL_BYTE_OFFSET, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source or listener position.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_POSITION</c> (<c>alSource3f</c>/<c>alGetSource3f</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// The source or listener location in three dimensional space.
|
|
/// </para>
|
|
/// <para>
|
|
/// OpenAL uses a right handed coordinate system, like OpenGL, where with a default view, X points right
|
|
/// (thumb), Y points up (index finger), and Z points towards the viewer/camera (middle finger).
|
|
/// </para>
|
|
/// <para>
|
|
/// To change from or to a left handed coordinate system, negate the Z component.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALfloat[3]</c>/<c>ALint[3]</c>; default <c>0,0,0</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float3 Position
|
|
{
|
|
get => Al.GetSource3f(Name, AL_POSITION);
|
|
set => Al.PInvoke.Source3f(Name, AL_POSITION, value.X, value.Y, value.Z);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source or listener velocity.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_VELOCITY</c> (<c>alSource3f</c>/<c>alGetSource3f</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// Specifies the current velocity, relative to the position.
|
|
/// </para>
|
|
/// <para>
|
|
/// To change from or to a left handed coordinate system, negate the Z component.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALfloat[3]</c>/<c>ALint[3]</c>; default <c>0,0,0</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float3 Velocity
|
|
{
|
|
get => Al.GetSource3f(Name, AL_VELOCITY);
|
|
set => Al.PInvoke.Source3f(Name, AL_VELOCITY, value.X, value.Y, value.Z);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source direction.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_DIRECTION</c> (<c>alSource3f</c>/<c>alGetSource3f</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// Specifies the current direction in local space. A zero-length vector specifies an omni-directional
|
|
/// source (cone is ignored).
|
|
/// </para>
|
|
/// <para>
|
|
/// To change from or to a left handed coordinate system, negate the Z component.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALfloat[3]</c>/<c>ALint[3]</c>; default <c>0,0,0</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float3 Direction
|
|
{
|
|
get => Al.GetSource3f(Name, AL_DIRECTION);
|
|
set => Al.PInvoke.Source3f(Name, AL_DIRECTION, value.X, value.Y, value.Z);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source looping.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_LOOPING</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// Specifies whether source playback loops.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALboolean</c>; default <c>AL_FALSE</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public bool Looping
|
|
{
|
|
get => Al.GetSourcei(Name, AL_LOOPING) != AL_FALSE;
|
|
set => Al.PInvoke.Sourcei(Name, AL_LOOPING, value ? AL_TRUE : AL_FALSE);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Relative source.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_SOURCE_RELATIVE</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// Specifies if the source uses relative coordinates.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALboolean</c>; default <c>AL_FALSE</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public bool SourceRelative
|
|
{
|
|
get => Al.GetSourcei(Name, AL_SOURCE_RELATIVE) != AL_FALSE;
|
|
set => Al.PInvoke.Sourcei(Name, AL_SOURCE_RELATIVE, value ? AL_TRUE : AL_FALSE);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source buffer.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets/sets <c>AL_BUFFER</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// Specifies the buffer to provide sound samples for a source.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALuint</c>; default <c>AL_NONE</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public AlBuffer Buffer
|
|
{
|
|
get => new AlBuffer((uint)Al.GetSourcei(Name, AL_BUFFER));
|
|
set => Al.PInvoke.Sourcei(Name, AL_BUFFER, (int)value.Name);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source state (query only).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets <c>AL_SOURCE_STATE</c> (<c>alGetSourcei</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALenum</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public AlSourceState State
|
|
{
|
|
get => (AlSourceState)Al.GetSourcei(Name, AL_SOURCE_STATE);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source type (query only).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets <c>AL_SOURCE_TYPE</c> (<c>alGetSourcei</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// A Source is Static if a Buffer has been attached using AL_BUFFER.
|
|
/// </para>
|
|
/// <para>
|
|
/// A Source is Streaming if one or more Buffers have been attached using alSourceQueueBuffers.
|
|
/// </para>
|
|
/// <para>
|
|
/// A Source is Undetermined when it has the NULL buffer attached using AL_BUFFER.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALenum</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public AlSourceType Type
|
|
{
|
|
get => (AlSourceType)Al.GetSourcei(Name, AL_SOURCE_TYPE);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source Buffer Queue size (query only).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets <c>AL_BUFFERS_QUEUED</c> (<c>alGetSourcei</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// The number of buffers queued using alSourceQueueBuffers, minus the buffers removed with
|
|
/// alSourceUnqueueBuffers.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALint</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int BuffersQueued
|
|
{
|
|
get => Al.GetSourcei(Name, AL_BUFFERS_QUEUED);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Source Buffer Queue processed count (query only).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets <c>AL_BUFFERS_PROCESSED</c> (<c>alGetSourcei</c>).
|
|
/// </para>
|
|
/// <para>
|
|
/// The number of queued buffers that have been fully processed, and can be removed with
|
|
/// alSourceUnqueueBuffers.
|
|
/// </para>
|
|
/// <para>
|
|
/// Looping sources will never fully process buffers because they will be set to play again for when the
|
|
/// source loops.
|
|
/// </para>
|
|
/// <para>
|
|
/// Type <c>ALint</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int BuffersProcessed
|
|
{
|
|
get => Al.GetSourcei(Name, AL_BUFFERS_PROCESSED);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Sets <c>AL_DIRECT_FILTER</c> (<c>alSourcei</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALuint</c>; default <c>AL_FILTER_NULL</c>.
|
|
/// </para>
|
|
/// <para>
|
|
/// Set-only, as in the EFX spec: assignment copies the filter's parameters into the source, and native OpenAL keeps no record of which filter object they came from.
|
|
/// </para>
|
|
/// </remarks>
|
|
public AlFilter DirectFilter
|
|
{
|
|
set => Al.PInvoke.Sourcei(Name, AL_DIRECT_FILTER, (int)value.Name);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_AIR_ABSORPTION_FACTOR</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALuint</c>; range 0 to 10; default 0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float AirAbsorptionFactor
|
|
{
|
|
get => Al.GetSourcef(Name, AL_AIR_ABSORPTION_FACTOR);
|
|
set => Al.PInvoke.Sourcef(Name, AL_AIR_ABSORPTION_FACTOR, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_ROOM_ROLLOFF_FACTOR</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALuint</c>; range 0 to 10; default 0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float RoomRolloffFactor
|
|
{
|
|
get => Al.GetSourcef(Name, AL_ROOM_ROLLOFF_FACTOR);
|
|
set => Al.PInvoke.Sourcef(Name, AL_ROOM_ROLLOFF_FACTOR, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_CONE_OUTER_GAINHF</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>; range 0.0 to 1.0; default 1.0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float ConeOuterGainHf
|
|
{
|
|
get => Al.GetSourcef(Name, AL_CONE_OUTER_GAINHF);
|
|
set => Al.PInvoke.Sourcef(Name, AL_CONE_OUTER_GAINHF, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_DIRECT_FILTER_GAINHF_AUTO</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALboolean</c>; default <c>AL_TRUE</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public bool DirectFilterGainHfAuto
|
|
{
|
|
get => Al.GetSourcei(Name, AL_DIRECT_FILTER_GAINHF_AUTO) != AL_FALSE;
|
|
set => Al.PInvoke.Sourcei(Name, AL_DIRECT_FILTER_GAINHF_AUTO, value ? AL_TRUE : AL_FALSE);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_AUXILIARY_SEND_FILTER_GAIN_AUTO</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALboolean</c>; default <c>AL_TRUE</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public bool AuxiliarySendFilterGainAuto
|
|
{
|
|
get => Al.GetSourcei(Name, AL_AUXILIARY_SEND_FILTER_GAIN_AUTO) != AL_FALSE;
|
|
set => Al.PInvoke.Sourcei(Name, AL_AUXILIARY_SEND_FILTER_GAIN_AUTO, value ? AL_TRUE : AL_FALSE);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALboolean</c>; default <c>AL_TRUE</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public bool AuxiliarySendFilterGainHfAuto
|
|
{
|
|
get => Al.GetSourcei(Name, AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO) != AL_FALSE;
|
|
set => Al.PInvoke.Sourcei(Name, AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO, value ? AL_TRUE : AL_FALSE);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_SOURCE_RADIUS</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float SourceRadius
|
|
{
|
|
get => Al.GetSourcef(Name, AL_SOURCE_RADIUS);
|
|
set => Al.PInvoke.Sourcef(Name, AL_SOURCE_RADIUS, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_SOURCE_DISTANCE_MODEL</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
|
|
/// </summary>
|
|
public AlDistanceModel DistanceModel
|
|
{
|
|
get => (AlDistanceModel)Al.GetSourcei(Name, AL_SOURCE_DISTANCE_MODEL);
|
|
set => Al.PInvoke.Sourcei(Name, AL_SOURCE_DISTANCE_MODEL, (int)value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_DIRECT_CHANNELS_SOFT</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALenum</c>; default <c>AL_FALSE</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public AlDirectChannelsMode DirectChannels
|
|
{
|
|
get => (AlDirectChannelsMode)Al.GetSourcei(Name, AL_DIRECT_CHANNELS_SOFT);
|
|
set => Al.PInvoke.Sourcei(Name, AL_DIRECT_CHANNELS_SOFT, (int)value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_SOURCE_SPATIALIZE_SOFT</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALenum</c>; default <c>AL_AUTO_SOFT</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public AlSpatializeMode Spatialize
|
|
{
|
|
get => (AlSpatializeMode)Al.GetSourcei(Name, AL_SOURCE_SPATIALIZE_SOFT);
|
|
set => Al.PInvoke.Sourcei(Name, AL_SOURCE_SPATIALIZE_SOFT, (int)value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_SOURCE_RESAMPLER_SOFT</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALint</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int Resampler
|
|
{
|
|
get => Al.GetSourcei(Name, AL_SOURCE_RESAMPLER_SOFT);
|
|
set => Al.PInvoke.Sourcei(Name, AL_SOURCE_RESAMPLER_SOFT, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_STEREO_MODE_SOFT</c> (<c>alSourcei</c>/<c>alGetSourcei</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALenum</c>; default <c>AL_NORMAL_SOFT</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public AlStereoMode StereoMode
|
|
{
|
|
get => (AlStereoMode)Al.GetSourcei(Name, AL_STEREO_MODE_SOFT);
|
|
set => Al.PInvoke.Sourcei(Name, AL_STEREO_MODE_SOFT, (int)value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_SUPER_STEREO_WIDTH_SOFT</c> (<c>alSourcef</c>/<c>alGetSourcef</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>; range 0.0 to 1.0.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float SuperStereoWidth
|
|
{
|
|
get => Al.GetSourcef(Name, AL_SUPER_STEREO_WIDTH_SOFT);
|
|
set => Al.PInvoke.Sourcef(Name, AL_SUPER_STEREO_WIDTH_SOFT, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets/sets <c>AL_STEREO_ANGLES</c> (<c>alSourcefv</c>/<c>alGetSourcefv</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float2 StereoAngles
|
|
{
|
|
get => Al.GetSourcefv2(Name, AL_STEREO_ANGLES);
|
|
set => Al.SetSourcefv2(Name, AL_STEREO_ANGLES, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets <c>AL_BYTE_LENGTH_SOFT</c> (<c>alGetSourcei</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALint</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int ByteLength
|
|
{
|
|
get => Al.GetSourcei(Name, AL_BYTE_LENGTH_SOFT);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets <c>AL_SAMPLE_LENGTH_SOFT</c> (<c>alGetSourcei</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALint</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public int SampleLength
|
|
{
|
|
get => Al.GetSourcei(Name, AL_SAMPLE_LENGTH_SOFT);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets <c>AL_SEC_LENGTH_SOFT</c> (<c>alGetSourcef</c>).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Type <c>ALfloat</c>.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float SecLength
|
|
{
|
|
get => Al.GetSourcef(Name, AL_SEC_LENGTH_SOFT);
|
|
}
|
|
}
|
|
}
|