Ticket #1953: sky.diff

File sky.diff, 2.0 KB (added by SF/tbcarey, 19 years ago)
  • sky/control.cpp

    RCS file: /cvsroot/scummvm/scummvm/sky/control.cpp,v
    retrieving revision 1.90
    diff -u -r1.90 control.cpp
     
    15731573        _skyScreen->halvePalette();
    15741574        _skyScreen->showScreen(screenData);
    15751575        free(textBuf1); free(textBuf2);
     1576        // __tom (FIXME): This is a poor method of turning
     1577        // off music. ~GmMusic, ~AdlibMusic, and ~MT32Music
     1578        // should do it themselves so the appropriate MIDI
     1579        // controller events (e.g. 123/'All Notes Off') can
     1580        // be sent. However, that requires a re-write of
     1581        // other code and for now this fixes hanging notes
     1582        // on MT-32 + other external GMIDI synths.
     1583        _skyMusic->stopMusic();
    15761584        delay(1500);
    15771585        ConfMan.flushToDisk();
    15781586        _system->quit();
  • sky/music/musicbase.h

    RCS file: /cvsroot/scummvm/scummvm/sky/music/musicbase.h,v
    retrieving revision 1.17
    diff -u -r1.17 musicbase.h
     
    5353        void loadSection(uint8 pSection);
    5454        void musicCommand(uint16 command);
    5555        void startMusic(uint16 param) { _onNextPoll.musicToProcess = param & 0xF; }; // 4
     56        void stopMusic();                                                            // 7
    5657        bool musicIsPlaying(void);
    5758        virtual void setVolume(uint8 volume) = 0;
    5859        uint8 giveVolume(void) { return (uint8)_musicVolume; };
     
    8788        void setTempo(uint16 newTempo);                                              // 2
    8889        void pollMusic();                                                            // 3
    8990        void reinitFM(void) { _onNextPoll.doReInit = true; };                        // 6
    90         void stopMusic();                                                            // 7
    9191        void setFMVolume(uint16 param);                                              // 13
    9292};
    9393