ioscore-audiodecibel

ios audio unit how to get decibel directly


How can I get decibel by audio unit directly rather than calculate use formula ?

I found occur error when I use formula to get decibel. So I want to exchange method get decibel.


Solution

  • The question is that I find audio unit data become abnormal from the data[512](the data size is 1024). So I don't handle these data and find the audio unit can work abnormality. Because we only use the data to calculate db.