11-04-2012, 07:30 PM
(10-31-2012, 07:00 PM)lazorgunn Wrote: As for the preview music only playing the preview for the first song previewed, I remember Idolm@ster SP having that problem.From what I saw on the forums, this is due to naming system of extracted and decoded .wav files. The thing is, upon selecting a song, Jpcsp extracts and decodes its sound preview and places it under /tmp/gameid/atrac folder with the name of something like Atrac-0004E828-09991E40.wav. We have 2 code chunks here and this is not enough to distinguish extracted files one from another while selecting various songs for preview. When you select another song, Jpcsp tries to extract its sound, but it uses old filename, thus failing to rewrite existing file and playing it instead. I checked it by deleting newly extracted wav and selecting new song - then the new song becomes "default" for all others, unless I delete it too.
The solution, as I see it, would be creating similar software, which would detect song selection change and delete existing .wav to allow Jpcsp to rewrite it with contents of newly selected song preview.