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/>.
8 /** @file os2_m.h Base for OS2 music playback. */
13 #include "music_driver.hpp"
15 /** OS/2's music player. */
16 class MusicDriver_OS2
: public MusicDriver
{
18 const char *Start(const StringList
¶m
) override
;
22 void PlaySong(const MusicSongInfo
&song
) override
;
24 void StopSong() override
;
26 bool IsSongPlaying() override
;
28 void SetVolume(byte vol
) override
;
29 const char *GetName() const override
{ return "os2"; }
32 /** Factory for OS/2's music player. */
33 class FMusicDriver_OS2
: public DriverFactoryBase
{
35 FMusicDriver_OS2() : DriverFactoryBase(Driver::DT_MUSIC
, 10, "os2", "OS/2 Music Driver") {}
36 Driver
*CreateInstance() const override
{ return new MusicDriver_OS2(); }
39 #endif /* MUSIC_OS2_H */