35 |
* @author Grigor Iliev |
* @author Grigor Iliev |
36 |
*/ |
*/ |
37 |
public class JSPrefs extends PropertyChangeSupport { |
public class JSPrefs extends PropertyChangeSupport { |
38 |
|
/** Property representing the global sampler-wide limit of maximum voices. */ |
39 |
|
public final static String GLOBAL_VOICE_LIMIT = "globalVoiceLimit"; |
40 |
|
|
41 |
|
/** Property representing the global sampler-wide limit of maximum disk streams. */ |
42 |
|
public final static String GLOBAL_STREAM_LIMIT = "globalStreamLimit"; |
43 |
|
|
44 |
/** |
/** |
45 |
* Property which specifies whether to apply default |
* Property which specifies whether to apply default |
46 |
* actions to newly created sampler channels. |
* actions to newly created sampler channels. |
325 |
*/ |
*/ |
326 |
public int |
public int |
327 |
getDefaultIntValue(String name) { |
getDefaultIntValue(String name) { |
328 |
|
if(GLOBAL_VOICE_LIMIT.equals(name)) return 64; |
329 |
|
if(GLOBAL_STREAM_LIMIT.equals(name)) return 90; |
330 |
if(SOCKET_READ_TIMEOUT.equals(name)) return 90; |
if(SOCKET_READ_TIMEOUT.equals(name)) return 90; |
331 |
if(FIRST_MIDI_BANK_NUMBER.equals(name)) return 1; |
if(FIRST_MIDI_BANK_NUMBER.equals(name)) return 1; |
332 |
if(FIRST_MIDI_PROGRAM_NUMBER.equals(name)) return 1; |
if(FIRST_MIDI_PROGRAM_NUMBER.equals(name)) return 1; |