06-17-2010, 05:54 AM
I wanted everything at once
Picked up the wav ripper, looked into the hex editor, and did two things:
1) stupid hack
2) make crappy tool(google copy-paste way) for renaming files and generate commant.txt
Then using this on Disgaea Aod ULUS10308 and .... 8798 wav's, 6.44gb raw pcm data. Two hours testing: playable with all sounds
jpcsp_rename.7z (Size: 164.11 KB / Downloads: 266)
Picked up the wav ripper, looked into the hex editor, and did two things:
1) stupid hack
Code:
//AtracCodec.java
//-----------------------------------------------------------------------------------------------------------------------------------
protected String generateID(int address, int length, int fileSize) {
int hashCode1 = Hash.getHashCodeFloatingMemory(0, address+60, 1);
int hashCode2 = Hash.getHashCodeFloatingMemory(0, address+444, 1);
int hashCode3 = Hash.getHashCodeFloatingMemory(0, address+2000, 1);
String tmpstring;
tmpstring = String.format("Atrac-%8dx%8dx%8d", hashCode1,hashCode2,hashCode3);
return tmpstring.replace(" ","");
}
// Hash.java
//-----------------------------------------------------------------------------------------------------------------------------------
public static int getHashCodeFloatingMemory(int hashCode, int addr, int lengthInBytes) {
IMemoryReader memoryReader = MemoryReader.getMemoryReader(addr, lengthInBytes, 4);
hashCode = memoryReader.readNext();
return hashCode;
}
Then using this on Disgaea Aod ULUS10308 and .... 8798 wav's, 6.44gb raw pcm data. Two hours testing: playable with all sounds
jpcsp_rename.7z (Size: 164.11 KB / Downloads: 266)