Instead of generating "magic numbers" with every change to the audio settings this calculates the numbers for me. Variables include floor and ceiling values and number of steps.
This probably requires minor editing - I'm unaccustomed to working with float.
I think the table building should be moved to audio_init so that its only done one time.
Also, this will need to be rebased on latest master since it has breaking changes.
Instead of generating "magic numbers" with every change to the audio settings this calculates the numbers for me. Variables include floor and ceiling values and number of steps.
This probably requires minor editing - I'm unaccustomed to working with float.