Add: INR currency (#8136)
[openttd-github.git] / src / sound / allegro_s.h
blob307d10fca4c9c2c7d0140b12c475a8f075a2c3d8
1 /*
2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
6 */
8 /** @file allegro_s.h Base for playing sound via Allegro. */
10 #ifndef SOUND_ALLEGRO_H
11 #define SOUND_ALLEGRO_H
13 #include "sound_driver.hpp"
15 /** Implementation of the allegro sound driver. */
16 class SoundDriver_Allegro : public SoundDriver {
17 public:
18 const char *Start(const char * const *param);
20 void Stop();
22 void MainLoop();
23 const char *GetName() const { return "allegro"; }
26 /** Factory for the allegro sound driver. */
27 class FSoundDriver_Allegro : public DriverFactoryBase {
28 public:
29 FSoundDriver_Allegro() : DriverFactoryBase(Driver::DT_SOUND, 4, "allegro", "Allegro Sound Driver") {}
30 /* virtual */ Driver *CreateInstance() const { return new SoundDriver_Allegro(); }
33 #endif /* SOUND_ALLEGRO_H */