Re: [sdljava-users] feature request: better Java integration
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan Z. G. <iva...@ya...> - 2004-12-30 20:53:40
|
Robert, Thanks for the feedback. This is a really good point! I agree that this type of change should be made and that the NIO package should be used. I will add it to the list of whats going to be done. -Ivan/ Robert Schuster wrote: > 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. > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |