Detach() public method

public Detach ( AudioSource source ) : bool
source AudioSource
return bool
Ejemplo n.º 1
0
        public void AttachDetatchSource()
        {
            var engine = new AudioEngine();

            engine.Attach (this.provider, this.source, new AudioEngineCaptureOptions());
            Assert.IsTrue (engine.Detach (this.source));
        }
Ejemplo n.º 2
0
 public void InvalidDetatch()
 {
     var engine = new AudioEngine();
     Assert.Throws<ArgumentNullException> (() => engine.Detach ((IAudioCaptureProvider)null));
     Assert.Throws<ArgumentNullException> (() => engine.Detach ((AudioSource)null));
 }