OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the documentation of this file.
10 #ifndef MUSIC_ALLEGRO_H
11 #define MUSIC_ALLEGRO_H
18 std::optional<std::string_view>
Start(
const StringList ¶m)
override;
29 std::string_view
GetName()
const override {
return "allegro"; }
35 #if !defined(WITH_SDL) && defined(WITH_ALLEGRO)
39 static const int PRIORITY = 9;
41 static const int PRIORITY = 2;
DriverFactoryBase(Driver::Type type, int priority, const char *name, const char *description)
Construct a new DriverFactory.
Factory for allegro's music player.
std::optional< std::string_view > Start(const StringList ¶m) override
Start this driver.
void SetVolume(uint8_t vol) override
Set the volume, if possible.
Driver * CreateInstance() const override
Create an instance of this driver-class.
std::string_view GetName() const override
Get the name of this driver.
Metadata about a music track.
std::vector< std::string > StringList
Type for a list of strings.
bool IsSongPlaying() override
Are we currently playing a song?
void StopSong() override
Stop playing the current song.
void PlaySong(const MusicSongInfo &song) override
Play a particular song.
void Stop() override
Stop this driver.
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.
Base for all driver factories.