mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 08:53:51 +00:00
fixde bug IMUSE+DEBUG
svn-id: r14892
This commit is contained in:
parent
23e294e10c
commit
3a19ca1be3
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user