void _playButton_TouchUpInside(object sender, EventArgs e) { if (null != _synth) { return; } _synth = new AudioQueueSynth(int.Parse(_samplingFreqTextField.Text), int.Parse(_bufferLengthTextField.Text)); _synth.play(); _playButton.Enabled = false; _stopButton.Enabled = true; }
void _stopButton_TouchUpInside(object sender, EventArgs e) { if (null == _synth) { return; } _synth.stop(true); _synth = null; _playButton.Enabled = true; _stopButton.Enabled = false; }
void _stopButton_TouchUpInside(object sender, EventArgs e) { if (null == _synth) return; _synth.stop(true); _synth = null; _playButton.Enabled = true; _stopButton.Enabled = false; }
void _playButton_TouchUpInside(object sender, EventArgs e) { if (null != _synth) return; _synth = new AudioQueueSynth(int.Parse(_samplingFreqTextField.Text), int.Parse(_bufferLengthTextField.Text)); _synth.play(); _playButton.Enabled = false; _stopButton.Enabled = true; }