16#include <MidiSynthFile.h>
21 std::optional<std::string_view>
Start(
const StringList ¶m)
override;
32 std::string_view
GetName()
const override {
return "bemidi"; }
35 BMidiSynthFile *midi_synth_file =
nullptr;
36 double current_volume = 1.0;
37 bool just_started =
false;
Base for all driver factories.
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.
Factory for the BeOS midi player.
Driver * CreateInstance() const override
Create an instance of this driver-class.
The midi player for BeOS.
void PlaySong(const MusicSongInfo &song) override
Play a particular song.
std::string_view GetName() const override
Get the name of this driver.
void StopSong() override
Stop playing the current song.
void Stop() override
Stop this driver.
bool IsSongPlaying() override
Are we currently playing a song?
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 for all music playback.
Base for all music playback.
std::vector< std::string > StringList
Type for a list of strings.
Metadata about a music track.