0
0

How I can transform volume in db to fmod’s volume?
I can’t find any function in your api to do this.

  • You must to post comments
0
0

You can try to use that function… You can pass in a float value from 0 to 1 to sample2dB, it will return dB values from -inf to 0 dB.

[code:moqcw950]
float sample2dB(float sample)
{
return 20 * log10(sample);
}
[/code:moqcw950]

  • You must to post comments
0
0

Oups… I guess you were looking for that function… you should pass values from -inf to 0.

[code:2pbfjzw0]
float dB2Sample(float dB)
{
return pow(10.0f, dB/20.f);
}
[/code:2pbfjzw0]

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.