USF sample dumper- in_usfdump by coda at 5:13 PM EDT on April 4, 2011
hi guys, i really wanted some goemon 64 samples so today i downloaded the source to 64th note and made this thing: http://dl.dropbox.com/u/2494245/in_usfdump.zip
it "rips" samples from usfs while playing them in the dumbest way possible- a hook in the RESAMPLE() function of audio ucode1 that saves the output to a wav file. sounds like this: http://dl.dropbox.com/u/2494245/yamatolead.wav.mp3
of course this gets around the issues srip has with certain uncooperative games.
files are dumped into c:/usfdump/, named by their address (i think). better clear it out after ripping each song or everything will get mixed up.
Since your method of enabling Audio HLE crashes here in the GUI...... I am thinking just taking the 64th Note source, neutering it down as much as I can to a bare minimum for emulation, write up a harness to just load that DLL, and then do the dumping that way.
Of course, you will be credited for the initial idea.
my code has nothing to do with the config GUI nor contains a method of enabling Audio HLE, but you can enable HLE via the ini directly if the GUI doesn't work, as seems to occur in winamp plugin wrappers like xmplay.
Which I did in the end. Was using XMPlay. Fucked up.
Now using this method of:
A) A UTTERLY BUTCHERED USF build so nothing remains except R4300i core emulation and audio hle. LLE RSP was completely removed. B) A app to call said functions and dump.
while ripping the mystical ninja samples lunar discovered that there is some rather harsh aliasing going on which was remedied by resampling the output down to 32khz (could probably also be fixed with a steep lowpass filter.) as far as i can tell, this is simply a fact of life due to the HLE resampling method which uses nearest neighbor interpolation. i would have liked to grab the sample data PRIOR to resampling, but couldn't manage. any insight into the ucode or relevant hardware would be appreciated.
Nice idea by Yoshinkeru at 1:51 PM EDT on April 8, 2011
I've been looking for something like this for a while myself. Good thinking. But I can't get it to work for me...
Coda, I tried your plugin, and XMPlay crashed for me too when I tried to enable Audio HLE in the GUI. I then did as you suggested and turned it on in the .ini file. But it just plays the file normally, and no ripping occurs. Am I doing something wrong?
Mudlord, I tried your program as well, but it only rips sounds from certain miniusfs, and yet the WAVs won't play anyway; it just cranks out 1 KB files which don't work. What's going on?
Just to let you guys know I just figured out the .ctl and .tbl files for Mystical Ninja. You can rip it with SRIP.EXE with this: /c 0x07EC20 /t 0x0973C0
For Goemon's Great Adventure just input this into SRIP.exe /c 0x03F910 /t 0x060890
Assuming your extracting from the USA versions, this method will work.
If anyone makes a soundfont do let me know as I am interested.