See the attached .WAV file.
When playing this file endlessly in an audio editor (such as Audacity), the clip repeats without any gaps.
When playing in JavaFX as follows:
AudioClip repeatPing = new AudioClip(getClass().getResource("bingbing.wav").toString());
repeatPing.setCycleCount(5); // Or INDEFINITE
There is a large and noticeable gap between every instance of the sound. The exact size of the gap is hard to quantify by ear, but is on the order of tens of milliseconds.
When playing this file endlessly in an audio editor (such as Audacity), the clip repeats without any gaps.
When playing in JavaFX as follows:
AudioClip repeatPing = new AudioClip(getClass().getResource("bingbing.wav").toString());
repeatPing.setCycleCount(5); // Or INDEFINITE
There is a large and noticeable gap between every instance of the sound. The exact size of the gap is hard to quantify by ear, but is on the order of tens of milliseconds.
- is blocked by
-
JDK-8090414 AudioClip needs native implementation
- Open