The current problem that I am encountering is loading files in JWS with the sound3d package. Is there an easy way of doing this? Or do I need to ditch the sound3d package and use the underlying packages (this is not preferable).
I found how to load files using the joal native packages and the code below shows this.
SingleStaticSource.class.getClassLoader().getResourceAsStream("demos/data/FancyPants.wav")
The problem with my code is that I’m using the net.java.games.sound3d package. The only option I have for loading a buffer is to provide a String shown below.
Buffer loadBuffer(String filename)
When this method is used while deployed in JWS, the file is unable to load (even if you call getResouce and convert the URL into a String).
If there isn’t a way to load sound files with sound3d and jws, then how difficult would it be for someone to add this? Could I checkout the source and attempt this - or is the learning curve on working with this code too great to make it worth my time?
Thanks