Could not play alert sound

Developers
2012-02-03
2013-03-13
  • Chooi Kah Wai

    Chooi Kah Wai - 2012-02-03

    I'm unable to play the alert sound. After modified with the code below, it is working fine now.

    Package: org.yccheok.jstock.gui
    File: Utils.java
    Line: 1921

    InputStream audioSrc = Utils.class.getResourceAsStream("/sounds/doorbell.wav");
    InputStream bufferedIn = new java.io.BufferedInputStream(audioSrc);
    AudioInputStream inputStream = AudioSystem.getAudioInputStream(bufferedIn);

     
  • yccheok

    yccheok - 2012-02-07

    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.

     
  • Chooi Kah Wai

    Chooi Kah Wai - 2012-02-08

    The problem exists in deployment release, that's why I tried to download and compile from source.

     
  • yccheok

    yccheok - 2012-02-08

    May I know what OS and what version of Java you are running on? As I can't produce the same problem.

     
  • yccheok

    yccheok - 2012-09-04

    Opps. I should have paid more attention to this thread, as it is the key to solve mystery sound alert bug. Thanks anyway.