allegro_s.h

Go to the documentation of this file.
00001 /* $Id: allegro_s.h 17987 2009-11-06 22:53:21Z rubidium $ */
00002 
00005 #ifndef SOUND_ALLEGRO_H
00006 #define SOUND_ALLEGRO_H
00007 
00008 #include "sound_driver.hpp"
00009 
00010 class SoundDriver_Allegro: public SoundDriver {
00011 public:
00012   /* virtual */ const char *Start(const char * const *param);
00013 
00014   /* virtual */ void Stop();
00015 
00016   /* virtual */ void MainLoop();
00017 };
00018 
00019 class FSoundDriver_Allegro: public SoundDriverFactory<FSoundDriver_Allegro> {
00020 public:
00021   static const int priority = 4;
00022   /* virtual */ const char *GetName() { return "allegro"; }
00023   /* virtual */ const char *GetDescription() { return "Allegro Sound Driver"; }
00024   /* virtual */ Driver *CreateInstance() { return new SoundDriver_Allegro(); }
00025 };
00026 
00027 #endif /* SOUND_ALLEGRO_H */

Generated on Sun Nov 15 15:40:15 2009 for OpenTTD by  doxygen 1.5.6