gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
|
#include <JackClient.H>
Public Member Functions | |
JackClient (void) | |
JackClient (string clientName_) | |
virtual | ~JackClient () |
Destructor. More... | |
virtual int | connect (string clientName_) |
virtual int | connect (const string &clientName_, const string &serverName) |
virtual int | getBlockSize () |
int | setBlockSize (int size) |
virtual int | startClient () |
virtual int | startClient (int inCnt, int outCnt, bool doConnect=true) |
Public Member Functions inherited from JackBase | |
JackBase () | |
JackBase (string clientName_) | |
JackBase (string clientName_, string serverName) | |
virtual | ~JackBase () |
Destructor. More... | |
virtual int | stopClient (void) |
virtual int | disconnect (void) |
int | getSampleRate (void) const |
virtual int | createPorts (string inName, int inCnt, string outName, int outCnt) |
virtual int | destroyPorts () |
void | getPhysicalPorts (vector< jack_port_t *> &inPorts, vector< jack_port_t *> &outPorts) |
void | getPhysicalPortCount (int &in, int &out) |
bool | connected () |
virtual void | print (ostream &os) |
string | getClientName () |
virtual void | setClientName (string cn) |
string | portNameFromPort (jack_port_id_t p) |
string | portNameFromPort (jack_port_t *p) |
string | clientNameFromPort (jack_port_id_t p) |
string | clientNameFromPort (jack_port_t *p) |
string | clientNameFromPortName (string fullPortName) |
string | clientNameFromPortNames (string fullPortName, string shortPortName) |
string | shortPortNameFromPortName (const string fullPortName) |
bool | operator== (const string &cn) |
int | getInputPortSize () |
jack_port_t * | getInputPort (int i) |
jack_port_t * | getOutputPort (int i) |
void | addInputPort (jack_port_t *inP) |
void | addOutputPort (jack_port_t *outP) |
int | populatInOutPorts (const string &inName, vector< string > &inPorts, const string &outName, vector< string > &outPorts) |
int | connectPorts (const string inName, const string outName) |
virtual int | disconnectPorts (const string &inName, const string &outName) |
void | setClient (jack_client_t *c) |
Protected Member Functions | |
virtual int | processAudio (jack_nframes_t nframes)=0 |
virtual int | bufferSizeChange (jack_nframes_t nframes) |
Protected Member Functions inherited from JackBase | |
virtual void | determineLatencies () |
int | getPortListAndCount (JackPortFlags flags, vector< jack_port_t *> *ports, const char *portNamePattern, const char *typeNamePattern) |
int | getPortListAndCount (JackPortFlags flags, vector< string > *ports, const char *portNamePattern, const char *typeNamePattern) |
virtual void | reSyncPorts (void) |
virtual void | reSyncConnections (void) |
Static Private Member Functions | |
static int | processAudioStatic (jack_nframes_t nframes, void *arg) |
static int | bufferSizeChangeStatic (jack_nframes_t nframes, void *arg) |
Additional Inherited Members | |
Public Attributes inherited from JackBase | |
bool | connect1To1 |
When true, then connections are made in a 1 to 1 manner. When False, then connections are made in an all to all manner. More... | |
Protected Attributes inherited from JackBase | |
jack_client_t * | client |
The jack client. More... | |
string | clientName |
The name of this client. More... | |
jack_options_t | jackOptions |
Options for jack. More... | |
jack_status_t | status |
The status of jack. More... | |
int | physicalInputPortCnt |
The number of physical input ports. More... | |
int | physicalOutputPortCnt |
The number of physical input ports. More... | |
vector< jack_port_t * > | inputPorts |
The input ports. More... | |
vector< jack_port_t * > | outputPorts |
The output ports. More... | |
vector< jack_nframes_t > | inputLatencies |
The input latencies, one for each port. More... | |
vector< jack_nframes_t > | outputLatencies |
The output latencies, one for each port. More... | |
Class to connect to a jack server as a client, see : http://jackaudio.org/
This client auto-connects the output and input ports to the first available ports.
See JackClientTest.C for an example, however usage is like so :
Definition at line 56 of file JackClient.H.
|
inline |
Constructor.
Definition at line 98 of file JackClient.H.
|
inline |
Constructor. Connecting the client to the default server.
clientName_ | The client name, which will initiate a server connection. |
Definition at line 103 of file JackClient.H.
|
inlinevirtual |
|
inlineprotectedvirtual |
The Jack client callback - to be implemented by your inheriting class if you need to do things when the buffer size changes
nframes | The number of frames to process when processAudio is called. |
Definition at line 90 of file JackClient.H.
|
inlinestaticprivate |
This is the callback triggered when the buffer size changes. Callback to pass to the jack server using JackClient::connect. You must overload bufferSizeChange as that is where the processing is done in your class.
nframes | The number of frames to process |
arg | the user data |
< The Jack client callback
Definition at line 75 of file JackClient.H.
|
inlinevirtual |
Connect to the server This starts the server and sets up the process callback/arg to use.
clientName_ | The name of the client to use |
Reimplemented from JackBase.
Definition at line 115 of file JackClient.H.
|
inlinevirtual |
Connect to the server This starts the server and sets up the process callback/arg to use.
clientName_ | The name of the client to use |
serverName | The name of the server to use |
Reimplemented from JackBase.
Definition at line 125 of file JackClient.H.
|
inlinevirtual |
Get the server buffer size (block size)
Definition at line 140 of file JackClient.H.
|
protectedpure virtual |
The Jack client callback - to be implemented by your inheriting class
nframes | The number of frames to process. |
Implemented in TestJackClient, FullDuplexTones, WSOLAJack, CrossoverAudio, and MixerTestAudio.
|
inlinestaticprivate |
This is the process audio callback which is called each time audio is acquired and required by the audio system for input and output. Callback to pass to the jack server using JackClient::connect. You must overload processAudio as that is where the processing is done in your class.
nframes | The number of frames to process |
arg | the user data |
< The Jack client callback
Definition at line 64 of file JackClient.H.
|
inline |
Set the server buffer size (block size)
Definition at line 148 of file JackClient.H.
|
inlinevirtual |
Start the client running. Activate jack but don't connect any ports.
Definition at line 159 of file JackClient.H.
|
inlinevirtual |
Start the client running. If the doConnect is true, then an attempt is made to auto connect the ports to the system ports. If auto connection fails, the client is still running.
inCnt | The number of input ports to connect to |
outCnt | The number of output ports to connect to |
doConnect | Auto-connect inputs and outputs to the system ports. |
Reimplemented in CrossoverAudio.
Definition at line 173 of file JackClient.H.
GTK+ IOStream
Beta
|