As far as I can tell / understand, IMuseDigital::getSoundStatus can safely just use isSoundHandleActive for both stream and streamSou (warning: might cause regressions)

svn-id: r30258
This commit is contained in:
Max Horn 2008-01-05 20:50:10 +00:00
parent 8b12998c72
commit 077026e088

View File

@ -294,9 +294,8 @@ int IMuseDigital::getSoundStatus(int sound) const {
for (int l = 0; l < MAX_DIGITAL_TRACKS; l++) {
Track *track = _track[l];
if (track->soundId == sound) {
if ((track->streamSou && _mixer->isSoundHandleActive(track->mixChanHandle)) ||
(track->stream && !track->stream->endOfStream())) {
return 1;
if (_mixer->isSoundHandleActive(track->mixChanHandle)) {
return 1;
}
}
}