Ticket #8927: agi_midi_crash.diff
File agi_midi_crash.diff, 948 bytes (added by , 16 years ago) |
---|
-
sound.cpp
454 454 _waveform = waveformMac; 455 455 break; 456 456 case SOUND_EMU_APPLE2GS: 457 loadInstruments();457 _disabledMidi = !loadInstruments(); 458 458 break; 459 459 } 460 460 … … 514 514 } 515 515 516 516 void SoundMgr::playMidiSound() { 517 if (_disabledMidi) 518 return; 519 517 520 const uint8 *p; 518 521 uint8 parm1, parm2; 519 522 static uint8 cmd, ch; … … 1218 1221 _playing = false; 1219 1222 _sndBuffer = (int16 *)calloc(2, BUFFER_SIZE); 1220 1223 _waveform = 0; 1224 _disabledMidi = false; 1221 1225 } 1222 1226 1223 1227 void SoundMgr::premixerCall(int16 *data, uint len) { -
sound.h
467 467 int _endflag; 468 468 int _playingSound; 469 469 uint8 _env; 470 bool _disabledMidi; 470 471 471 472 int16 *_sndBuffer; 472 473 const int16 *_waveform;