LWJGL Forum

Programming => OpenAL => Topic started by: dangerdoc on February 11, 2012, 19:26:42

Title: Probelem with using .ogg files for sound streaming
Post by: dangerdoc on February 11, 2012, 19:26:42
The sound will not play. Here is my code:

Audio oggStream;
        try {
            oggStream = AudioLoader.getStreamingAudio("OGG", ResourceLoader.getResource("engulfing_shadows.ogg"));
            oggStream.playAsMusic(1.0f, 1.0f, true);
        } catch (IOException ex) {
            Logger.getLogger(start.class.getName()).log(Level.SEVERE, null, ex);
        }


I have proper imports, and I am using Netbeans. I included jorbis.jar, as well as jogg.jar. This code is not in the lwjgl class, it is initialized before the display, and I can't even get that to work (http://lwjgl.org/forum/index.php/topic,4433.msg23879.html#msg23879). Is there an error in my code?

Thank you in advance.

dangerdoc