OpenTTD Source 20250206-master-g6089ed8059
|
Implementation of the sound driver for Windows. More...
#include <win32_s.h>
Public Member Functions | |
std::optional< std::string_view > | Start (const StringList ¶m) override |
Start this driver. | |
void | Stop () override |
Stop this driver. | |
std::string_view | GetName () const override |
Get the name of this driver. | |
![]() | |
virtual void | MainLoop () |
Called once every tick. | |
virtual bool | HasOutput () const |
Whether the driver has an output from which the user can hear sound. | |
Additional Inherited Members | |
![]() | |
enum | Type : uint8_t { DT_BEGIN = 0 , DT_MUSIC = 0 , DT_SOUND , DT_VIDEO , DT_END } |
The type of driver. More... | |
![]() | |
static SoundDriver * | GetInstance () |
Get the currently active instance of the sound driver. | |
|
inlineoverridevirtual |
|
overridevirtual |
Start this driver.
parm | Parameters passed to the driver. |
Implements Driver.
Definition at line 65 of file win32_s.cpp.
References GetDriverParamInt(), and Stop().
|
overridevirtual |
Stop this driver.
Implements Driver.
Definition at line 97 of file win32_s.cpp.
Referenced by Start().