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:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Batch audio dumping
#11
The real file length can be found in the file itself: take the value of offset 4 and add 8 to the value
Code:
    // RIFF file format:
            // Offset 0: 'RIFF'
            // Offset 4: file length - 8
            // Offset 8: 'WAVE'
            inputFileSize = mem.read32(inputBufferAddr + 4) + 8;
Does this value differ from the file length generated by the extract tool? I'm wondering how compressed audio data can generate so many file with the same length. They are probably padded at the end.

BTW, Jpcsp was already computing some kind of CRC (AtracCode.java, line 62: Hash.getHashCodeFloatingMemory(0, address, length)) but this is based on the length passed to the sceAtracSetData() call. This length can be shorter than the real file length: the file is sent in small parts/chunks by the application. Also, the length used can differ from application to application and is not fixed. I don't know which length is the minimum length required by the PSP.
So you cannot be sure which length has to be used while computing the CRC outside of Jpcsp...
Reply


Messages In This Thread
Batch audio dumping - by Agent69 - 06-17-2010, 05:54 AM
RE: Batch audio dumping - by corvenik - 06-18-2010, 11:33 AM
RE: Batch audio dumping - by Agent69 - 06-18-2010, 06:55 PM
RE: Batch audio dumping - by corvenik - 06-19-2010, 01:22 PM
RE: Batch audio dumping - by Agent69 - 06-20-2010, 03:02 AM
RE: Batch audio dumping - by corvenik - 06-20-2010, 09:22 AM
RE: Batch audio dumping - by Agent69 - 06-20-2010, 09:29 PM
RE: Batch audio dumping - by gid15 - 07-17-2010, 03:07 PM
RE: Batch audio dumping - by hyakki - 07-17-2010, 07:50 PM
RE: Batch audio dumping - by Agent69 - 07-17-2010, 07:05 PM
RE: Batch audio dumping - by gid15 - 07-17-2010, 09:12 PM
RE: Batch audio dumping - by hyakki - 07-17-2010, 10:02 PM
RE: Batch audio dumping - by Agent69 - 07-18-2010, 05:47 AM
RE: Batch audio dumping - by gid15 - 07-18-2010, 06:43 AM
RE: Batch audio dumping - by Agent69 - 07-18-2010, 07:11 AM
RE: Batch audio dumping - by gid15 - 07-18-2010, 07:21 AM
RE: Batch audio dumping - by hyakki - 07-18-2010, 08:20 AM
RE: Batch audio dumping - by gid15 - 07-18-2010, 10:06 AM
RE: Batch audio dumping - by hyakki - 07-18-2010, 11:45 AM
RE: Batch audio dumping - by Agent69 - 07-18-2010, 03:16 PM
RE: Batch audio dumping - by Orphis - 07-18-2010, 10:34 AM
RE: Batch audio dumping - by hyakki - 07-18-2010, 09:49 PM
RE: Batch audio dumping - by DRKSCE - 09-11-2010, 10:09 PM
RE: Batch audio dumping - by nsinger998 - 02-22-2011, 03:11 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)