0
0

Dear Fmodders,

I’m using the fmodex with a game making engine: RPG Maker. Amongst other things, it uses SetVolume and GetVolume to, well, set the volume of a track being played. However, the volume is logarithmic. So whereas in the engine I set audio from 0.0 to 1.0, it does not correspond to the same volume that is actually being played. Volume 0.5 – 1.0 has hardly any difference, but with 0.0-0.5 the difference is huge.

I tried to open the *.dll and look at the logarithm so that I can edit the engine’s volume input, but couldn’t. Basically, I’m trying to make the volume linear. If I put a volume of 0.3, I don’t want the actual volume to be like 50-70%, but actually 30%.

Right now it’s (very rough estimations)…
Engine Volume > Actual Volume
0.0 > 0%
0.1 > 20%
0.3 > 50%
0.5 > 75%
0.8 > 90%
1.0 > 100%

But I need…
Engine Volume > Actual Volume
0.0 > 0%
0.3 > 30%
0.8 > 80%
1.0 > 100%

So I guess I have to throw the engine volume into a formula that will change it in such a way that it corresponds to the correct % volume? Like, engine volume 0.3 > formula > 0.2 > actual volume 30%. You know~. ^^

Can anyone please help? :)

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.