Implementation of the null sound driver.
More...
#include <null_s.h>
|
std::optional< std::string_view > | Start (const StringList &) override |
| Start this driver.
|
|
void | Stop () override |
| Stop this driver.
|
|
std::string_view | GetName () const override |
| Get the name of this driver.
|
|
bool | HasOutput () const override |
| Whether the driver has an output from which the user can hear sound.
|
|
virtual void | MainLoop () |
| Called once every tick.
|
|
Implementation of the null sound driver.
Definition at line 16 of file null_s.h.
◆ GetName()
std::string_view SoundDriver_Null::GetName |
( |
| ) |
const |
|
inlineoverridevirtual |
Get the name of this driver.
- Returns
- The name of the driver.
Implements Driver.
Definition at line 21 of file null_s.h.
◆ HasOutput()
bool SoundDriver_Null::HasOutput |
( |
| ) |
const |
|
inlineoverridevirtual |
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.
- Returns
- True for all drivers except null.
Reimplemented from SoundDriver.
Definition at line 22 of file null_s.h.
◆ Start()
std::optional< std::string_view > SoundDriver_Null::Start |
( |
const StringList & |
parm | ) |
|
|
inlineoverridevirtual |
Start this driver.
- Parameters
-
parm | Parameters passed to the driver. |
- Returns
- std::nullopt if everything went okay, otherwise an error message.
Implements Driver.
Definition at line 18 of file null_s.h.
◆ Stop()
void SoundDriver_Null::Stop |
( |
| ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: