2008-01-11 21:13:18 +01:00
#region - - - OpenTK . OpenAL License - - -
/ * AlcTokens . cs
* C header : \ OpenAL 1.1 SDK \ include \ Alc . h
* Spec : http : //www.openal.org/openal_webstf/specs/OpenAL11Specification.pdf
* Copyright ( c ) 2008 Christoph Brandtner and Stefanos Apostolopoulos
2008-01-15 01:24:15 +01:00
* See license . txt for license details
* http : //www.OpenTK.net */
2008-01-11 21:13:18 +01:00
#endregion
using System ;
2008-01-15 01:24:15 +01:00
namespace OpenTK.OpenAL.Enums
2008-01-11 21:13:18 +01:00
{
2008-01-15 01:24:15 +01:00
public enum AlcContextAttributes : int
2008-01-11 21:13:18 +01:00
{
2008-01-17 15:06:31 +01:00
///<summary>Followed by System.Int32 Hz</summary>
2008-01-15 01:24:15 +01:00
Frequency = 0x1007 ,
2008-01-11 21:13:18 +01:00
2008-01-17 15:06:31 +01:00
///<summary>Followed by System.Int32 Hz</summary>
2008-01-15 01:24:15 +01:00
Refresh = 0x1008 ,
2008-01-11 21:13:18 +01:00
2008-01-17 15:06:31 +01:00
///<summary>Followed by AlBoolean.True, or AlBoolean.False</summary>
2008-01-15 01:24:15 +01:00
Sync = 0x1009 ,
2008-01-11 21:13:18 +01:00
2008-01-17 15:06:31 +01:00
///<summary>Followed by System.Int32 Num of requested Mono (3D) Sources</summary>
2008-01-15 01:24:15 +01:00
MonoSources = 0x1010 ,
2008-01-11 21:13:18 +01:00
2008-01-17 15:06:31 +01:00
///<summary>Followed by System.Int32 Num of requested Stereo Sources</summary>
2008-01-15 01:24:15 +01:00
StereoSources = 0x1011 ,
}
2008-01-11 21:13:18 +01:00
2008-01-15 01:24:15 +01:00
public enum AlcError : int
{
///<summary>There is no current error.</summary>
NoError = 0 ,
2008-01-11 21:13:18 +01:00
2008-01-15 01:24:15 +01:00
///<summary>No Device. The device handle or specifier names an inaccessible driver/server.</summary>
InvalidDevice = 0xA001 ,
2008-01-11 21:13:18 +01:00
2008-01-15 01:24:15 +01:00
///<summary>Invalid context ID. The Context argument does not name a valid context.</summary>
InvalidContext = 0xA002 ,
2008-01-11 21:13:18 +01:00
2008-01-15 01:24:15 +01:00
///<summary>Bad enum. A token used is not valid, or not applicable.</summary>
InvalidEnum = 0xA003 ,
2008-01-11 21:13:18 +01:00
2008-01-15 01:24:15 +01:00
///<summary>Bad value. A value (e.g. Attribute) is not valid, or not applicable.</summary>
InvalidValue = 0xA004 ,
2008-01-11 21:13:18 +01:00
2008-01-15 01:24:15 +01:00
///<summary>Out of memory. Unable to allocate memory.</summary>
OutOfMemory = 0xA005 ,
}
2008-01-11 21:13:18 +01:00
2008-01-15 01:24:15 +01:00
public enum AlcGetString : int
{
///<summary>The specifier string for the default device.</summary>
DefaultDeviceSpecifier = 0x1004 ,
2008-01-11 21:13:18 +01:00
2008-01-15 01:24:15 +01:00
///<summary>A list of available context extensions separated by spaces.</summary>
Extensions = 0x1006 ,
2008-01-11 21:13:18 +01:00
2008-01-15 01:24:15 +01:00
///<summary>The name of the default capture device</summary>
CaptureDefaultDeviceSpecifier = 0x311 , // ALC_EXT_CAPTURE extension.
2008-01-11 21:13:18 +01:00
2008-01-15 01:24:15 +01:00
/// <summary>a list of the default devices.</summary>
DefaultAllDevicesSpecifier = 0x1012 ,
2008-01-15 14:37:33 +01:00
// duplicates from AlcGetStringList:
///<summary>Will only return the first Device, not a list. Use AlcGetStringList.CaptureDeviceSpecifier. ALC_EXT_CAPTURE_EXT </summary>
CaptureDeviceSpecifier = 0x310 ,
///<summary>Will only return the first Device, not a list. Use AlcGetStringList.DeviceSpecifier</summary>
DeviceSpecifier = 0x1005 ,
/// <summary>Will only return the first Device, not a list. Use AlcGetStringList.AllDevicesSpecifier</summary>
AllDevicesSpecifier = 0x1013 ,
2008-01-15 01:24:15 +01:00
}
2008-01-11 21:13:18 +01:00
2008-01-15 01:24:15 +01:00
public enum AlcGetStringList : int
{
2008-01-15 14:37:33 +01:00
///<summary>The name of the specified capture device, or a list of all available capture devices if no capture device is specified. ALC_EXT_CAPTURE_EXT </summary>
CaptureDeviceSpecifier = 0x310 ,
2008-01-11 21:13:18 +01:00
2008-01-15 14:37:33 +01:00
///<summary>The specifier strings for all available devices. ALC_ENUMERATION_EXT</summary>
2008-01-15 01:24:15 +01:00
DeviceSpecifier = 0x1005 ,
2008-01-11 21:13:18 +01:00
2008-01-15 14:37:33 +01:00
/// <summary>The specifier strings for all available devices. ALC_ENUMERATE_ALL_EXT</summary>
2008-01-15 01:24:15 +01:00
AllDevicesSpecifier = 0x1013 ,
}
2008-01-11 21:13:18 +01:00
2008-01-15 01:24:15 +01:00
public enum AlcGetInteger : int
{
///<summary>The specification revision for this implementation (major version). NULL is an acceptable device.</summary>
MajorVersion = 0x1000 ,
///<summary>The specification revision for this implementation (minor version). NULL is an acceptable device.</summary>
MinorVersion = 0x1001 ,
///<summary>The size (number of ALCint values) required for a zero-terminated attributes list, for the current context. NULL is an invalid device.</summary>
AttributesSize = 0x1002 ,
///<summary>Expects a destination of ALC_ATTRIBUTES_SIZE, and provides an attribute list for the current context of the specified device. NULL is an invalid device.</summary>
AllAttributes = 0x1003 ,
///<summary>The number of capture samples available. NULL is an invalid device.</summary>
CaptureSamples = 0x312 ,
2008-01-11 21:13:18 +01:00
}
}