C# Класс JackSharp.Controller

Controller.
Наследование: Client
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Connect() публичный метод

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.
Результат bool

Controller() публичный метод

Initializes a new instance of the JackSharp.Controller class.
public Controller ( string name ) : System
name string Name.
Результат System

Disconnect() публичный метод

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.
Результат bool

Start() публичный метод

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.
Результат bool

Stop() публичный метод

Stops the client and disconnects from Jack.
public Stop ( ) : bool
Результат bool