#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 * See license.txt for license details * http://www.OpenTK.net */ #endregion using System; namespace OpenTK.Audio { /// /// Defines the version of the Alut library. /// public enum AlutVersions : int { /// Defines the A in OpenAL A.B ApiMajorVersion = 1, /// Defines the B in OpenAL A.B ApiMinorVersion = 1, } /// /// Defines available alut error codes. /// public enum AlutError : int { /// No ALUT error found. NoError = 0, /// ALUT ran out of memory. OutOfMemory = 0x200, /// ALUT was given an invalid enumeration token. InvalidEnum = 0x201, /// ALUT was given an invalid value. InvalidValue = 0x202, /// The operation is invalid in the current ALUT state. InvalidOperation = 0x203, /// There is no current AL context. NoCurrentContext = 0x204, /// There was already an AL error on entry to an ALUT function. AlErrorOnEntry = 0x205, /// There was already an ALC error on entry to an ALUT function. AlcErrorOnEntry = 0x206, /// There was an error opening the ALC device. OpenDevice = 0x207, /// There was an error closing the ALC device. CloseDevice = 0x208, /// There was an error creating an ALC context. CreateContext = 0x209, /// Could not change the current ALC context. MakeContextCurrent = 0x20A, /// There was an error destroying the ALC context. DestroyContext = 0x20B, /// There was an error generating an AL buffer. GenBuffers = 0x20C, /// There was an error passing buffer buffer to AL. BufferData = 0x20D, /// I/O error, consult errno for more details. IoError = 0x20E, /// Unsupported file type. UnsupportedFileType = 0x20F, /// Unsupported mode within an otherwise usable file type. UnsupportedFileSubtype = 0x210, /// The sound buffer was corrupt or truncated. CorruptOrTruncatedData = 0x211, } /// /// Defines available alut waveform types. /// public enum AlutWaveform : int { /// A sine waveform Sine = 0x100, /// A square waveform Square = 0x101, /// A sawtooth waveform SawTooth = 0x102, /// A waveform containing white noise WhiteNoise = 0x103, /// A waveform containing an impusle Impulse = 0x104, } /// /// Defines parameters for alut loaders. /// public enum AlutLoader : int { ///For the loaders returning sound buffer in an OpenAL buffer, e.g. Alut.CreateBufferFromFile and Alut.CreateBufferFromFileImage Buffer = 0x300, ///For the loaders returning sound buffer in a newly allocated memory region, e.g. Alut.LoadMemoryFromFile and Alut.LoadMemoryFromFileImage. Memory = 0x301, } }