equal
deleted
inserted
replaced
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); |