|
@@ -14,28 +14,28 @@
|
|
|
|
|
|
#include "music_driver.hpp"
|
|
|
|
|
|
/** The Windows music player. */
|
|
|
class MusicDriver_Win32 : public MusicDriver {
|
|
|
public:
|
|
|
/* virtual */ const char *Start(const char * const *param);
|
|
|
const char *Start(const char * const *param) override;
|
|
|
|
|
|
/* virtual */ void Stop();
|
|
|
void Stop() override;
|
|
|
|
|
|
/* virtual */ void PlaySong(const MusicSongInfo &song);
|
|
|
void PlaySong(const MusicSongInfo &song) override;
|
|
|
|
|
|
/* virtual */ void StopSong();
|
|
|
void StopSong() override;
|
|
|
|
|
|
/* virtual */ bool IsSongPlaying();
|
|
|
bool IsSongPlaying() override;
|
|
|
|
|
|
/* virtual */ void SetVolume(byte vol);
|
|
|
/* virtual */ const char *GetName() const { return "win32"; }
|
|
|
void SetVolume(byte vol) override;
|
|
|
const char *GetName() const override { return "win32"; }
|
|
|
};
|
|
|
|
|
|
/** Factory for Windows' music player. */
|
|
|
class FMusicDriver_Win32 : public DriverFactoryBase {
|
|
|
public:
|
|
|
FMusicDriver_Win32() : DriverFactoryBase(Driver::DT_MUSIC, 5, "win32", "Win32 Music Driver") {}
|
|
|
/* virtual */ Driver *CreateInstance() const { return new MusicDriver_Win32(); }
|
|
|
Driver *CreateInstance() const override { return new MusicDriver_Win32(); }
|
|
|
};
|
|
|
|
|
|
#endif /* MUSIC_WIN32_H */
|