ValleyBell wrote:
The sample rate is hardcoded into the sequence data for the sound driver, so there is no general value.
The SegaPCM chip outputs a sample rate of 31250 Hz.
It has an 8-bit "sample delta" register (256 steps, values from 0 to 255) for controlling the pitch of the sample playing on a channel. Its value specifies the fraction of the chip's sample rate the sample plays with.
Thus, you can calculate the rate the samples plays at with this formula: 31250 Hz * ([value of sample delta register] / 256)
i.e. if the register is set to 0x80 (hexadecimal for 128), then you get: 31250 Hz * (128 / 256) = 15625 Hz
In order to figure out what values the games use for the register, you could use vgm2txt on a some VGMs that use the SegaPCM chip.
Searching for "Sample Delta Time" in the text file should make you able to find the respective values.
While testing which point can be the sweet spot as of now?