Example #1
0
        /// <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;
                //}
            }
        }
Example #2
0
 public void Dispose()
 {
     Stop();
     _audioUnit.Dispose();
     _extAudioFile.Dispose();
 }
 public void Dispose()
 {
     audioUnit.Stop();
     audioUnit.Dispose();
     extAudioFile.Dispose();
 }
Example #4
0
 public void StopRecording()
 {
     _isRecording = false;
     _extAudioFile.Dispose();
 }