diff options
author | Max Horn | 2003-11-29 23:40:21 +0000 |
---|---|---|
committer | Max Horn | 2003-11-29 23:40:21 +0000 |
commit | bbc03e144c7c86f44986e753e791769dee93e894 (patch) | |
tree | d7b6e26a1729ad88b320f087ddee094e580628db /sound | |
parent | f1d0219067789780f570feb097ce1c5af338bacc (diff) | |
download | scummvm-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.cpp | 4 | ||||
-rw-r--r-- | sound/audiocd.h | 2 |
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(); |