public override void Dispose() { base.Dispose(); parentModule.SAMStop(Slot); lock (lockObject) { if (bufferPtr != IntPtr.Zero) { Marshal.FreeHGlobal(bufferPtr); } } }
internal override void ProcessAllSoundOff() { var me = new ControlChangeEvent((SevenBitNumber)120, (SevenBitNumber)0); ProcessControlChange(me); for (int i = 0; i < 8; i++) { parentModule.SAMStop(i); } }