private void disposeTx() { if (null != deviceTx) { deviceTx.Dispose(); } deviceTx = null; }
private void initializeDeviceTx() { if (null == deviceTx) { deviceTx = new XD.WaveDeviceTx(); deviceTx.Open((uint)selectedDevice, (uint)selectedChannel); deviceTx.SoundSyncCallback = new XD.SoundBeginEnd(AudioBeginEnd); } }