Stop() public method

Stops the client and disconnects from Jack.
public Stop ( ) : bool
return bool
コード例 #1
0
ファイル: ServerStartTest.cs プロジェクト: residuum/JackSharp
 public virtual void StartingServer()
 {
     using (Controller controller = new Controller ("testController")) {
         controller.Start (true);
         Thread.Sleep (100);
         Assert.IsTrue (controller.IsConnectedToJack);
         controller.Stop ();
     }
 }
コード例 #2
0
ファイル: ClientTest.cs プロジェクト: residuum/JackSharp
 public virtual void ChangeNameFormat()
 {
     using (Controller controller = new Controller ("testController"))
     using (Processor client = new Processor ("testClient", 1)) {
         client.PortNameFormat = "my_{direction}-{type}_{index}";
         client.Start ();
         Thread.Sleep (100);
         Assert.AreEqual ("my_in-audio_1", client.AudioInPorts.First ().Name);
         client.Stop ();
         controller.Stop ();
     }
 }
コード例 #3
0
ファイル: ServerStartTest.cs プロジェクト: residuum/JackSharp
 public virtual void ShutdownEvent()
 {
     using (Controller controller = new Controller ("testController"))
     using (Processor client = new Processor ("TestClient", 2, 2)) {
         ShutdownReceiver receiver = new ShutdownReceiver ();
         controller.Start (true);
         client.Shutdown += receiver.OnShutdown;
         client.Start ();
         Thread.Sleep (100);
         controller.Stop ();
         Thread.Sleep (100);
         Assert.AreEqual (1, receiver.Shutdowns);
     }
 }
コード例 #4
0
ファイル: ClientTest.cs プロジェクト: residuum/JackSharp
 public virtual void AutoConnect()
 {
     using (Controller controller = new Controller ("testController"))
     using (Processor client = new Processor ("testClient", 2, 2, 0, 0, true)) {
         ControllerReceiver receiver = new ControllerReceiver ();
         controller.ConnectionChanged += receiver.ConnectionChanged;
         controller.Start ();
         Thread.Sleep (100);
         int connectionsWithoutClient = receiver.ConnectionsFound;
         client.Start ();
         Thread.Sleep (100);
         Assert.AreNotEqual (connectionsWithoutClient, receiver.ConnectionsFound);
         client.Stop ();
         controller.Stop ();
     }
 }
コード例 #5
0
ファイル: ClientTest.cs プロジェクト: residuum/JackSharp
 public virtual void DefaultNameFormat()
 {
     using (Controller controller = new Controller ("testController"))
     using (Processor client = new Processor ("testClient", 1)) {
         client.Start ();
         Thread.Sleep (100);
         Assert.AreEqual ("audioin_1", client.AudioInPorts.First ().Name);
         client.Stop ();
         controller.Stop ();
     }
 }