This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
xuggle atrac3 audio support
#6
(08-18-2010, 07:57 PM)yann Wrote: Note that I'm not playing from xuggler (although their examples do play fine too); the sound is decoded and fed back into PSP memory, so clearly some sound makes it out of the emulator but not all. MediaEngine seems to expect filenames and play on its own, which may not be quite the right timing, and requires somehow acquiring the whole file first. My main problem right now is just that; I have the initial 24K, and don't know how to get the rest. Beyond that, there's the fact that the game won't run, which it did in Windows.

You can easily use the MediaEngine in JPCSP to playback audio data.
You just need something like this in AtracCodec:
Code:
// Initialize the MediaEngine and a new PacketChannel (atChannel in this case).
protected MediaEngine me = new MediaEngine();
protected PacketChannel atChannel = new PacketChannel();

// Under atracSetData and atracAddStreamData:
atChannel.writePacket(address, length);

// Under atracDecodeData:
if(me.getContainer() != null) {
    me.step();
} else {
    me.init(atChannel.getFilePath());
}

// Under atracResetPlayPosition:
me.getContainer().seekKeyFrame(0, 0, 8);

The file handling you see in the PacketChannel is all internal. It creates a temporary file to act as a buffer (this is due to issues with ByteChannel when operating on large data, but the final goal is to get rid of the temporary file).
You can then obtain all the necessary data (sizes, timestamps) from the MediaEngine instance.
Of course that full integration with sceAtrac3plus needs more work around this, especially in terms of data handling. That's why we're still waiting for the ATRAC3+ codec before starting to work on this.
Reply


Messages In This Thread
xuggle atrac3 audio support - by yann - 08-17-2010, 07:47 AM
RE: xuggle atrac3 audio support - by Hykem - 08-17-2010, 01:53 PM
RE: xuggle atrac3 audio support - by yann - 08-17-2010, 07:53 PM
RE: xuggle atrac3 audio support - by Hykem - 08-18-2010, 02:31 PM
RE: xuggle atrac3 audio support - by yann - 08-18-2010, 07:57 PM
RE: xuggle atrac3 audio support - by Hykem - 08-18-2010, 08:14 PM
RE: xuggle atrac3 audio support - by Agent69 - 08-18-2010, 08:39 PM
RE: xuggle atrac3 audio support - by Hykem - 08-23-2010, 08:11 PM
RE: xuggle atrac3 audio support - by yann - 08-24-2010, 12:53 AM
RE: xuggle atrac3 audio support - by Hykem - 08-24-2010, 02:43 PM
RE: xuggle atrac3 audio support - by yann - 08-24-2010, 03:56 PM
RE: xuggle atrac3 audio support - by Hykem - 08-24-2010, 04:10 PM
RE: xuggle atrac3 audio support - by hyakki - 08-24-2010, 05:44 AM
RE: xuggle atrac3 audio support - by Abelus - 10-13-2012, 06:30 PM
RE: xuggle atrac3 audio support - by serio - 10-13-2012, 06:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)