Class ALAudioDevice
Represents a audio output device.
Implements
Inherited Members
Namespace: Evergine.OpenAL
Assembly: Evergine.OpenAL.dll
Syntax
public class ALAudioDevice : AudioDevice, IDisposable
Constructors
ALAudioDevice()
Initializes a new instance of the ALAudioDevice class.
Declaration
public ALAudioDevice()
Properties
ContextHandle
Gets the context handler of the device.
Declaration
public ContextHandle ContextHandle { get; }
Property Value
Type | Description |
---|---|
ContextHandle |
DefaultListener
Gets the default listener used by Apply3D(AudioEmitter).
Declaration
public override AudioListener DefaultListener { get; }
Property Value
Type | Description |
---|---|
AudioListener |
Overrides
NativePointer
Gets the native pointer of the device.
Declaration
public IntPtr NativePointer { get; }
Property Value
Type | Description |
---|---|
IntPtr |
Renderer
Gets information about the specific renderer.
Declaration
public string Renderer { get; }
Property Value
Type | Description |
---|---|
string |
Vendor
Gets the name of the vendor.
Declaration
public string Vendor { get; }
Property Value
Type | Description |
---|---|
string |
Version
Gets the OpenAL version.
Declaration
public string Version { get; }
Property Value
Type | Description |
---|---|
string |
Methods
CreateAudioBuffer()
Creates an audio buffer.
Declaration
public override AudioBuffer CreateAudioBuffer()
Returns
Type | Description |
---|---|
AudioBuffer | The result AudioBuffer object. |
Overrides
CreateAudioSource(WaveFormat)
Create a new AudioSource.
Declaration
public override AudioSource CreateAudioSource(WaveFormat format)
Parameters
Type | Name | Description |
---|---|---|
WaveFormat | format | The format of the audio source. |
Returns
Type | Description |
---|---|
AudioSource | A new AudioSource instance. |
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides
SetMasterVolume(float)
Sets the master volume of the device.
Declaration
protected override void SetMasterVolume(float volume)
Parameters
Type | Name | Description |
---|---|---|
float | volume | The new volume. |