Changeset 256


Ignore:
Timestamp:
Feb 11, 2011, 1:48:16 AM (15 years ago)
Author:
dmik
Message:

jdk/jsound: Disable jitter correction in SoftSynthesizer by default on OS/2 as it tends to produce sound clips when the reverb effect is on (see #67 for details).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/src/share/classes/com/sun/media/sound/SoftSynthesizer.java

    r2 r256  
    171171        }
    172172    }
     173
     174    private static final boolean isOS2 = AccessController
     175        .doPrivileged(new PrivilegedAction<Boolean>() {
     176            public Boolean run() {
     177                return System.getProperty("os.name").startsWith("OS/2");
     178            }
     179        });
    173180
    174181    protected static final String INFO_NAME = "Gervill";
     
    929936        list.add(item);
    930937
    931         item = new AudioSynthesizerPropertyInfo("jitter correction", o?jitter_correction:true);
     938        item = new AudioSynthesizerPropertyInfo("jitter correction", o?jitter_correction:isOS2?false:true);
    932939        item.description = "Turn jitter correction on or off.";
    933940        list.add(item);
Note: See TracChangeset for help on using the changeset viewer.