109 |
public final static String MANUAL_SERVER_SELECT_ON_STARTUP = "manualServerSelectOnStartup"; |
public final static String MANUAL_SERVER_SELECT_ON_STARTUP = "manualServerSelectOnStartup"; |
110 |
|
|
111 |
/** |
/** |
112 |
|
* Property which specifies whether the backend should be launched by jsampler |
113 |
|
* if it is not yet started, when trying to connect locally - 127.0.0.1 or localhost. |
114 |
|
*/ |
115 |
|
public final static String LAUNCH_BACKEND_LOCALLY = "launchBackednLocally"; |
116 |
|
|
117 |
|
/** |
118 |
|
* Property which specifies the command to be used to start the backend. |
119 |
|
*/ |
120 |
|
public final static String BACKEND_LAUNCH_COMMAND = "backendLaunchCommand"; |
121 |
|
|
122 |
|
/** |
123 |
|
* Property which specifies whether the backend should be launched by jsampler |
124 |
|
* if it is not yet started, when trying to connect locally - 127.0.0.1 or localhost. |
125 |
|
*/ |
126 |
|
public final static String BACKEND_LAUNCH_DELAY = "backendLaunchDelay"; |
127 |
|
|
128 |
|
/** |
129 |
* Integer property which provides the index of the server to connect on startup. |
* Integer property which provides the index of the server to connect on startup. |
130 |
*/ |
*/ |
131 |
public final static String SERVER_INDEX = "serverIndex"; |
public final static String SERVER_INDEX = "serverIndex"; |
211 |
* @see #getStringProperty(String name) |
* @see #getStringProperty(String name) |
212 |
*/ |
*/ |
213 |
public String |
public String |
214 |
getDefaultStringValue(String name) { return null; } |
getDefaultStringValue(String name) { |
215 |
|
if(BACKEND_LAUNCH_COMMAND.equals(name)) return "linuxsampler"; |
216 |
|
return null; |
217 |
|
} |
218 |
|
|
219 |
/** |
/** |
220 |
* Gets a string list property. |
* Gets a string list property. |
319 |
*/ |
*/ |
320 |
public int |
public int |
321 |
getDefaultIntValue(String name) { |
getDefaultIntValue(String name) { |
322 |
if(name == SOCKET_READ_TIMEOUT) return 90; |
if(SOCKET_READ_TIMEOUT.equals(name)) return 90; |
323 |
if(name == FIRST_MIDI_BANK_NUMBER) return 1; |
if(FIRST_MIDI_BANK_NUMBER.equals(name)) return 1; |
324 |
if(name == FIRST_MIDI_PROGRAM_NUMBER) return 1; |
if(FIRST_MIDI_PROGRAM_NUMBER.equals(name)) return 1; |
325 |
|
if(BACKEND_LAUNCH_DELAY.equals(name)) return 3; |
326 |
return 0; |
return 0; |
327 |
} |
} |
328 |
|
|
381 |
*/ |
*/ |
382 |
public boolean |
public boolean |
383 |
getDefaultBoolValue(String name) { |
getDefaultBoolValue(String name) { |
384 |
if(name == VOL_MEASUREMENT_UNIT_DECIBEL) return true; |
if(VOL_MEASUREMENT_UNIT_DECIBEL.equals(name)) return true; |
385 |
if(name == EXPORT_MIDI_MAPS_TO_SESSION_SCRIPT) return true; |
if(EXPORT_MIDI_MAPS_TO_SESSION_SCRIPT.equals(name)) return true; |
386 |
if(name == LOAD_MIDI_INSTRUMENTS_IN_BACKGROUND) return true; |
if(LOAD_MIDI_INSTRUMENTS_IN_BACKGROUND.equals(name)) return true; |
387 |
|
if(LAUNCH_BACKEND_LOCALLY.equals(name)) return true; |
388 |
return false; |
return false; |
389 |
} |
} |
390 |
} |
} |