Accord.Audio.AudioSourceMixer.Stop C# (CSharp) Méthode

Stop() public méthode

Stop audio source.

Stops audio source aborting its thread.

Since the method aborts background thread, its usage is highly not preferred and should be done only if there are no other options. The correct way of stopping camera is signaling it stop and then waiting for background thread's completion.

public Stop ( ) : void
Résultat void
        public void Stop()
        {
            if (this.IsRunning)
            {
                needToStop = true;
                thread.Abort();
                WaitForStop();
            }
        }