/[svn]/jsampler/trunk/src/org/jsampler/JSPrefs.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/JSPrefs.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1817 by iliev, Wed Oct 8 22:38:15 2008 UTC revision 1818 by iliev, Wed Dec 24 17:29:47 2008 UTC
# Line 35  import java.util.prefs.Preferences; Line 35  import java.util.prefs.Preferences;
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.
# Line 319  public class JSPrefs extends PropertyCha Line 325  public class JSPrefs extends PropertyCha
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;

Legend:
Removed from v.1817  
changed lines
  Added in v.1818

  ViewVC Help
Powered by ViewVC