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; }
29 std::string_view
GetName()
const override {
return "null"; }
The music player that does nothing.
DriverFactoryBase(Driver::Type type, int priority, const char *name, const char *description)
Construct a new DriverFactory.
void StopSong() override
Stop playing the current song.
Metadata about a music track.
std::optional< std::string_view > Start(const StringList &) override
Start this driver.
std::vector< std::string > StringList
Type for a list of strings.
void SetVolume(uint8_t) override
Set the volume, if possible.
bool IsSongPlaying() override
Are we currently playing a song?
void Stop() override
Stop this driver.
Factory for the null music player.
void PlaySong(const MusicSongInfo &) override
Play a particular song.
Driver for all music playback.
A driver for communicating with the user.
@ DT_MUSIC
A music driver, needs to be before sound to properly shut down extmidi forked music players.
Driver * CreateInstance() const override
Create an instance of this driver-class.
std::string_view GetName() const override
Get the name of this driver.
Base for all driver factories.