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
Decoding Problem with hle.sceAtrac3plus
#2
Would it help to change the function getRemainFrames in sceAtrac3plus to the following:
Code:
protected int getRemainFrames(AtracID id, int samples) {
        int remainFrames = id.getRemainFrames();

        if (!id.getInputBuffer().isFileEnd()) {
            if (remainFrames > 0 && samples < id.getMaxSamples()) {
                // If we could not decode all the requested samples, request more data
                id.getInputBuffer().notifyReadAll();
                remainFrames = 0;
            } else if (id.getAtracCodec().getChannelLength() < 32768 && id.getAtracCurrentSample() > 0) {
                // The media engine is reading chunks of 32768 bytes from the channel.
                // If the channel contains less than one chunk, request more data,
                // but only after the first call to sceAtracDecode().
                id.getInputBuffer().notifyReadAll();
                remainFrames = 0;
            } else if (id.getAtracCodec().getChannelLength() <= 0) {
                // If the channel is empty, request more data.
                id.getInputBuffer().notifyReadAll();
                remainFrames = 0;
            }
        }

        return remainFrames;
    }
Thank you for your analysis and research Smile
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply


Messages In This Thread
RE: Decoding Problem with hle.sceAtrac3plus - by gid15 - 05-02-2013, 07:03 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)