|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.sciss.jcollider.ServerOptions
public class ServerOptions
A class full of getter/setter methods to describe the options to boot a local scsynth server.
| Field Summary | |
|---|---|
static java.lang.String |
TCP
Protocol type : transport control protocol |
static java.lang.String |
UDP
Protocol type : universal datagram protocol |
| Constructor Summary | |
|---|---|
ServerOptions()
Creates a new instance with default options |
|
| Method Summary | |
|---|---|
BlockAllocator.Factory |
getBlockAllocFactory()
|
int |
getBlockSize()
|
java.lang.String |
getDevice()
|
int |
getFirstPrivateBus()
Utility method to return the audio bus offset for the first bus which is not connected to audio hardware interface channels. |
int |
getHardwareBufferSize()
|
java.lang.String |
getInputStreamsEnabled()
|
boolean |
getLoadDefs()
|
int |
getMaxNodes()
|
int |
getMaxSynthDefs()
|
int |
getMemSize()
|
int |
getNumAudioBusChannels()
|
int |
getNumBuffers()
|
int |
getNumControlBusChannels()
|
int |
getNumInputBusChannels()
|
int |
getNumOutputBusChannels()
|
int |
getNumRGens()
|
int |
getNumWireBufs()
|
java.lang.String |
getOutputStreamsEnabled()
|
java.lang.String |
getProtocol()
|
boolean |
getRendezvous()
|
double |
getSampleRate()
|
int |
getVerbosity()
|
static java.lang.String[] |
optionListToStringArray(java.util.List list)
Converts a list of string elements to one an array of strings |
void |
setBlockAllocFactory(BlockAllocator.Factory baf)
|
void |
setBlockSize(int blockSize)
|
void |
setDevice(java.lang.String device)
|
void |
setHardwareBufferSize(int hardwareBufferSize)
|
void |
setInputStreamsEnabled(java.lang.String inputStreamsEnabled)
|
void |
setLoadDefs(boolean loadDefs)
|
void |
setMaxNodes(int maxNodes)
|
void |
setMaxSynthDefs(int maxSynthDefs)
|
void |
setMemSize(int memSize)
|
void |
setNumAudioBusChannels(int numAudioBusChannels)
|
void |
setNumBuffers(int numBuffers)
|
void |
setNumControlBusChannels(int numControlBusChannels)
|
void |
setNumInputBusChannels(int numInputBusChannels)
|
void |
setNumOutputBusChannels(int numOutputBusChannels)
|
void |
setNumRGens(int numRGens)
|
void |
setNumWireBufs(int numWireBufs)
|
void |
setOutputStreamsEnabled(java.lang.String outputStreamsEnabled)
|
void |
setProtocol(java.lang.String protocol)
|
void |
setRendezvous(boolean rendezvous)
|
void |
setSampleRate(double sampleRate)
|
void |
setVerbosity(int verbosity)
|
static java.lang.String |
stringArrayToConsoleString(java.lang.String[] array)
Converts an array of strings to a string which can be used in a Un*x console. |
java.util.List |
toOptionList(int port)
Creates a list of all the server options, omitting those whose value equals the default value. |
java.util.List |
toOptionList(int port,
boolean verbose)
Creates a list of all the server options. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String UDP
public static final java.lang.String TCP
| Constructor Detail |
|---|
public ServerOptions()
| Method Detail |
|---|
public java.util.List toOptionList(int port)
port - the port number to use for the -u option
String
elements of the server options
public java.util.List toOptionList(int port,
boolean verbose)
port - the port number to use for the -u optionverbose - if true, elements for all parameters are
generated, otherwise only elements for parameters that
are different from scsynth's defaults are generated
String
elements of the server optionspublic int getNumAudioBusChannels()
public void setNumAudioBusChannels(int numAudioBusChannels)
public int getNumControlBusChannels()
public void setNumControlBusChannels(int numControlBusChannels)
public int getNumInputBusChannels()
public void setNumInputBusChannels(int numInputBusChannels)
public int getNumOutputBusChannels()
public void setNumOutputBusChannels(int numOutputBusChannels)
public int getNumBuffers()
public void setNumBuffers(int numBuffers)
public int getMaxNodes()
public void setMaxNodes(int maxNodes)
public int getMaxSynthDefs()
public void setMaxSynthDefs(int maxSynthDefs)
public java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)
java.lang.IllegalArgumentException - if protocol is not
UDPpublic int getBlockSize()
public void setBlockSize(int blockSize)
public int getHardwareBufferSize()
public void setHardwareBufferSize(int hardwareBufferSize)
public int getMemSize()
public void setMemSize(int memSize)
public int getNumRGens()
public void setNumRGens(int numRGens)
public int getNumWireBufs()
public void setNumWireBufs(int numWireBufs)
public double getSampleRate()
public void setSampleRate(double sampleRate)
public boolean getLoadDefs()
public void setLoadDefs(boolean loadDefs)
public java.lang.String getInputStreamsEnabled()
public void setInputStreamsEnabled(java.lang.String inputStreamsEnabled)
public java.lang.String getOutputStreamsEnabled()
public void setOutputStreamsEnabled(java.lang.String outputStreamsEnabled)
public java.lang.String getDevice()
public void setDevice(java.lang.String device)
public BlockAllocator.Factory getBlockAllocFactory()
public void setBlockAllocFactory(BlockAllocator.Factory baf)
public int getVerbosity()
public void setVerbosity(int verbosity)
public boolean getRendezvous()
public void setRendezvous(boolean rendezvous)
public int getFirstPrivateBus()
public static java.lang.String[] optionListToStringArray(java.util.List list)
list - a list whose elements are Strings
public static java.lang.String stringArrayToConsoleString(java.lang.String[] array)
array - parameters to a un*x process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||