I'm unable to play the alert sound. After modified with the code below, it is working fine now.
InputStream audioSrc = Utils.class.getResourceAsStream("/sounds/doorbell.wav");
InputStream bufferedIn = new java.io.BufferedInputStream(audioSrc);
AudioInputStream inputStream = AudioSystem.getAudioInputStream(bufferedIn);
I guess you are trying to compile JStock from source.
1) Does official deployment release JStock's alert sound work well?
2) If you are compiling from source, make sure your sound resource is in correct directory.
The problem exists in deployment release, that's why I tried to download and compile from source.
May I know what OS and what version of Java you are running on? As I can't produce the same problem.
Opps. I should have paid more attention to this thread, as it is the key to solve mystery sound alert bug. Thanks anyway.