OpenTTD
sound_driver.hpp
Go to the documentation of this file.
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  */
7 
10 #ifndef SOUND_SOUND_DRIVER_HPP
11 #define SOUND_SOUND_DRIVER_HPP
12 
13 #include "../driver.h"
14 
16 class SoundDriver : public Driver {
17 public:
19  virtual void MainLoop() {}
20 
26  }
27 };
28 
29 extern char *_ini_sounddriver;
30 
31 #endif /* SOUND_SOUND_DRIVER_HPP */
char * _ini_sounddriver
The sound driver a stored in the configuration file.
Definition: driver.cpp:24
virtual void MainLoop()
Called once every tick.
static Driver ** GetActiveDriver(Driver::Type type)
Get the active driver for the given type.
Definition: driver.h:85
Base for all sound drivers.
A sound driver.
Definition: driver.h:42
A driver for communicating with the user.
Definition: driver.h:22
static SoundDriver * GetInstance()
Get the currently active instance of the sound driver.