Common subdirectories: scummvm/sound/softsynth/mt32/.deps and scummvm-mt32-fix/sound/softsynth/mt32/.deps
diff -Nu scummvm/sound/softsynth/mt32/i386.cpp scummvm-mt32-fix/sound/softsynth/mt32/i386.cpp
old
|
new
|
|
227 | 227 | return output; |
228 | 228 | } |
229 | 229 | |
230 | | static inline void atti386_produceOutput1(int tmplen, Bit16s myvolume, Bit16s *useBuf, Bit16s *snd) { |
| 230 | static inline void atti386_produceOutput1(int tmplen, Bit16u myvolume, Bit16s *useBuf, Bit16s *snd) { |
231 | 231 | __asm__ __volatile__( |
232 | 232 | "movl %0, %%ecx \n" \ |
233 | 233 | "movw %1, %%ax \n" \ |
… |
… |
|
804 | 804 | return tmplen << 2; |
805 | 805 | } |
806 | 806 | |
807 | | int i386_produceOutput1(Bit16s *useBuf, Bit16s *stream, Bit32u len, Bit16s volume) { |
| 807 | int i386_produceOutput1(Bit16s *useBuf, Bit16s *stream, Bit32u len, Bit16u volume) { |
808 | 808 | int tmplen = (len >> 1); |
809 | 809 | if (tmplen == 0) { |
810 | 810 | return 0; |
diff -Nu scummvm/sound/softsynth/mt32/i386.h scummvm-mt32-fix/sound/softsynth/mt32/i386.h
old
|
new
|
|
39 | 39 | int i386_mixBuffers(Bit16s * buf1, Bit16s *buf2, int len); |
40 | 40 | int i386_mixBuffersRingMix(Bit16s * buf1, Bit16s *buf2, int len); |
41 | 41 | int i386_mixBuffersRing(Bit16s * buf1, Bit16s *buf2, int len); |
42 | | int i386_produceOutput1(Bit16s *useBuf, Bit16s *stream, Bit32u len, Bit16s volume); |
| 42 | int i386_produceOutput1(Bit16s *useBuf, Bit16s *stream, Bit32u len, Bit16u volume); |
43 | 43 | #endif |
44 | 44 | |
45 | 45 | #endif |
diff -Nu scummvm/sound/softsynth/mt32/synth.cpp scummvm-mt32-fix/sound/softsynth/mt32/synth.cpp
old
|
new
|
|
1040 | 1040 | rset = mt32ram.system.chanAssign; |
1041 | 1041 | printDebug(" Part assign: 1=%02d 2=%02d 3=%02d 4=%02d 5=%02d 6=%02d 7=%02d 8=%02d Rhythm=%02d", rset[0], rset[1], rset[2], rset[3], rset[4], rset[5], rset[6], rset[7], rset[8]); |
1042 | 1042 | printDebug(" Master volume: %d", mt32ram.system.masterVol); |
1043 | | masterVolume = (Bit16u)(mt32ram.system.masterVol * 32767 / 100); |
| 1043 | masterVolume = (Bit16u)(mt32ram.system.masterVol * 65535 / 100); |
1044 | 1044 | if (!tables.init(this, pcmWaves, (float)myProp.sampleRate, masterTune)) { |
1045 | 1045 | report(ReportType_errorSampleRate, NULL); |
1046 | 1046 | return false; |
… |
… |
|
1103 | 1103 | return 0; |
1104 | 1104 | } |
1105 | 1105 | |
1106 | | void ProduceOutput1(Bit16s *useBuf, Bit16s *stream, Bit32u len, Bit16s volume) { |
| 1106 | void ProduceOutput1(Bit16s *useBuf, Bit16s *stream, Bit32u len, Bit16u volume) { |
1107 | 1107 | #if MT32EMU_USE_MMX > 2 |
1108 | 1108 | //FIXME:KG: This appears to introduce crackle |
1109 | 1109 | int donelen = i386_produceOutput1(useBuf, stream, len, volume); |