public class ServerOptions extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TCP
Protocol type : transport control protocol
|
static String |
UDP
Protocol type : universal datagram protocol
|
Constructor and Description |
---|
ServerOptions()
Creates a new instance with default options
|
Modifier and Type | Method and Description |
---|---|
BlockAllocator.Factory |
getBlockAllocFactory() |
int |
getBlockSize() |
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() |
String |
getInputStreamsEnabled() |
boolean |
getLoadDefs() |
int |
getMaxNodes() |
int |
getMaxSynthDefs() |
int |
getMemSize() |
int |
getNumAudioBusChannels() |
int |
getNumBuffers() |
int |
getNumControlBusChannels() |
int |
getNumInputBusChannels() |
int |
getNumOutputBusChannels() |
int |
getNumRGens() |
int |
getNumWireBufs() |
String |
getOutputStreamsEnabled() |
String |
getProtocol() |
boolean |
getRendezvous() |
double |
getSampleRate() |
int |
getVerbosity() |
static String[] |
optionListToStringArray(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(String device) |
void |
setHardwareBufferSize(int hardwareBufferSize) |
void |
setInputStreamsEnabled(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(String outputStreamsEnabled) |
void |
setProtocol(String protocol) |
void |
setRendezvous(boolean rendezvous) |
void |
setSampleRate(double sampleRate) |
void |
setVerbosity(int verbosity) |
static String |
stringArrayToConsoleString(String[] array)
Converts an array of strings to a string
which can be used in a Un*x console.
|
List |
toOptionList(int port)
Creates a list of all the server options,
omitting those whose value equals the default value.
|
List |
toOptionList(int port,
boolean verbose)
Creates a list of all the server options.
|
public static final String UDP
public static final String TCP
public List toOptionList(int port)
port
- the port number to use for the -u
optionString
elements of the server optionspublic 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 generatedString
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 String getProtocol()
public void setProtocol(String protocol)
IllegalArgumentException
- if protocol
is not
UDP
public 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 String getInputStreamsEnabled()
public void setInputStreamsEnabled(String inputStreamsEnabled)
public String getOutputStreamsEnabled()
public void setOutputStreamsEnabled(String outputStreamsEnabled)
public String getDevice()
public void setDevice(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 String[] optionListToStringArray(List list)
list
- a list whose elements are String
spublic static String stringArrayToConsoleString(String[] array)
array
- parameters to a un*x processCopyright © 2015–2022 SciJava. All rights reserved.