| OpenTTD
    | 
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. | |
|  Public Member Functions inherited from Driver | |
| virtual const char * | Start (const char *const *parm)=0 | 
| Start this driver. | |
| virtual void | Stop ()=0 | 
| Stop this driver. | |
| virtual const char * | GetName () const =0 | 
| Get the name of this driver. | |
| Static Public Member Functions | |
| static MusicDriver * | GetInstance () | 
| Get the currently active instance of the music driver. | |
| Additional Inherited Members | |
|  Public Types inherited from Driver | |
| enum | Type { DT_BEGIN = 0, DT_MUSIC = 0, DT_SOUND, DT_VIDEO, DT_END } | 
| The type of driver.  More... | |
Driver for all music playback.
Definition at line 18 of file music_driver.hpp.
| 
 | pure virtual | 
Are we currently playing a song?
Implemented in MusicDriver_ExtMidi, MusicDriver_DMusic, MusicDriver_Allegro, MusicDriver_BeMidi, MusicDriver_LibTimidity, MusicDriver_Null, MusicDriver_OS2, MusicDriver_Win32, MusicDriver_Cocoa, and MusicDriver_QtMidi.
| 
 | pure virtual | 
Play a particular song.
| filename | The name of file with the song to play. | 
Implemented in MusicDriver_ExtMidi, MusicDriver_DMusic, MusicDriver_Allegro, MusicDriver_BeMidi, MusicDriver_LibTimidity, MusicDriver_Null, MusicDriver_OS2, MusicDriver_Win32, MusicDriver_Cocoa, and MusicDriver_QtMidi.
| 
 | pure virtual | 
Set the volume, if possible.
| vol | The new volume. | 
Implemented in MusicDriver_ExtMidi, MusicDriver_DMusic, MusicDriver_Allegro, MusicDriver_BeMidi, MusicDriver_LibTimidity, MusicDriver_Null, MusicDriver_OS2, MusicDriver_Win32, MusicDriver_Cocoa, and MusicDriver_QtMidi.
Referenced by AfterNewGRFScan::OnNewGRFsScanned().
 1.8.1.2
 1.8.1.2