Opentk/Source/OpenTK/OpenAL/AlTokens.cs

333 lines
16 KiB
C#
Raw Normal View History

2008-01-11 20:13:18 +00:00
#region --- OpenTK.OpenAL License ---
/* AlTokens.cs
* C header: \OpenAL 1.1 SDK\include\Al.h
* Spec: http://www.openal.org/openal_webstf/specs/OpenAL11Specification.pdf
* Copyright (c) 2008 Christoph Brandtner and Stefanos Apostolopoulos
2008-01-15 00:24:15 +00:00
* See license.txt for license details
* http://www.OpenTK.net */
2008-01-11 20:13:18 +00:00
#endregion
using System;
2008-01-15 00:24:15 +00:00
namespace OpenTK.OpenAL.Enums
2008-01-11 20:13:18 +00:00
{
2008-01-15 00:24:15 +00:00
public enum ALCapability : int
{
2008-01-24 21:12:06 +00:00
///<summary>Currently no state toggles exist for vanilla OpenAL and no Extension uses it.</summary>
2008-01-15 00:24:15 +00:00
Invalid = -1,
}
public enum ALListenerf : int
{
2008-01-24 21:12:06 +00:00
///<summary>Indicate the gain (Volume amplification) applied. Type: float Range: [0.0f - ? ] A value of 1.0 means un-attenuated/unchanged. Each division by 2 equals an attenuation of -6dB. Each multiplicaton with 2 equals an amplification of +6dB. A value of 0.0f is interpreted as zero volume and the channel is effectively disabled.</summary>
2008-01-15 00:24:15 +00:00
Gain = 0x100A,
///<summary>(EFX Extension) This setting is critical if Air Absorption effects are enabled because the amount of Air Absorption applied is directly related to the real-world distance between the Source and the Listener. centimeters 0.01f meters 1.0f kilometers 1000.0f Range [float.MinValue .. float.MaxValue] Default: 1.0f</summary>
EfxMetersPerUnit = 0x20004,
2008-01-15 00:24:15 +00:00
}
public enum ALListener3f : int
{
///<summary>Specify the current location in three dimensional space. OpenAL, like OpenGL, uses a right handed coordinate system, where in a frontal default view X (thumb) points right, Y points up (index finger), and Z points towards the viewer/camera (middle finger). To switch from a left handed coordinate system, flip the sign on the Z coordinate. Listener position is always in the world coordinate system.</summary>
Position = 0x1004,
///<summary>Specify the current velocity in three dimensional space.</summary>
Velocity = 0x1006,
}
public enum ALListenerfv : int
{
2008-01-24 21:12:06 +00:00
///<summary>Indicate Listener orientation. Expects two Vector3, At followed by Up.</summary>
2008-01-15 00:24:15 +00:00
Orientation = 0x100F,
}
public enum ALSourcef : int
{
2008-01-24 21:12:06 +00:00
///<summary>Source specific reference distance. Type: float Range: [0.0f - float.PositiveInfinity] At 0.0f, no distance attenuation occurs. Type: float Default: 1.0f.</summary>
2008-01-15 00:24:15 +00:00
ReferenceDistance = 0x1020,
2008-01-24 21:12:06 +00:00
///<summary>Indicate distance above which Sources are not attenuated using the inverse clamped distance model. Default: float.PositiveInfinity Type: float Range: [0.0f - float.PositiveInfinity]</summary>
2008-01-15 00:24:15 +00:00
MaxDistance = 0x1023,
///<summary>Source specific rolloff factor. Type: float Range: [0.0f - float.PositiveInfinity]</summary>
RolloffFactor = 0x1021,
///<summary>Specify the pitch to be applied, either at Source, or on mixer results, at Listener. Range: [0.5f - 2.0f] Default: 1.0f</summary>
Pitch = 0x1003,
///<summary>Indicate the gain (volume amplification) applied. Type: float. Range: [0.0f - ? ] A value of 1.0 means un-attenuated/unchanged. Each division by 2 equals an attenuation of -6dB. Each multiplicaton with 2 equals an amplification of +6dB. A value of 0.0f is meaningless with respect to a logarithmic scale; it is interpreted as zero volume - the channel is effectively disabled.</summary>
Gain = 0x100A,
///<summary>Indicate minimum Source attenuation. Type: float Range: [0.0f - 1.0f] (Logarthmic)</summary>
MinGain = 0x100D,
///<summary>Indicate maximum Source attenuation. Type: float Range: [0.0f - 1.0f] (Logarthmic)</summary>
MaxGain = 0x100E,
///<summary>Directional Source, inner cone angle, in degrees. Range: [0-360] Default: 360</summary>
ConeInnerAngle = 0x1001,
///<summary>Directional Source, outer cone angle, in degrees. Range: [0-360] Default: 360</summary>
ConeOuterAngle = 0x1002,
///<summary>Directional Source, outer cone gain. Default: 0.0f Range: [0.0f - 1.0] (Logarithmic)</summary>
ConeOuterGain = 0x1022,
/// <summary>The playback position, expressed in seconds.</summary>
SecOffset = 0x1024, // AL_EXT_OFFSET extension.
///<summary>(EFX Extension) This property is a multiplier on the amount of Air Absorption applied to the Source. The AL_AIR_ABSORPTION_FACTOR is multiplied by an internal Air Absorption Gain HF value of 0.994 (-0.05dB) per meter which represents normal atmospheric humidity and temperature. Range [0.0f .. 10.0f] Default: 0.0f</summary>
EfxAirAbsorptionFactor = 0x20007,
///<summary>(EFX Extension) This property is defined the same way as the Reverb Room Rolloff property: it is one of two methods available in the Effect Extension to attenuate the reflected sound (early reflections and reverberation) according to source-listener distance. Range [0.0f .. 10.0f] Default: 0.0f</summary>
EfxRoomRolloffFactor = 0x20008,
///<summary>(EFX Extension) A directed Source points in a specified direction. The Source sounds at full volume when the listener is directly in front of the source; it is attenuated as the listener circles the Source away from the front. Range [0.0f .. 1.0f] Default: 1.0f</summary>
EfxConeOuterGainHighFrequency = 0x20009,
2008-01-15 00:24:15 +00:00
}
public enum ALSource3f : int
{
///<summary>Specify the current location in three dimensional space. OpenAL, like OpenGL, uses a right handed coordinate system, where in a frontal default view X (thumb) points right, Y points up (index finger), and Z points towards the viewer/camera (middle finger). To switch from a left handed coordinate system, flip the sign on the Z coordinate. Listener position is always in the world coordinate system.</summary>
Position = 0x1004,
///<summary>Specify the current velocity in three dimensional space.</summary>
Velocity = 0x1006,
///<summary>Specify the current direction vector.</summary>
Direction = 0x1005,
}
public enum ALSourceb : int
{
2008-01-24 21:12:06 +00:00
///<summary>Indicate that the Source has relative coordinates. Type: bool Range: [True, False]</summary>
2008-01-15 00:24:15 +00:00
SourceRelative = 0x202,
2008-01-24 21:12:06 +00:00
///<summary>Indicate whether the Source is looping. Type: bool Range: [True, False] Default: False.</summary>
2008-01-15 00:24:15 +00:00
Looping = 0x1007,
2008-01-24 21:12:06 +00:00
///<summary>(EFX Extension) If this Source property is set to True, this Sources direct-path is automatically filtered according to the orientation of the source relative to the listener and the setting of the Source property Sourcef.ConeOuterGainHF. Type: bool Range [False, True] Default: True</summary>
EfxDirectFilterGainHighFrequencyAuto = 0x2000A,
2008-01-24 21:12:06 +00:00
///<summary>(EFX Extension) If this Source property is set to True, the intensity of this Sources reflected sound is automatically attenuated according to source-listener distance and source directivity (as determined by the cone parameters). If it is False, the reflected sound is not attenuated according to distance and directivity. Type: bool Range [False, True] Default: True</summary>
EfxAuxiliarySendFilterGainAuto = 0x2000B,
2008-01-24 21:12:06 +00:00
///<summary>(EFX Extension) If this Source property is AL_TRUE (its default value), the intensity of this Sources reflected sound at high frequencies will be automatically attenuated according to the high-frequency source directivity as set by the Sourcef.ConeOuterGainHF property. If this property is AL_FALSE, the Sources reflected sound is not filtered at all according to the Sources directivity. Type: bool Range [False, True] Default: True</summary>
EfxAuxiliarySendFilterGainHighFrequencyAuto = 0x2000C,
2008-01-15 00:24:15 +00:00
}
public enum ALSourcei : int
{
///<summary>The playback position, expressed in bytes.</summary>
ByteOffset = 0x1026, // AL_EXT_OFFSET extension.
///<summary>The playback position, expressed in samples.</summary>
SampleOffset = 0x1025, // AL_EXT_OFFSET extension.
2008-01-24 21:12:06 +00:00
///<summary>Indicate the Buffer to provide sound samples. Type: uint Range: any valid Buffer Handle.</summary>
2008-01-15 00:24:15 +00:00
Buffer = 0x1009,
///<summary>Source type (Static, Streaming or undetermined). Use enum AlSourceType for comparison</summary>
SourceType = 0x1027,
2008-01-24 21:12:06 +00:00
///<summary>(EFX Extension) This Source property is used to apply filtering on the direct-path (dry signal) of a Source.</summary>
EfxDirectFilter = 0x20005,
}
public enum ALSource3i : int
{
2008-01-24 21:12:06 +00:00
///<summary>(EFX Extension) This Source property is used to establish connections between Sources and Auxiliary Effect Slots. For a Source to feed an Effect that has been loaded into an Auxiliary Effect Slot the application must configure one of the Sources auxiliary sends. This process involves setting 3 variables the destination Auxiliary Effect Slot ID, the Auxiliary Send number, and an optional Filter ID. Type: uint Range: any valid Filter Handle.</summary>
EfxAuxiliarySendFilter = 0x20006,
2008-01-15 00:24:15 +00:00
}
public enum ALGetSourcei : int
2008-01-15 00:24:15 +00:00
{
///<summary>The playback position, expressed in bytes.</summary>
ByteOffset = 0x1026, // AL_EXT_OFFSET extension.
///<summary>The playback position, expressed in samples.</summary>
SampleOffset = 0x1025, // AL_EXT_OFFSET extension.
2008-01-24 21:12:06 +00:00
///<summary>Indicate the Buffer to provide sound samples. Type: uint Range: any valid Buffer Handle.</summary>
2008-01-15 00:24:15 +00:00
Buffer = 0x1009,
/// <summary>The state of the source (Stopped, Playing, etc.) Use the enum AlSourceState for comparison.</summary>
SourceState = 0x1010,
/// <summary>The number of buffers queued on this source.</summary>
BuffersQueued = 0x1015,
/// <summary>The number of buffers in the queue that have been processed.</summary>
BuffersProcessed = 0x1016,
///<summary>Source type (Static, Streaming or undetermined). Use enum AlSourceType for comparison.</summary>
SourceType = 0x1027,
}
public enum ALDeprecated : int
{
///<summary>Deprecated. Specify the channel mask. (Creative) Type: uint Range: [0 - 255]</summary>
ChannelMask = 0x3000,
}
///<summary>Source state information.</summary>
public enum ALSourceState : int
{
2008-01-24 21:12:06 +00:00
///<summary>Default State when loaded, can be manually set with AL.SourceRewind().</summary>
2008-01-15 00:24:15 +00:00
Initial = 0x1011,
2008-01-24 21:12:06 +00:00
2008-01-15 00:24:15 +00:00
///<summary>The source is currently playing.</summary>
Playing = 0x1012,
2008-01-24 21:12:06 +00:00
2008-01-15 00:24:15 +00:00
///<summary>The source has paused playback.</summary>
Paused = 0x1013,
2008-01-24 21:12:06 +00:00
2008-01-15 00:24:15 +00:00
///<summary>The source is not playing.</summary>
Stopped = 0x1014,
}
///<summary>Source type (Static, Streaming or undetermined)</summary>
public enum ALSourceType : int
{
2008-01-24 21:12:06 +00:00
///<summary>Source is Static if a Buffer has been attached using AL.Source with the parameter Sourcei.Buffer.</summary>
2008-01-15 00:24:15 +00:00
Static = 0x1028,
2008-01-24 21:12:06 +00:00
///<summary>Source is Streaming if one or more Buffers have been attached using AL.SourceQueueBuffers</summary>
2008-01-15 00:24:15 +00:00
Streaming = 0x1029,
2008-01-24 21:12:06 +00:00
///<summary>Source is undetermined when it has a null Buffer attached</summary>
2008-01-15 00:24:15 +00:00
Undetermined = 0x1030,
}
///<summary>Sound samples: Format specifier.</summary>
public enum ALFormat : int
2008-01-11 20:13:18 +00:00
{
2008-01-24 21:12:06 +00:00
///<summary>1 Channel, 8 Bits.</summary>
Mono8 = 0x1100,
2008-01-11 20:13:18 +00:00
2008-01-24 21:12:06 +00:00
///<summary>1 Channel, 16 Bits.</summary>
Mono16 = 0x1101,
2008-01-15 00:24:15 +00:00
2008-01-24 21:12:06 +00:00
///<summary>2 Channels, 8 Bits each.</summary>
Stereo8 = 0x1102,
2008-01-15 00:24:15 +00:00
2008-01-24 21:12:06 +00:00
///<summary>2 Channels, 16 Bits each.</summary>
Stereo16 = 0x1103,
2008-01-15 00:24:15 +00:00
}
public enum ALGetBufferi : int
{
///<summary>Sound sample's frequency, in units of Hertz [Hz]. This is the number of samples per second. Half of the sample frequency marks the maximum significant frequency component.</summary>
Frequency = 0x2001,
2008-01-24 21:12:06 +00:00
/// <summary>Bit depth of the buffer. Should be 8 or 16.</summary>
2008-01-15 00:24:15 +00:00
Bits = 0x2002,
2008-01-15 00:24:15 +00:00
/// <summary>Number of channels in buffer. > 1 is valid, but buffer wont be positioned when played. 1 for Mono, 2 for Stereo.</summary>
Channels = 0x2003,
2008-01-24 21:12:06 +00:00
/// <summary>size of the Buffer in bytes.</summary>
2008-01-15 00:24:15 +00:00
Size = 0x2004,
2008-01-24 21:12:06 +00:00
// Deprecated: From Manual, not in header: AL_DATA ( i, iv ) original location where data was copied from generally useless, as was probably freed after buffer creation
2008-01-15 00:24:15 +00:00
}
///<summary>Buffer state. Not supported for public use (yet).</summary>
public enum ALBufferState : int
{
///<summary>Buffer state. Not supported for public use (yet).</summary>
Unused = 0x2010,
2008-01-11 20:13:18 +00:00
///<summary>Buffer state. Not supported for public use (yet).</summary>
2008-01-15 00:24:15 +00:00
Pending = 0x2011,
2008-01-15 00:24:15 +00:00
///<summary>Buffer state. Not supported for public use (yet).</summary>
Processed = 0x2012,
}
2008-01-24 21:12:06 +00:00
public enum ALError : int
2008-01-15 00:24:15 +00:00
{
///<summary>No OpenAL Error.</summary>
NoError = 0,
///<summary>Invalid Name paramater passed to OpenAL call.</summary>
InvalidName = 0xA001,
///<summary>Invalid parameter passed to OpenAL call.</summary>
IllegalEnum = 0xA002,
///<summary>Invalid parameter passed to OpenAL call.</summary>
InvalidEnum = 0xA002,
///<summary>Invalid OpenAL enum parameter value.</summary>
InvalidValue = 0xA003,
///<summary>Illegal OpenAL call.</summary>
IllegalCommand = 0xA004,
///<summary>Illegal OpenAL call.</summary>
InvalidOperation = 0xA004,
2008-01-24 21:12:06 +00:00
///<summary>No OpenAL memory left.</summary>
2008-01-15 00:24:15 +00:00
OutOfMemory = 0xA005,
}
2008-01-24 21:12:06 +00:00
public enum ALGetString : int
2008-01-15 00:24:15 +00:00
{
/// <summary>Gets the Vendor name.</summary>
Vendor = 0xB001,
/// <summary>Gets the driver version.</summary>
Version = 0xB002,
/// <summary>Gets the renderer mode.</summary>
Renderer = 0xB003,
/// <summary>Gets a list of all available Extensions, separated with spaces.</summary>
Extensions = 0xB004,
2008-01-11 20:13:18 +00:00
}
2008-01-15 00:24:15 +00:00
public enum ALGetFloat : int
{
2008-01-24 21:12:06 +00:00
///<summary>Doppler scale. Default 1.0f</summary>
2008-01-15 00:24:15 +00:00
DopplerFactor = 0xC000,
///<summary>Tweaks speed of propagation. This functionality is deprecated.</summary>
DopplerVelocity = 0xC001,
2008-01-24 21:12:06 +00:00
///<summary>Speed of Sound in units per second. Default: 343.3f</summary>
2008-01-15 00:24:15 +00:00
SpeedOfSound = 0xC003,
}
public enum ALGetInteger : int
{
2008-01-24 21:12:06 +00:00
///<summary>See enum ALDistanceModel.</summary><see cref="ALDistanceModel"/>
2008-01-15 00:24:15 +00:00
DistanceModel = 0xD000,
}
2008-01-24 21:12:06 +00:00
public enum ALDistanceModel : int
2008-01-15 00:24:15 +00:00
{
2008-01-24 21:12:06 +00:00
///<summary>Bypasses all distance attenuation calculation for all Sources.</summary>
2008-01-15 00:24:15 +00:00
None = 0,
2008-01-24 21:12:06 +00:00
///<summary>InverseDistance is equivalent to the IASIG I3DL2 model with the exception that ALSourcef.ReferenceDistance does not imply any clamping.</summary>
2008-01-15 00:24:15 +00:00
InverseDistance = 0xD001,
2008-01-24 21:12:06 +00:00
///<summary>InverseDistanceClamped is the IASIG I3DL2 model, with ALSourcef.ReferenceDistance indicating both the reference distance and the distance below which gain will be clamped.</summary>
2008-01-15 00:24:15 +00:00
InverseDistanceClamped = 0xD002,
///<summary>AL_EXT_LINEAR_DISTANCE extension.</summary>
LinearDistance = 0xD003,
///<summary>AL_EXT_LINEAR_DISTANCE extension.</summary>
LinearDistanceClamped = 0xD004,
2008-01-24 21:12:06 +00:00
///<summary>AL_EXT_EXPONENT_DISTANCE extension.</summary>
ExponentDistance = 0xD005,
///<summary>AL_EXT_EXPONENT_DISTANCE extension.</summary>
ExponentDistanceClamped = 0xD006,
2008-01-15 00:24:15 +00:00
}
2008-01-11 20:13:18 +00:00
}