aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMax Horn2003-11-29 23:40:21 +0000
committerMax Horn2003-11-29 23:40:21 +0000
commitbbc03e144c7c86f44986e753e791769dee93e894 (patch)
treed7b6e26a1729ad88b320f087ddee094e580628db /sound
parentf1d0219067789780f570feb097ce1c5af338bacc (diff)
downloadscummvm-rg350-bbc03e144c7c86f44986e753e791769dee93e894.tar.gz
scummvm-rg350-bbc03e144c7c86f44986e753e791769dee93e894.tar.bz2
scummvm-rg350-bbc03e144c7c86f44986e753e791769dee93e894.zip
cleanup
svn-id: r11431
Diffstat (limited to 'sound')
-rw-r--r--sound/audiocd.cpp4
-rw-r--r--sound/audiocd.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/sound/audiocd.cpp b/sound/audiocd.cpp
index c0554ccde3..ddd4a9d006 100644
--- a/sound/audiocd.cpp
+++ b/sound/audiocd.cpp
@@ -64,7 +64,7 @@ void AudioCDManager::stop() {
}
}
-int AudioCDManager::isPlaying() const {
+bool AudioCDManager::isPlaying() const {
return _cd.playing || g_system->poll_cdrom();
}
@@ -93,7 +93,7 @@ AudioCDManager::Status AudioCDManager::getStatus() const {
// TODO: This could be improved for "real" CD playback.
// But to do that, we have to extend the OSystem interface.
Status info = _cd;
- info.playing = isPlaying() != 0;
+ info.playing = isPlaying();
return info;
}
diff --git a/sound/audiocd.h b/sound/audiocd.h
index 4065f9f030..346f5c1c63 100644
--- a/sound/audiocd.h
+++ b/sound/audiocd.h
@@ -47,7 +47,7 @@ public:
void play(int track, int numLoops, int startFrame, int duration);
void stop();
- int isPlaying() const;
+ bool isPlaying() const;
void updateCD();