de.gulden.framework.jjack
public class JJackSystem extends Object implements JJackConstants
JJackAudioProcessor
.
Version: 0.3
Field Summary | |
---|---|
static JJackAudioProcessor | client |
static String | clientName |
static boolean | DEBUG
Flag for debug mode. |
static String | DEFAULT_AUTOCONNECT
Default auto-connect mode. |
static String | DEFAULT_CLIENT_NAME
Default name of the native JACK client to register. |
static String | DEFAULT_PORTS
Default ports count. |
static String | DEFAULT_VERBOSE
Default verbose mode. |
static long | infPointer
Pointer to native handle-structure.
|
static JJackException | initError |
static boolean | initialized |
static Object | lock |
static int | portsInput |
static boolean | portsInputAutoconnect |
static int | portsOutput |
static boolean | portsOutputAutoconnect |
static String | PROPERTY_CLIENT_NAME
Name of the system property specifying the name of the native JACK client to register. |
static String | PROPERTY_PORTS
Name of the system property specifying how many ports to allocate. |
static String | PROPERTY_VERBOSE
Name of the system property specifying whether JJack should give more verbose output. |
static boolean | running |
static String | SUFFIX_AUTOCONNECT
Suffix of the system property specifying whether ports should be auto-connected to physical JACK ports. |
static String | SUFFIX_INPUT
Additional suffix of the system property specifying how many input ports to allocate. |
static String | SUFFIX_OUTPUT
Suffix of the system property specifying how many output ports to allocate. |
static boolean | verbose |
static String | VERSION
JJack version number. |
Constructor Summary | |
---|---|
JJackSystem()
Private constructor for getting an instance of Runnable. |
Method Summary | |
---|---|
static int | calculateSampleCount(int milliseconds)
Calculates number of samples used for a single channel
in the given amount of milliseconds.
|
static int | countPorts(int inout)
Returns the number of ports available either for input or output mode.
|
static String | getInfo()
Returns a short information text about the JJack system and its current status.
|
static String | getJackClientName()
Returns the name of the native JACK client that has been regstered by the JJack system.
|
static JJackAudioProcessor | getProcessor()
Returns the audio processor which is responsible for signal processing.
|
static int | getSampleRate()
Returns the sample rate used by the JACK daemon.
|
static void | init()
Initialized the JJack system. |
static void | init1() |
static boolean | isInitialized() |
static void | log(Object src, String msg)
Logs a message from the specified source object, if verbose mode is enabled.
|
static void | main(String[] args)
Wrapper main()-method, invokes the main()-method of the class specified as arg[0].
|
static void | nativeDestroy()
Native client shutdown. |
static void | nativeInit()
Native initialization. |
static void | nativeStart()
Native client start. |
static void | process(JJackAudioProcessor p, JJackAudioEvent e)
Process an audio event by a given audio processor.
|
static void | processBytes(ByteBuffer[] in, ByteBuffer[] out)
This method is the actual bridge from JACK to Java.
|
static void | setProcessor(JJackAudioProcessor cl)
Sets the audio processor which is responsible for signal processing.
|
static void | shutdown() |
static void | start()
Start background processing on the Java side.
|
static void | stop()
Stops background processing on the Java side.
|
static void | usage()
Output usage description, then exit with error code. |
static boolean | verbose()
Returns whether the JJack sytem runs in verbose mode.
|
libjjack.so
in file libjjack.c.
Returns: number of sample values
Parameters: inout either constant INPUT
or OUTPUT
Returns: the number of ports
Returns: information text
Returns: the client name
Returns: the audio processor
Returns: the sample rate
Parameters: src the source object, usually the originator of the log message msg the message text
Parameters: args command line parameters
Throws: Throwable if an unhandled exception occurs inside the wrapped application, or a JJackException if initializing the Jack client was not successful.
Parameters: p the audio processor that is to process the event e the audio event
Parameters: in the direct memory access input buffer out the direct memory access output buffer
process()
-method of this audio processor will then regularly be called.Throws: JJackException if an error occurs
Returns: true if verbose mode