Ticket #1706: simon_midi.diff

File simon_midi.diff, 1.3 KB (added by eriktorbjorn, 20 years ago)

Patch against an August 24 CVS snapshot

  • simon/midi.cpp

    diff -ur --exclude=CVS --exclude=Makefile ScummVM/simon/midi.cpp ScummVM+hack/simon/midi.cpp
    old new  
    283283
    284284void MidiPlayer::setLoop (bool loop) {
    285285        _system->lockMutex(_mutex);
    286         _loopTrack = loop;
     286        setLoopInternal(loop);
    287287        _system->unlockMutex(_mutex);
    288288}
    289289
     290void MidiPlayer::setLoopInternal (bool loop) {
     291        _loopTrack = loop;
     292}
     293
    290294void MidiPlayer::queueTrack (int track, bool loop) {
    291295        _system->lockMutex(_mutex);
    292296        if (_currentTrack == 255) {
    293297                _system->unlockMutex(_mutex);
    294                 setLoop(loop);
     298                setLoopInternal(loop);
    295299                startTrack(track);
    296300        } else {
    297301                _queuedTrack = track;
     
    399403                // 1 BYTE : Ranges from 0x02 to 0x08 (always 0x02 for SFX, though)
    400404                // 1 BYTE : Loop control. 0 = no loop, 1 = loop
    401405                if (!sfx)
    402                         setLoop(p->data[6] != 0);
     406                        setLoopInternal(p->data[6] != 0);
    403407
    404408        }
    405409
  • simon/midi.h

    diff -ur --exclude=CVS --exclude=Makefile ScummVM/simon/midi.h ScummVM+hack/simon/midi.h
    old new  
    7575        void clearConstructs();
    7676        void clearConstructs (MusicInfo &info);
    7777        void resetVolumeTable();
     78        void setLoopInternal (bool loop);
    7879
    7980public:
    8081        bool _enable_sfx;