Touhou Wiki
Advertisement

How do we use this? Do we save as .php and put it in the th123 directory? TheTrueBlue 08:33, October 25, 2009 (UTC)

Use Brightmoon to extract the file that holds the bgms (the '*b.dat' file), then put thbgmtowav.exe, oggdec.exe and this php script into the same directory, and run it (php th123towav.php). If nothing goes wrong, you should end up with properly labeled wav files that loop twice. The script can be easily adjusted to suit your needs. For example, I added faac m4a coding.
On a relevant note, if there was a tool that didn't suck and was able to parse the extended titles file format, I would just provide a titles file. All this script does is pull out the loop start/length values from the sfl file, craft a makeshift titles file, and feed it to thbgmtowav. Theultramage 08:40, October 25, 2009 (UTC)
Advertisement