C# Class JackSharp.Processor

Processor.
Inheritance: Client
Show file Open project: residuum/JackSharp Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Releases all resource used by the JackSharp.Processor object.

Call Dispose when you are finished using the JackSharp.Processor. The Dispose method leaves the JackSharp.Processor in an unusable state. After calling Dispose, you must release all references to the JackSharp.Processor so the garbage collector can reclaim the memory that the JackSharp.Processor was occupying.

Processor ( string name, int audioInPorts, int audioOutPorts, int midiInPorts, int midiOutPorts, bool autoconnect = false ) : System

Initializes a new instance of the JackSharp.Processor class.

Start ( bool startServer = false ) : bool

Activates the client and connects to Jack.

Stop ( ) : bool

Stop this instance and disconnects from Jack.

Private Methods

Method Description
AutoConnectPorts ( ) : void
ConnectPorts ( List outlets, List inlets ) : void
CreatePorts ( ) : void
DisposePorts ( ) : void
OnProcess ( uint nframes, IntPtr arg ) : int
Open ( bool startServer ) : bool
SetUpCallbacks ( ) : void
SetUpPorts ( int audioInPorts, int audioOutPorts, int midiInPorts, int midiOutPorts ) : void
WireUpCallbacks ( ) : void

Method Details

Dispose() public method

Releases all resource used by the JackSharp.Processor object.
Call Dispose when you are finished using the JackSharp.Processor. The Dispose method leaves the JackSharp.Processor in an unusable state. After calling Dispose, you must release all references to the JackSharp.Processor so the garbage collector can reclaim the memory that the JackSharp.Processor was occupying.
public Dispose ( ) : void
return void

Processor() public method

Initializes a new instance of the JackSharp.Processor class.
public Processor ( string name, int audioInPorts, int audioOutPorts, int midiInPorts, int midiOutPorts, bool autoconnect = false ) : System
name string Name.
audioInPorts int Number of audio in ports.
audioOutPorts int Number of audio out ports.
midiInPorts int Number of MIDI in ports.
midiOutPorts int Number of MIDI out ports.
autoconnect bool If set to true, autoconnect inlets and outlets to physical ports.
return System

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

Stop this instance and disconnects from Jack.
public Stop ( ) : bool
return bool