OpenTTD Source  1.11.0-beta2
SoundDriver_XAudio2 Class Reference

Implementation of the XAudio2 sound driver. More...

#include <xaudio2_s.h>

Inheritance diagram for SoundDriver_XAudio2:
SoundDriver Driver

Public Member Functions

const char * Start (const StringList &param) override
 Initialises the XAudio2 driver. More...
 
void Stop () override
 Terminates the XAudio2 driver.
 
const char * GetName () const override
 Get the name of this driver. More...
 
- Public Member Functions inherited from SoundDriver
virtual void MainLoop ()
 Called once every tick.
 
virtual bool HasOutput () const
 Whether the driver has an output from which the user can hear sound. More...
 

Additional Inherited Members

- Public Types inherited from Driver
enum  Type {
  DT_BEGIN = 0, DT_MUSIC = 0, DT_SOUND, DT_VIDEO,
  DT_END
}
 The type of driver. More...
 
- Static Public Member Functions inherited from SoundDriver
static SoundDriverGetInstance ()
 Get the currently active instance of the sound driver.
 

Detailed Description

Implementation of the XAudio2 sound driver.

Definition at line 16 of file xaudio2_s.h.

Member Function Documentation

◆ GetName()

const char* SoundDriver_XAudio2::GetName ( ) const
inlineoverridevirtual

Get the name of this driver.

Returns
The name of the driver.

Implements Driver.

Definition at line 21 of file xaudio2_s.h.

◆ Start()

const char * SoundDriver_XAudio2::Start ( const StringList parm)
overridevirtual

Initialises the XAudio2 driver.

Parameters
parmDriver parameters.
Returns
An error message if unsuccessful, or nullptr otherwise.

Implements Driver.

Definition at line 127 of file xaudio2_s.cpp.

References DEBUG.


The documentation for this class was generated from the following files: