krogenth / G2DataGUI

A tool for modifying the Anniversary/HD Remaster of Grandia 2.
MIT License
4 stars 5 forks source link

Add sound file handling #43

Open krogenth opened 1 year ago

krogenth commented 1 year ago

Currently, there is little known in regards to how audio is actually handled within the game. This includes how audio looping is handled(the game uses OGG files, but the files do not appear to specify the looping as one would expect), and how music/sound selection is actually handled(how does the game determine what to play and when?).

A possible lead on the audio loading/looping would be the content/data/sound/sound_indices.csv file, which appears to list all audio files, along with an index, and some other data.

As such, there will be several tasks:

krogenth commented 1 year ago

Doing a small bit of digging, there appears to be some set definitions for what event causes a track to stop playing(i.e. - entering battle, map transition, etc.). While I haven't dug into what means what yet, the data is found in the content/data/sound/sound_indices.csv file. It will be on the of the two middle integer values for each track(or possibly both, unsure yet).