summaryrefslogtreecommitdiff
path: root/src/music_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-07-05 12:23:54 +0000
committerpeter1138 <peter1138@openttd.org>2007-07-05 12:23:54 +0000
commit5e85e8c5e03105e43cf9f2216e993c0596d7dfec (patch)
tree52e0cc5b1e4eb6cf9aed8556873ee6833662e11f /src/music_gui.cpp
parent7884a07b43fd293a2ca5b39b64df98b700959874 (diff)
downloadopenttd-5e85e8c5e03105e43cf9f2216e993c0596d7dfec.tar.xz
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
Diffstat (limited to 'src/music_gui.cpp')
-rw-r--r--src/music_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/music_gui.cpp b/src/music_gui.cpp
index 0d932cb26..ea05bbe69 100644
--- a/src/music_gui.cpp
+++ b/src/music_gui.cpp
@@ -11,10 +11,10 @@
#include "window.h"
#include "gfx.h"
#include "sound.h"
-#include "hal.h"
#include "macros.h"
#include "variables.h"
#include "music.h"
+#include "music/music_driver.hpp"
static byte _music_wnd_cursong;
static bool _song_is_active;
@@ -86,7 +86,7 @@ static void SkipToNextSong()
static void MusicVolumeChanged(byte new_vol)
{
- _music_driver->set_volume(new_vol);
+ _music_driver->SetVolume(new_vol);
}
static void DoPlaySong()
@@ -94,12 +94,12 @@ static void DoPlaySong()
char filename[MAX_PATH];
FioFindFullPath(filename, lengthof(filename), GM_DIR,
origin_songs_specs[_music_wnd_cursong - 1].filename);
- _music_driver->play_song(filename);
+ _music_driver->PlaySong(filename);
}
static void DoStopMusic()
{
- _music_driver->stop_song();
+ _music_driver->StopSong();
}
static void SelectSongToPlay()
@@ -178,7 +178,7 @@ void MusicLoop()
if (!_song_is_active) return;
- if (!_music_driver->is_song_playing()) {
+ if (!_music_driver->IsSongPlaying()) {
if (_game_mode != GM_MENU) {
StopMusic();
SkipToNextSong();