Class AL.EXTDouble
Inherited Members
Namespace: OpenTK.Audio.OpenAL
Assembly: OpenTK.Audio.OpenAL.dll
Syntax
public class AL.EXTDouble : ALBase
Fields
ExtensionName
The name of this AL extension.
Declaration
public const string ExtensionName = "AL_EXT_double"
Field Value
Type | Description |
---|---|
string |
Methods
BufferData(int, DoubleBufferFormat, double[], int)
This function fills a buffer with audio buffer. All the pre-defined formats are PCM buffer, but this function may be used by extensions to load other buffer types as well.
Declaration
public static void BufferData(int bid, DoubleBufferFormat format, double[] buffer, int freq)
Parameters
Type | Name | Description |
---|---|---|
int | bid | buffer Handle/Name to be filled with buffer. |
DoubleBufferFormat | format | Format type from among the following: DoubleBufferFormat.Mono, DoubleBufferFormat.Stereo. |
double[] | buffer | The audio buffer. |
int | freq | The frequency of the audio buffer. |
BufferData(int, DoubleBufferFormat, ref double, int, int)
This function fills a buffer with audio buffer. All the pre-defined formats are PCM buffer, but this function may be used by extensions to load other buffer types as well.
Declaration
public static extern void BufferData(int bid, DoubleBufferFormat format, ref double buffer, int bytes, int freq)
Parameters
Type | Name | Description |
---|---|---|
int | bid | buffer Handle/Name to be filled with buffer. |
DoubleBufferFormat | format | Format type from among the following: DoubleBufferFormat.Mono, DoubleBufferFormat.Stereo. |
double | buffer | Pointer to a pinned audio buffer. |
int | bytes | The size of the audio buffer in bytes. |
int | freq | The frequency of the audio buffer. |
BufferData(int, DoubleBufferFormat, double*, int, int)
This function fills a buffer with audio buffer. All the pre-defined formats are PCM buffer, but this function may be used by extensions to load other buffer types as well.
Declaration
public static extern void BufferData(int bid, DoubleBufferFormat format, double* buffer, int bytes, int freq)
Parameters
Type | Name | Description |
---|---|---|
int | bid | buffer Handle/Name to be filled with buffer. |
DoubleBufferFormat | format | Format type from among the following: DoubleBufferFormat.Mono, DoubleBufferFormat.Stereo. |
double* | buffer | Pointer to a pinned audio buffer. |
int | bytes | The size of the audio buffer in bytes. |
int | freq | The frequency of the audio buffer. |
BufferData(int, DoubleBufferFormat, Span<double>, int)
This function fills a buffer with audio buffer. All the pre-defined formats are PCM buffer, but this function may be used by extensions to load other buffer types as well.
Declaration
public static void BufferData(int bid, DoubleBufferFormat format, Span<double> buffer, int freq)
Parameters
Type | Name | Description |
---|---|---|
int | bid | buffer Handle/Name to be filled with buffer. |
DoubleBufferFormat | format | Format type from among the following: DoubleBufferFormat.Mono, DoubleBufferFormat.Stereo. |
Span<double> | buffer | Span representing the audio buffer. |
int | freq | The frequency of the audio buffer. |
IsExtensionPresent()
Checks if this extension is present.
Declaration
public static bool IsExtensionPresent()
Returns
Type | Description |
---|---|
bool | Whether the extension was present or not. |