/// <summary> /// Stop playing. /// </summary> public void Stop() { if (Graph.IsRunning) { if (Graph.Stop() != AUGraphError.OK) { throw new ApplicationException(); } //if (Metronome.Instance.PlayState == Metronome.PlayStates.Stopped) //{ _file?.Dispose(); // finished recording to file _fileRecordingQueued = false; IsPlaying = false; _tempoChanged = false; cycle = 0; //} } }
public void Dispose() { Stop(); _audioUnit.Dispose(); _extAudioFile.Dispose(); }
public void Dispose() { audioUnit.Stop(); audioUnit.Dispose(); extAudioFile.Dispose(); }
public void StopRecording() { _isRecording = false; _extAudioFile.Dispose(); }