This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linear to dB and back



Hi there,

Are there any engineers wanting to share ideas on how to convert linear audio samples to dB value in assembly code.

dBVal = 20 * log(linVal)

Right now I'm programming the AIC3254, but general ideas (like math formulas for numerical methods) are mostly welcome.

Also ideas of the reversed processed are welcome. linVal = 10 ^(dBVal/20)

 

Best regards,

Helge