(svn r28004) -Update from Eints:
[openttd.git] / src / sound / allegro_s.h
blobe0a247f7b3ae4c39a8d2955099e39fc888e37bc2
1 /* $Id$ */
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
10 /** @file allegro_s.h Base fo playing sound via Allegro. */
12 #ifndef SOUND_ALLEGRO_H
13 #define SOUND_ALLEGRO_H
15 #include "sound_driver.hpp"
17 /** Implementation of the allegro sound driver. */
18 class SoundDriver_Allegro : public SoundDriver {
19 public:
20 /* virtual */ const char *Start(const char * const *param);
22 /* virtual */ void Stop();
24 /* virtual */ void MainLoop();
25 /* virtual */ const char *GetName() const { return "allegro"; }
28 /** Factory for the allegro sound driver. */
29 class FSoundDriver_Allegro : public DriverFactoryBase {
30 public:
31 FSoundDriver_Allegro() : DriverFactoryBase(Driver::DT_SOUND, 4, "allegro", "Allegro Sound Driver") {}
32 /* virtual */ Driver *CreateInstance() const { return new SoundDriver_Allegro(); }
35 #endif /* SOUND_ALLEGRO_H */