OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the documentation of this file.
18 std::optional<std::string_view>
Start(
const StringList &)
override {
return std::nullopt; }
21 std::string_view
GetName()
const override {
return "null"; }
Implementation of the null sound driver.
DriverFactoryBase(Driver::Type type, int priority, const char *name, const char *description)
Construct a new DriverFactory.
Factory for the null sound driver.
std::optional< std::string_view > Start(const StringList &) override
Start this driver.
std::string_view GetName() const override
Get the name of this driver.
std::vector< std::string > StringList
Type for a list of strings.
Driver * CreateInstance() const override
Create an instance of this driver-class.
bool HasOutput() const override
Whether the driver has an output from which the user can hear sound.
@ DT_SOUND
A sound driver.
Base for all sound drivers.
A driver for communicating with the user.
Base for all driver factories.
void Stop() override
Stop this driver.