示例#1
0
            public override void Dispose()
            {
                base.Dispose();

                parentModule.SAMStop(Slot);

                lock (lockObject)
                {
                    if (bufferPtr != IntPtr.Zero)
                    {
                        Marshal.FreeHGlobal(bufferPtr);
                    }
                }
            }
示例#2
0
            internal override void ProcessAllSoundOff()
            {
                var me = new ControlChangeEvent((SevenBitNumber)120, (SevenBitNumber)0);

                ProcessControlChange(me);

                for (int i = 0; i < 8; i++)
                {
                    parentModule.SAMStop(i);
                }
            }