|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jack4j.JackClient
net.sf.jack4j.JackTransportClient
net.sf.jack4j.AbstractJackTransportClient
public abstract class AbstractJackTransportClient
Convenient implementation of JackTransportClient 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 | |
|---|---|
AbstractJackTransportClient(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. |
boolean |
syncCallback(JackTransportState state,
TransportPosition position)
Always returns true. |
void |
threadInitCallback()
This implementation does nothing. |
void |
timebaseCallback(JackTransportState state,
int nframes,
TransportPosition pos,
boolean newPos)
Does nothing. |
int |
xRunCallback()
This implementation only returns 0. |
| Methods inherited from class net.sf.jack4j.JackTransportClient |
|---|
getCurrentTransportFrame, locateTransport, queryTransport, releaseTimebase, repositionTransport, setDefaultSyncCallback, setDefaultTimebaseCallback, setSyncCallback, setSyncTimeout, setTimebaseCallback, startTransport, stopTransport, unsetSyncCallback |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractJackTransportClient(java.lang.String clientName,
boolean useExactName,
boolean canStartServer,
java.lang.String serverName)
throws JackException
JackExceptionJackClient.JackClient(String, boolean, boolean, String)| Method Detail |
|---|
public boolean syncCallback(JackTransportState state,
TransportPosition position)
syncCallback in class JackTransportClientstate - current transport stateposition - new transport position
public void timebaseCallback(JackTransportState state,
int nframes,
TransportPosition pos,
boolean newPos)
timebaseCallback in class JackTransportClientstate - current transport statenframes - period lengthpos - position structure for the next cycle; if newPos is
false, the structure already contains extended positional
information from current cyclenewPos - if true, new position was requested; in such case, pos
structure doesn't contain valid extended information
public int bufferSizeCallback(int newBufferSize)
throws java.lang.Exception
bufferSizeCallback in class JackClientjava.lang.ExceptionJackClient.bufferSizeCallback(int)
public void clientRegistrationCallback(java.lang.String clientName,
boolean registered)
throws java.lang.Exception
clientRegistrationCallback in class JackClientclientName - name of the other clientregistered - true if the client is registered, false if it's unregistered
java.lang.ExceptionJackClient.clientRegistrationCallback(java.lang.String,
boolean)
public void freewheelCallback(boolean onoff)
throws java.lang.Exception
freewheelCallback in class JackClientjava.lang.ExceptionJackClient.freewheelCallback(boolean)
public int graphOrderCallback()
throws java.lang.Exception
graphOrderCallback in class JackClientjava.lang.ExceptionJackClient.graphOrderCallback()
public void portConnectCallback(long portAId,
long portBId,
boolean connected)
throws java.lang.Exception
portConnectCallback in class JackClientportAId - 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.ExceptionJackClient.portConnectCallback(long, long, boolean)
public void portRegistrationCallback(long portId,
boolean registered)
throws java.lang.Exception
portRegistrationCallback in class JackClientportId - unique port ID (see JackClient.portById(long))registered - true if the port is registered, false if it's unregistered
java.lang.ExceptionJackClient.portRegistrationCallback(long, boolean)
public int process(int bufferSize)
throws java.lang.Exception
process in class JackClientjava.lang.ExceptionJackClient.process(int)
public int sampleRateCallback(int newSampleRate)
throws java.lang.Exception
sampleRateCallback in class JackClientjava.lang.ExceptionJackClient.sampleRateCallback(int)
public void threadInitCallback()
throws java.lang.Exception
threadInitCallback in class JackClientjava.lang.ExceptionJackClient.threadInitCallback()
public int xRunCallback()
throws java.lang.Exception
xRunCallback in class JackClientjava.lang.ExceptionJackClient.xRunCallback()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||