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/>.
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
{
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
{
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 */