aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-07-25 01:19:14 +0000
committerMax Horn2003-07-25 01:19:14 +0000
commit791efd853aacee15bb2f5b2e575c59fd9bb7480d (patch)
treeb950b381c024de5d9b0306017f897d0a1915802d /scumm
parent95bb74e2b886c22adce2fd0bdd40083b8d8efb53 (diff)
downloadscummvm-rg350-791efd853aacee15bb2f5b2e575c59fd9bb7480d.tar.gz
scummvm-rg350-791efd853aacee15bb2f5b2e575c59fd9bb7480d.tar.bz2
scummvm-rg350-791efd853aacee15bb2f5b2e575c59fd9bb7480d.zip
lots of mixer changes: replaced _volumeTable by _globalVolume (applying volume after resampling is more accurate); made more member vars of SoundMixer protected (and thus added some new getter methods); added (untested) support for a second (stereo) channel when playing MP3
svn-id: r9184
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index f2b8742561..9be43dc403 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -1695,15 +1695,15 @@ int Sound::pollMP3CD() const {
}
int Sound::updateMP3CD() {
- if (_dig_cd.playing == false)
+ if (!_dig_cd.playing)
return -1;
- if (_scumm->_mixer->_channels[_dig_cd.index] == NULL) {
+ if (!_scumm->_mixer->isChannelUsed(_dig_cd.index)) {
warning("Error in MP3 decoding");
return -1;
}
- if (!_scumm->_mixer->isActiveChannel(_dig_cd.index)) {
+ if (!_scumm->_mixer->isChannelActive(_dig_cd.index)) {
if (_dig_cd.num_loops == -1 || --_dig_cd.num_loops > 0)
playMP3CDTrack(_dig_cd.track, _dig_cd.num_loops, _dig_cd.start, _dig_cd.duration);
else