| 
||||||||||
| 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.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 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 | |||||||||