# allegro_m.h

Go to the documentation of this file.

    00001 /* $Id: allegro_m.h 17987 2009-11-06 22:53:21Z rubidium $ */
    00002
    00005 #ifndef MUSIC_ALLEGRO_H
    00006 #define MUSIC_ALLEGRO_H
    00007
    00008 #include "music_driver.hpp"
    00009
    00010 class MusicDriver_Allegro: public MusicDriver {
    00011 public:
    00012   /* virtual */ const char *Start(const char * const *param);
    00013
    00014   /* virtual */ void Stop();
    00015
    00016   /* virtual */ void PlaySong(const char *filename);
    00017
    00018   /* virtual */ void StopSong();
    00019
    00020   /* virtual */ bool IsSongPlaying();
    00021
    00022   /* virtual */ void SetVolume(byte vol);
    00023 };
    00024
    00025 class FMusicDriver_Allegro: public MusicDriverFactory<FMusicDriver_Allegro> {
    00026 public:
    00027   static const int priority = 2;
    00028   /* virtual */ const char *GetName() { return "allegro"; }
    00029   /* virtual */ const char *GetDescription() { return "Allegro MIDI Driver"; }
    00030   /* virtual */ Driver *CreateInstance() { return new MusicDriver_Allegro(); }
    00031 };
    00032
    00033 #endif /* MUSIC_ALLEGRO_H */