Probelem with using .ogg files for sound streaming

Started by dangerdoc, February 11, 2012, 19:26:42

Previous topic - Next topic

dangerdoc

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. Is there an error in my code?

Thank you in advance.

dangerdoc
“We build but to tear down. Most of our work and resource is squandered. Our onward march is marked by devastation. Everywhere there is an appalling loss of time, effort and life. A cheerless view, but true.” - Nikola Tesla