Ticket #8325: alsa-volume.diff

File alsa-volume.diff, 696 bytes (added by eriktorbjorn, 16 years ago)

Patch against a February 10 CVS snapshot

  • scummvm/sky/music/gmmusic.cpp

    diff -ur ScummVM-cvs20040210/scummvm/sky/music/gmmusic.cpp ScummVM-cvs20040210+hack/scummvm/sky/music/gmmusic.cpp
    old new  
    5858
    5959void GmMusic::setVolume(uint8 volume) {
    6060
    61         uint8 sysEx[6];
    62         _musicVolume = volume;
    63         if (volume > 0) volume = (volume * 2) / 3 + 43; // GM synths behave kinda logarithmic
    64         sysEx[0] = 0x7F; sysEx[1] = 0x7F; sysEx[2] = 0x04; sysEx[3] = 0x01;
    65         sysEx[4] = 0; sysEx[5] = volume & 0x7F;
    66         _midiDrv->sysEx(sysEx, 6);
     61        setFMVolume(volume);
    6762}
    6863
    6964void GmMusic::timerCall(void) {