OpenTTD Source
20241121-master-g67a0fccfad
|
Implementation of the allegro sound driver. More...
#include <allegro_s.h>
Public Member Functions | |
std::optional< std::string_view > | Start (const StringList ¶m) override |
Start this driver. More... | |
void | Stop () override |
Stop this driver. | |
void | MainLoop () override |
Called once every tick. | |
std::string_view | GetName () const override |
Get the name of this driver. More... | |
Public Member Functions inherited from SoundDriver | |
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 SoundDriver * | GetInstance () |
Get the currently active instance of the sound driver. | |
Implementation of the allegro sound driver.
Definition at line 16 of file allegro_s.h.
|
inlineoverridevirtual |
Get the name of this driver.
Implements Driver.
Definition at line 23 of file allegro_s.h.
|
overridevirtual |
Start this driver.
parm | Parameters passed to the driver. |
Implements Driver.