C# Class JackSharp.Controller

Controller.
Inheritance: Client
Afficher le fichier Open project: residuum/JackSharp Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat bool

Controller() public méthode

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

Disconnect() public méthode

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.
Résultat bool

Start() public méthode

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.
Résultat bool

Stop() public méthode

Stops the client and disconnects from Jack.
public Stop ( ) : bool
Résultat bool