Driver for all music playback. More...
#include <music_driver.hpp>
Public Member Functions | |
| virtual void | PlaySong (const char *filename)=0 |
| Play a particular song. | |
| virtual void | StopSong ()=0 |
| Stop playing the current song. | |
| virtual bool | IsSongPlaying ()=0 |
| Are we currently playing a song? | |
| virtual void | SetVolume (byte vol)=0 |
| Set the volume, if possible. | |
Driver for all music playback.
Definition at line 18 of file music_driver.hpp.
| virtual bool MusicDriver::IsSongPlaying | ( | ) | [pure virtual] |
Are we currently playing a song?
Implemented in MusicDriver_Allegro, MusicDriver_BeMidi, MusicDriver_Cocoa, MusicDriver_DMusic, MusicDriver_ExtMidi, MusicDriver_LibTimidity, MusicDriver_Null, MusicDriver_OS2, MusicDriver_QtMidi, and MusicDriver_Win32.
Referenced by LoadIntroGame().
| virtual void MusicDriver::PlaySong | ( | const char * | filename | ) | [pure virtual] |
Play a particular song.
| filename | The name of file with the song to play. |
Implemented in MusicDriver_Allegro, MusicDriver_BeMidi, MusicDriver_Cocoa, MusicDriver_DMusic, MusicDriver_ExtMidi, MusicDriver_LibTimidity, MusicDriver_Null, MusicDriver_OS2, MusicDriver_QtMidi, and MusicDriver_Win32.
| virtual void MusicDriver::SetVolume | ( | byte | vol | ) | [pure virtual] |
Set the volume, if possible.
| vol | The new volume. |
Implemented in MusicDriver_Allegro, MusicDriver_BeMidi, MusicDriver_Cocoa, MusicDriver_DMusic, MusicDriver_ExtMidi, MusicDriver_LibTimidity, MusicDriver_Null, MusicDriver_OS2, MusicDriver_QtMidi, and MusicDriver_Win32.
Referenced by AfterNewGRFScan::OnNewGRFsScanned().
1.7.1