OpenTTD Source
1.11.2
|
Base for all sound drivers. More...
#include <sound_driver.hpp>
Public Member Functions | |
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... | |
![]() | |
virtual const char * | Start (const StringList &parm)=0 |
Start this driver. More... | |
virtual void | Stop ()=0 |
Stop this driver. | |
virtual const char * | GetName () const =0 |
Get the name of this driver. More... | |
Static Public Member Functions | |
static SoundDriver * | GetInstance () |
Get the currently active instance of the sound driver. | |
Additional Inherited Members | |
![]() | |
enum | Type { DT_BEGIN = 0, DT_MUSIC = 0, DT_SOUND, DT_VIDEO, DT_END } |
The type of driver. More... | |
Base for all sound drivers.
Definition at line 16 of file sound_driver.hpp.
|
inlinevirtual |
Whether the driver has an output from which the user can hear sound.
Or in other words, whether we should warn the user if no soundset is loaded and that loading one would fix the sound problems.
Reimplemented in SoundDriver_Null.
Definition at line 27 of file sound_driver.hpp.