C# Class JackSharp.Controller

Controller.
Inheritance: Client
Datei anzeigen Open project: residuum/JackSharp Class Usage Examples

Public Methods

Method Description
Connect ( PortReference outPort, PortReference inPort ) : bool

Connect the specified outPort and inPort.

Controller ( string name ) : System

Initializes a new instance of the JackSharp.Controller class.

Disconnect ( PortReference outPort, PortReference inPort ) : bool

Disconnect the specified outPort and inPort.

Start ( bool startServer = false ) : bool

Activates the client and connects to Jack.

Stop ( ) : bool

Stops the client and disconnects from Jack.

Private Methods

Method Description
GetAndSendConnections ( List allPorts ) : void
GetAndSendPorts ( ) : List
MapPort ( uint portId ) : PortReference
OnClientRegistration ( string name, int register, IntPtr arg ) : void
OnPortConnect ( uint a, uint b, int connect, IntPtr args ) : void
OnPortRegistration ( uint portId, int register, IntPtr args ) : void
OnPortRename ( uint portId, string oldName, string newName, IntPtr arg ) : void
Open ( bool startServer ) : bool
SendPortsAndConnections ( ) : void
SetUpCallbacks ( ) : void
WireUpCallbacks ( ) : void

Method Details

Connect() public method

Connect the specified outPort and inPort.
public Connect ( PortReference outPort, PortReference inPort ) : bool
outPort JackSharp.Ports.PortReference Out port.
inPort JackSharp.Ports.PortReference In port.
return bool

Controller() public method

Initializes a new instance of the JackSharp.Controller class.
public Controller ( string name ) : System
name string Name.
return System

Disconnect() public method

Disconnect the specified outPort and inPort.
public Disconnect ( PortReference outPort, PortReference inPort ) : bool
outPort JackSharp.Ports.PortReference Out port.
inPort JackSharp.Ports.PortReference In port.
return bool

Start() public method

Activates the client and connects to Jack.
public Start ( bool startServer = false ) : bool
startServer bool If [true], the client will start Jack if it is not running.
return bool

Stop() public method

Stops the client and disconnects from Jack.
public Stop ( ) : bool
return bool