コード例 #1
0
 /// <summary>
 /// Stops playing back audio.
 /// </summary>
 public void Stop()
 {
     if (this.audioDevice != null)
     {
         LinuxAudioInterop.Close(this.audioDevice);
         this.audioDevice = null;
     }
 }
コード例 #2
0
 /// <summary>
 /// Stops playing back audio.
 /// </summary>
 private void OnPipelineStop()
 {
     if (this.audioDevice != null)
     {
         LinuxAudioInterop.Close(this.audioDevice);
         this.audioDevice = null;
     }
 }
コード例 #3
0
ファイル: AudioPlayer.cs プロジェクト: sandrist/psi
 /// <summary>
 /// Stops playing back audio.
 /// </summary>
 private void OnUnsubscribed()
 {
     if (this.audioDevice != null)
     {
         LinuxAudioInterop.Close(this.audioDevice);
         this.audioDevice = null;
     }
 }
コード例 #4
0
        /// <summary>
        /// Called when the pipeline is shutting down.
        /// </summary>
        public void Stop()
        {
            var audioDevice = Interlocked.Exchange(ref this.audioDevice, null);

            if (audioDevice != null)
            {
                LinuxAudioInterop.Close(audioDevice);
            }
        }
コード例 #5
0
        /// <summary>
        /// Called when the pipeline is shutting down.
        /// </summary>
        private void OnPipelineStop()
        {
            var audioDevice = Interlocked.Exchange(ref this.audioDevice, null);

            if (audioDevice != null)
            {
                LinuxAudioInterop.Close(audioDevice);
            }
        }
コード例 #6
0
ファイル: AudioCapture.cs プロジェクト: sandrist/psi
        private void Stop()
        {
            // stop any running background thread and wait for it to terminate
            this.isStopping = true;
            this.background?.Join();

            var audioDevice = Interlocked.Exchange(ref this.audioDevice, null);

            if (audioDevice != null)
            {
                LinuxAudioInterop.Close(audioDevice);
            }
        }