jdk/src/java.desktop/share/classes/com/sun/media/sound/JavaSoundAudioClip.java
changeset 32865 f9cb6e427f9e
parent 25859 3317bb8137f4
child 37557 00d5cb18c86b
equal deleted inserted replaced
32864:2a338536e642 32865:f9cb6e427f9e
    86      * $$jb: 11.07.99: the engine has a limit of 1M
    86      * $$jb: 11.07.99: the engine has a limit of 1M
    87      * samples to play as a Clip, so compare this number
    87      * samples to play as a Clip, so compare this number
    88      * with the number of samples in the stream.
    88      * with the number of samples in the stream.
    89      *
    89      *
    90      */
    90      */
    91     private final static long CLIP_THRESHOLD = 1048576;
    91     private static final long CLIP_THRESHOLD = 1048576;
    92     //private final static long CLIP_THRESHOLD = 1;
    92     //private final static long CLIP_THRESHOLD = 1;
    93     private final static int STREAM_BUFFER_SIZE = 1024;
    93     private static final int STREAM_BUFFER_SIZE = 1024;
    94 
    94 
    95     public JavaSoundAudioClip(InputStream in) throws IOException {
    95     public JavaSoundAudioClip(InputStream in) throws IOException {
    96         if (DEBUG || Printer.debug)Printer.debug("JavaSoundAudioClip.<init>");
    96         if (DEBUG || Printer.debug)Printer.debug("JavaSoundAudioClip.<init>");
    97 
    97 
    98         BufferedInputStream bis = new BufferedInputStream(in, STREAM_BUFFER_SIZE);
    98         BufferedInputStream bis = new BufferedInputStream(in, STREAM_BUFFER_SIZE);