Hi,
Sorry, but we need to use "linear2db" locally. Can someone provide a formula to convert? Thanks!
Jesse
Here you go:
Some background: https://en.wikipedia.org/wiki/Decibel
And an example for a converting log10, which is really very basic: https://www.onesdr.com/linear-to-db-calculator/
It may be a base 3 logarithm in your case, or something else, I don't know. You should verify if you can find the time.
Pixophir (how do I do subscript in here?)
https://www.w3schools.io/file/markdown-super-sub-script/
Sadly flarum unlike previous forum software, doesn't support html tags: 3 power of 2=3<sup>2</sup>=9
Flarums implementation is not extended markdown php markdown extra.
^2^ works for superscript tho:mc2 and H~2~O for subscript: H2O https://www.markdownguide.org/extended-syntax/
^2^
H~2~O
We have below code now: (it shows no errors and when game is run we do hear audio playing)
func ConvertLinearToDB(volume): var returnValue = log(volume) * 8.6858896380650365530225783783321 return(returnValue)