|
Hello. Sorry for what could potentially be a newbie question. I'm exporting my java game to a jar, and Slick's AudioLoader doesn't seem to like that. Inside the IDE, everything loads fine, but outside the IDE, audio only refuses to work. I am using the same root folder for the input stream as graphics (which work), the same natives location, the same everything, but it only loads graphics (removing audio from being loaded makes the program launch without audio just fine, with slick-loaded textures!). I've tried directly specifying the natives location in the launch arguments, even. I am using jorbis properly. It just refuses to load audio outside eclipse.
titlemusic=AudioLoader.getAudio("OGG", ResourceLoader.getResourceAsStream("./resources/title.ogg")); ^ the above line crashes my program with no exceptions thrown, but ONLY outside the IDE, and graphics load fine using ResourceLoader. I have tried this with multiple formats and audio files, they all do this.
Any help? Can I use a different method to load my Audio?
|