Ticket #3441: revised-mt-32.patch

File revised-mt-32.patch, 581 bytes (added by SF/tipabu, 17 years ago)

Revised MT-32 Volume Patch

  • sound/softsynth/mt32/partial.cpp

    old new  
    639639        partialBuf += donelen * 2;
    640640#endif
    641641        while (length--) {
    642                 *partialBuf++ = (Bit16s)(((Bit32s)*mixedBuf * (Bit32s)leftvol) >> 16);
    643                 *partialBuf++ = (Bit16s)(((Bit32s)*mixedBuf * (Bit32s)rightvol) >> 16);
     642                *partialBuf++ = (Bit16s)(((Bit32s)*mixedBuf * (Bit32s)leftvol) >> 15);
     643                *partialBuf++ = (Bit16s)(((Bit32s)*mixedBuf * (Bit32s)rightvol) >> 15);
    644644                mixedBuf++;
    645645        }
    646646        return true;