Ejemplo n.º 1
0
 public void Stop()
 {
     if (_isPlaying)
     {
         _auGraph.Stop();
     }
     _isPlaying = false;
 }
Ejemplo n.º 2
0
        public void Stop()
        {
            if (graph.IsRunning)
            {
                if (graph.Stop() != AUGraphError.OK)
                {
                    throw new ApplicationException();
                }

                playing = false;
            }
        }
Ejemplo n.º 3
0
        void stopAudioProcessingGraph()
        {
            AUGraphError result = AUGraphError.OK;

            if (processingGraph != null)
            {
                result = processingGraph.Stop();
            }

            if (result != AUGraphError.OK)
            {
                throw new Exception("Unable to restart the audio processing graph.  Error code: " + result);
            }
        }
Ejemplo n.º 4
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;
                //}
            }
        }
Ejemplo n.º 5
0
        void WaitOnGraphAndMixerCallbacks()
        {
            graph.Initialize();
            graph.Start();

            // Wait for 1 second, then give up
            try {
                for (int i = 0; i < 100; ++i)
                {
                    if (graphRenderCallbackCount > 0 && mixerRenderCallbackCount > 0)
                    {
                        return;
                    }
                    Thread.Sleep(10);
                }
                Assert.Fail("Did not see events after 1 second");
            }
            finally {
                graph.Stop();
            }
        }
Ejemplo n.º 6
0
 public void Stop()
 {
     _audioUnit.Stop();
     _auGraph.Stop();
 }
Ejemplo n.º 7
0
 public void Stop()
 {
     _auGraph.Stop();
 }