New here

I'm trying to correct the mixing music sound on sega rally 2
May be I'm wrong...and I Hope I'm not broken anything else with this little modification of the source code
I based myself on the findings of MDashK
https://www.supermodel3.com/Forum/viewtopic.php?f=2&t=1164#p8382
So I'm logging CDSB2 state and I've compared with different settings in game (eur/jap and intro game/riviera stage)
The key was to detect correct state that indicates what we want
normal stereo (intro jap) or mono channel0 (intro eur) or mono channel1 (riviera stage) and after, set the right volume to the right channels
With Eur/intro sound: (music mixed) we've got
st_gotB0 = 4f (volume left)
st_gotA0 = 4f (channel 0)
st_gotB4 = 4f
st_gotA4 = 4f
With Eur/rivera stage: (no music)
st_gotB1 = 4f (channel 1)
st_gotA1 = 4f (volume right)
st_gotB5 = 4f
st_gotA5 = 4f
With Jap/intro sound: (music OK)
st_gotB0 = 4f (volume left)
st_gotA1 = 4f (volume right)
With Jap/riviera stage: (no music)
st_gotB1 = 4f (channel 1)
st_gotA1 = 4f (volume right)
st_gotB5 = 4f
st_gotA5 = 4f
I just modified a little bit 2 fonctions in dsb.cpp
CDSB2::WriteMPEGFIFO and CDSB2::RunFrame
and add a single variable in the CDSB2 class (dsb.h)
https://www.dropbox.com/s/u5izmzipjn5nh6v/dsb-mod.rar?dl=0
and the compiled exe x64
https://www.dropbox.com/s/r7gzkfo9wngfsjn/test-r500.rar?dl=0
x32 test version
https://www.dropbox.com/s/e73lhxhr8mj688o/test32-r500.rar?dl=0
++
edit : add link for test x32 and all files have been modifed with new version <- you need to redownload (27/11/2016 8h00 gmt+1)
Final edit : Since links are down, I repost sr2 patch and vf3 patch (09-04-2017)
sr2 music patch:
https://yadi.sk/d/imDUntEt3GQfCz
vf3 2players cave stage sound patch (off topic but also a sound patch):
https://yadi.sk/d/le_cI5103GQfFN