Hello Guest

Probelem with using .ogg files for sound streaming

  • 0 Replies

Offline dangerdoc

  • **
  • 75
  • Thats right... Nikola Tesla
Probelem with using .ogg files for sound streaming
« on: February 11, 2012, 19:26:42 »
The sound will not play. Here is my code:

Code: [Select]
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.