Hi Ivan,
I have been playing around with sdljava and thought about the following
problem: The SDLMixer API allows me to read WAV and MUS files only from
the local filesystem. However a typical Java application loads its
resources from streams or out of a JAR file (using the ClassLoader).
My suggestion is to use the so-called direct buffers from the NIO
package (since 1.4). These are buffers in native memory which can be
shared by Java and SDL. Direct buffers are pretty famous for doing all
kind of native<->Java interaction (e.g. OpenGL bindings use them
extensively) maybe they are of use here, too :)
cu
Robert
Btw: Same kind of problem arises in the SDLImage API.
|