Show / Hide Table of Contents

Class AL.EXTFloat32

Inheritance
object
ALBase
AL.EXTFloat32
Inherited Members
ALBase.RegisterOpenALResolver()
ALBase.LoadDelegate<TDelegate>(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OpenTK.Audio.OpenAL
Assembly: OpenTK.Audio.OpenAL.dll
Syntax
public class AL.EXTFloat32 : ALBase

Fields

ExtensionName

The name of this AL extension.

Declaration
public const string ExtensionName = "AL_EXT_float32"
Field Value
Type Description
string

Methods

BufferData(int, FloatBufferFormat, float[], 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, FloatBufferFormat format, float[] buffer, int freq)
Parameters
Type Name Description
int bid

buffer Handle/Name to be filled with buffer.

FloatBufferFormat format

Format type from among the following: FloatBufferFormat.Mono, FloatBufferFormat.Stereo.

float[] buffer

The audio buffer.

int freq

The frequency of the audio buffer.

BufferData(int, FloatBufferFormat, ref float, 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, FloatBufferFormat format, ref float buffer, int bytes, int freq)
Parameters
Type Name Description
int bid

buffer Handle/Name to be filled with buffer.

FloatBufferFormat format

Format type from among the following: FloatBufferFormat.Mono, FloatBufferFormat.Stereo.

float 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, FloatBufferFormat, float*, 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, FloatBufferFormat format, float* buffer, int bytes, int freq)
Parameters
Type Name Description
int bid

buffer Handle/Name to be filled with buffer.

FloatBufferFormat format

Format type from among the following: FloatBufferFormat.Mono, FloatBufferFormat.Stereo.

float* 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, FloatBufferFormat, Span<float>, 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, FloatBufferFormat format, Span<float> buffer, int freq)
Parameters
Type Name Description
int bid

buffer Handle/Name to be filled with buffer.

FloatBufferFormat format

Format type from among the following: FloatBufferFormat.Mono, FloatBufferFormat.Stereo.

Span<float> 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.

In This Article
Back to top Generated by DocFX