summaryrefslogtreecommitdiff
path: root/src/sound/allegro_s.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-11-25 21:09:00 +0000
committerrubidium <rubidium@openttd.org>2008-11-25 21:09:00 +0000
commit72124862f0cdf799da0773be8d8a0dd3da0a01bc (patch)
tree8f56ace83113a8c96887be195a473b1132beb9e5 /src/sound/allegro_s.h
parent3aacd0a3d5efa9001c97dbaa761c7ad90df789be (diff)
downloadopenttd-72124862f0cdf799da0773be8d8a0dd3da0a01bc.tar.xz
(svn r14631) -Add: support for Allegro as sound backend.
Diffstat (limited to 'src/sound/allegro_s.h')
-rw-r--r--src/sound/allegro_s.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/sound/allegro_s.h b/src/sound/allegro_s.h
new file mode 100644
index 000000000..181f45059
--- /dev/null
+++ b/src/sound/allegro_s.h
@@ -0,0 +1,27 @@
+/* $Id$ */
+
+/** @file allegro_s.h Base fo playing sound via Allegro. */
+
+#ifndef SOUND_ALLEGRO_H
+#define SOUND_ALLEGRO_H
+
+#include "sound_driver.hpp"
+
+class SoundDriver_Allegro: public SoundDriver {
+public:
+ /* virtual */ const char *Start(const char * const *param);
+
+ /* virtual */ void Stop();
+
+ /* virtual */ void MainLoop();
+};
+
+class FSoundDriver_Allegro: public SoundDriverFactory<FSoundDriver_Allegro> {
+public:
+ static const int priority = 5;
+ /* virtual */ const char *GetName() { return "allegro"; }
+ /* virtual */ const char *GetDescription() { return "Allegro Sound Driver"; }
+ /* virtual */ Driver *CreateInstance() { return new SoundDriver_Allegro(); }
+};
+
+#endif /* SOUND_ALLEGRO_H */