2008-01-11 20:13:18 +00:00
#region - - - OpenTK . OpenAL License - - -
/ * AlutTokens . cs
* C header : \ freealut - 1.1 . 0 - src \ include \ AL \ Alut . h
* Spec : http : //www.openal.org/openal_webstf/specs/alut.html
* 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 AlutVersions : int
2008-01-11 20:13:18 +00:00
{
2008-01-15 00:24:15 +00:00
/// <summary>Defines the A in OpenAL A.B</summary>
ApiMajorVersion = 1 ,
/// <summary>Defines the B in OpenAL A.B</summary>
ApiMinorVersion = 1 ,
}
2008-01-11 20:13:18 +00:00
2008-01-15 00:24:15 +00:00
public enum AlutError : int
{
/// <summary>No ALUT error found.</summary>
NoError = 0 ,
/// <summary>ALUT ran out of memory.</summary>
OutOfMemory = 0x200 ,
/// <summary>ALUT was given an invalid enumeration token.</summary>
InvalidEnum = 0x201 ,
/// <summary>ALUT was given an invalid value.</summary>
InvalidValue = 0x202 ,
/// <summary>The operation is invalid in the current ALUT state.</summary>
InvalidOperation = 0x203 ,
/// <summary>There is no current AL context.</summary>
NoCurrentContext = 0x204 ,
/// <summary>There was already an AL error on entry to an ALUT function.</summary>
AlErrorOnEntry = 0x205 ,
/// <summary>There was already an ALC error on entry to an ALUT function.</summary>
AlcErrorOnEntry = 0x206 ,
/// <summary>There was an error opening the ALC device.</summary>
OpenDevice = 0x207 ,
/// <summary>There was an error closing the ALC device.</summary>
CloseDevice = 0x208 ,
/// <summary>There was an error creating an ALC context.</summary>
CreateContext = 0x209 ,
/// <summary>Could not change the current ALC context.</summary>
MakeContextCurrent = 0x20A ,
/// <summary>There was an error destroying the ALC context.</summary>
DestroyContext = 0x20B ,
/// <summary>There was an error generating an AL buffer.</summary>
GenBuffers = 0x20C ,
/// <summary>There was an error passing buffer data to AL.</summary>
BufferData = 0x20D ,
/// <summary>I/O error, consult errno for more details.</summary>
IoError = 0x20E ,
/// <summary>Unsupported file type.</summary>
UnsupportedFileType = 0x20F ,
/// <summary>Unsupported mode within an otherwise usable file type.</summary>
UnsupportedFileSubtype = 0x210 ,
/// <summary>The sound data was corrupt or truncated.</summary>
CorruptOrTruncatedData = 0x211 ,
}
2008-01-11 20:13:18 +00:00
2008-01-15 00:24:15 +00:00
public enum AlutWaveform : int
{
Sine = 0x100 ,
Square = 0x101 ,
SawTooth = 0x102 ,
WhiteNoise = 0x103 ,
Impulse = 0x104 ,
}
2008-01-11 20:13:18 +00:00
2008-01-15 00:24:15 +00:00
public enum AlutLoader : int
{
///<summary>For the loaders returning sound data in an OpenAL buffer, e.g. Alut.CreateBufferFromFile and Alut.CreateBufferFromFileImage</summary>
Buffer = 0x300 ,
///<summary>For the loaders returning sound data in a newly allocated memory region, e.g. Alut.LoadMemoryFromFile and Alut.LoadMemoryFromFileImage.</summary>
Memory = 0x301 ,
2008-01-11 20:13:18 +00:00
}
2008-01-15 00:24:15 +00:00
2008-01-11 20:13:18 +00:00
}