fixde bug IMUSE+DEBUG

svn-id: r14892
This commit is contained in:
Paweł Kołodziejski 2004-09-04 13:13:23 +00:00
parent 23e294e10c
commit 3a19ca1be3
3 changed files with 8 additions and 0 deletions

View File

@ -170,6 +170,7 @@ void IMuseDigital::flushTracks() {
track->stream->finish();
}
if (track->stream->endOfStream()
|| _vm->_mixer->isPaused() // hack for paused SoundMixer
|| _vm->_insaneRunning) { // INSANE hack for sync timer mode
_vm->_mixer->stopHandle(track->handle);
delete track->stream;

View File

@ -134,6 +134,10 @@ SoundMixer::~SoundMixer() {
_syst->deleteMutex(_mutex);
}
bool SoundMixer::isPaused() {
return _paused;
}
void SoundMixer::setupPremix(PremixProc *proc, void *param) {
Common::StackLock lock(_mutex);
_premixParam = param;

View File

@ -145,6 +145,9 @@ public:
/** pause/unpause all channels */
void pauseAll(bool paused);
/** check if mixer is paused */
bool isPaused();
/** pause/unpause the sound with the given ID */
void pauseID(int id, bool paused);