|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jack4j.JackClient net.sf.jack4j.AbstractJackClient
public class AbstractJackClient
Convenient implementation of JackClient
that correctly defines all
callbacks.
Inherited classes still have to call
JackClient.setDefaultThreadInitCallback()
and other necessary
setDefaultXXXCallback
methods to ensure that the callbacks are
actually called.
Constructor Summary | |
---|---|
AbstractJackClient(java.lang.String clientName,
boolean useExactName,
boolean canStartServer,
java.lang.String serverName)
Simply calls inherited constructor. |
Method Summary | |
---|---|
int |
bufferSizeCallback(int newBufferSize)
This implementation only returns 0. |
void |
clientRegistrationCallback(java.lang.String clientName,
boolean registered)
This implementation does nothing. |
void |
freewheelCallback(boolean onoff)
This implementation does nothing. |
int |
graphOrderCallback()
This implementation only returns 0. |
void |
portConnectCallback(long portAId,
long portBId,
boolean connected)
This implementation does nothing. |
void |
portRegistrationCallback(long portId,
boolean registered)
This implementation does nothing. |
int |
process(int bufferSize)
This implementation only returns 0. |
int |
sampleRateCallback(int newSampleRate)
This implementation only returns 0. |
void |
threadInitCallback()
This implementation does nothing. |
int |
xRunCallback()
This implementation only returns 0. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractJackClient(java.lang.String clientName, boolean useExactName, boolean canStartServer, java.lang.String serverName) throws JackException
JackException
Method Detail |
---|
public int bufferSizeCallback(int newBufferSize) throws java.lang.Exception
bufferSizeCallback
in class JackClient
java.lang.Exception
JackClient.bufferSizeCallback(int)
public void clientRegistrationCallback(java.lang.String clientName, boolean registered) throws java.lang.Exception
clientRegistrationCallback
in class JackClient
clientName
- name of the other clientregistered
- true if the client is registered, false if it's unregistered
java.lang.Exception
JackClient.clientRegistrationCallback(java.lang.String,
boolean)
public void freewheelCallback(boolean onoff) throws java.lang.Exception
freewheelCallback
in class JackClient
java.lang.Exception
JackClient.freewheelCallback(boolean)
public int graphOrderCallback() throws java.lang.Exception
graphOrderCallback
in class JackClient
java.lang.Exception
JackClient.graphOrderCallback()
public void portConnectCallback(long portAId, long portBId, boolean connected) throws java.lang.Exception
portConnectCallback
in class JackClient
portAId
- unique ID of one of two ports connected or disconnectedportBId
- unique ID of one of two ports connected or disconnectedconnected
- true if the connection is established, false if it's removed
java.lang.Exception
JackClient.portConnectCallback(long, long, boolean)
public void portRegistrationCallback(long portId, boolean registered) throws java.lang.Exception
portRegistrationCallback
in class JackClient
portId
- unique port ID (see JackClient.portById(long)
)registered
- true if the port is registered, false if it's unregistered
java.lang.Exception
JackClient.portRegistrationCallback(long, boolean)
public int process(int bufferSize) throws java.lang.Exception
process
in class JackClient
java.lang.Exception
JackClient.process(int)
public int sampleRateCallback(int newSampleRate) throws java.lang.Exception
sampleRateCallback
in class JackClient
java.lang.Exception
JackClient.sampleRateCallback(int)
public void threadInitCallback() throws java.lang.Exception
threadInitCallback
in class JackClient
java.lang.Exception
JackClient.threadInitCallback()
public int xRunCallback() throws java.lang.Exception
xRunCallback
in class JackClient
java.lang.Exception
JackClient.xRunCallback()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |