public Program ( byte program, bool mt32 ) : void | ||
program | byte | |
mt32 | bool | |
return | void |
public void SetInstrument(uint b) { _bank = (byte)(b >> 8); // if (_bank != 0) // Console.Error.WriteLine("Non-zero instrument bank selection. Please report this"); // HACK: Horrible hack to allow tracing of program change source. // The Mac m68k versions of MI2 and Indy4 use a different program "bank" // when it gets program change events through the iMuse SysEx handler. // We emulate this by introducing a special instrument, which sets // the instrument via sysEx_customInstrument. This seems to be // exclusively used for special sound effects like the "spit" sound. // TODO: part // if (ScummEngine.IsMacM68kIMuse()) // { // Instrument.macSfx(b); // } // else { Instrument.Program((byte)b, Player.IsMT32); } if (ClearToTransmit()) { Instrument.Send(MidiChannel); } }
public void ProgramChange(byte value) { _bank = 0; Instrument.Program(value, Player.IsMT32); if (ClearToTransmit()) { Instrument.Send(MidiChannel); } }
public void CopyTo(Instrument dest) { dest.Program(_program, _mt32); }
public void CopyTo(Instrument dest) { dest.Program(_program, _mt32); }