diff -ur --exclude=CVS --exclude=Makefile ScummVM/simon/midi.cpp ScummVM+hack/simon/midi.cpp
old
|
new
|
|
283 | 283 | |
284 | 284 | void MidiPlayer::setLoop (bool loop) { |
285 | 285 | _system->lockMutex(_mutex); |
286 | | _loopTrack = loop; |
| 286 | setLoopInternal(loop); |
287 | 287 | _system->unlockMutex(_mutex); |
288 | 288 | } |
289 | 289 | |
| 290 | void MidiPlayer::setLoopInternal (bool loop) { |
| 291 | _loopTrack = loop; |
| 292 | } |
| 293 | |
290 | 294 | void MidiPlayer::queueTrack (int track, bool loop) { |
291 | 295 | _system->lockMutex(_mutex); |
292 | 296 | if (_currentTrack == 255) { |
293 | 297 | _system->unlockMutex(_mutex); |
294 | | setLoop(loop); |
| 298 | setLoopInternal(loop); |
295 | 299 | startTrack(track); |
296 | 300 | } else { |
297 | 301 | _queuedTrack = track; |
… |
… |
|
399 | 403 | // 1 BYTE : Ranges from 0x02 to 0x08 (always 0x02 for SFX, though) |
400 | 404 | // 1 BYTE : Loop control. 0 = no loop, 1 = loop |
401 | 405 | if (!sfx) |
402 | | setLoop(p->data[6] != 0); |
| 406 | setLoopInternal(p->data[6] != 0); |
403 | 407 | |
404 | 408 | } |
405 | 409 | |
diff -ur --exclude=CVS --exclude=Makefile ScummVM/simon/midi.h ScummVM+hack/simon/midi.h
old
|
new
|
|
75 | 75 | void clearConstructs(); |
76 | 76 | void clearConstructs (MusicInfo &info); |
77 | 77 | void resetVolumeTable(); |
| 78 | void setLoopInternal (bool loop); |
78 | 79 | |
79 | 80 | public: |
80 | 81 | bool _enable_sfx; |