Class XAudioDevice
Represents a audio output device.
Implements
Inherited Members
Namespace: Evergine.XAudio2
Assembly: Evergine.XAudio2.dll
Syntax
public class XAudioDevice : AudioDevice, IDisposable
  Constructors
XAudioDevice()
Initializes a new instance of the XAudioDevice class.
Declaration
public XAudioDevice()
  Fields
MasteringVoice
XAudio2 mastering voice.
Declaration
public IXAudio2MasteringVoice MasteringVoice
  Field Value
| Type | Description | 
|---|---|
| IXAudio2MasteringVoice | 
X3dAudio
X3DAudio object.
Declaration
public X3DAudio X3dAudio
  Field Value
| Type | Description | 
|---|---|
| X3DAudio | 
Xaudio2
XAudio2 object.
Declaration
public IXAudio2 Xaudio2
  Field Value
| Type | Description | 
|---|---|
| IXAudio2 | 
Properties
DefaultListener
Gets the default listener used by Apply3D(AudioEmitter).
Declaration
public override AudioListener DefaultListener { get; }
  Property Value
| Type | Description | 
|---|---|
| AudioListener | 
Overrides
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.  |