08-18-2010, 02:31 PM
(08-17-2010, 07:53 PM)yann Wrote: It uses sceAtrac3plus functions, but only uncompressed or ATRAC3 audio. Enabling the Media Engine option appears not to affect it at all, other than making the emulator fail if it doesn't find xuggle.
Sorry, I meant you can use the code in MediaEngine.java. You can easily rewrite the AtracCodec to work with the MediaEngine instead of creating a new separate Xuggler instance.
(08-17-2010, 07:53 PM)yann Wrote: Specifically, it plays two streams (music and speech), and uses sceAtracSetHalfwayBuffer to set the music one up as well as sceAtracSetLoopNum to loop it. It doesn't seem to want to use sceAtracAddStreamData, and the HalfwayBuffer is 64KiB although the initial data is 24KiB, so I'm guessing there's some implicitly synchronized double buffering that needs to be done right.
Ah, I see.
(08-17-2010, 07:53 PM)yann Wrote: Also, in my initial tests on a Windows machine, sound effects played just fine; on my Linux/amd64 machine, they don't seem to play at all, and I can't start the game from the first menu. Sound itself does work, considering that my patched AtracCodec.java makes the music play.
There seems to be a random issue with sound in 64-bit machines, but the problem resides in the native Java sound library, so, the sound from Xuggler should work just fine.