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 ALAudio
Declaration
public ALAudioDevice()
Properties
ContextHandle
Gets the context handler of the device.
Declaration
public ContextHandle ContextHandle { get; }
Property Value
Type | Description |
---|---|
Context |
DefaultListener
Gets the default listener used by Apply3D(Audio
Declaration
public override AudioListener DefaultListener { get; }
Property Value
Type | Description |
---|---|
Audio |
Overrides
NativePointer
Gets the native pointer of the device.
Declaration
public IntPtr NativePointer { get; }
Property Value
Type | Description |
---|---|
Int |
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 |
---|---|
Audio |
The result AudioBuffer object. |
Overrides
CreateAudioSource(WaveFormat)
Create a new Audio
Declaration
public override AudioSource CreateAudioSource(WaveFormat format)
Parameters
Type | Name | Description |
---|---|---|
Wave |
format | The format of the audio source. |
Returns
Type | Description |
---|---|
Audio |
A new Audio |
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. |