12 #ifndef MUSIC_MUSIC_DRIVER_HPP 13 #define MUSIC_MUSIC_DRIVER_HPP 15 #include "../driver.h" 24 virtual void PlaySong(
const char *filename) = 0;
static Driver ** GetActiveDriver(Driver::Type type)
Get the active driver for the given type.
A music driver, needs to be before sound to properly shut down extmidi forked music players...
virtual void SetVolume(byte vol)=0
Set the volume, if possible.
static MusicDriver * GetInstance()
Get the currently active instance of the music driver.
virtual bool IsSongPlaying()=0
Are we currently playing a song?
A driver for communicating with the user.
char * _ini_musicdriver
The music driver a stored in the configuration file.
virtual void StopSong()=0
Stop playing the current song.
virtual void PlaySong(const char *filename)=0
Play a particular song.
Driver for all music playback.