Embedding VU meter in iphone

I am developing an iPhone application that records audio and saves this audio file. I need to create a user interface similar to the interface in the Voice Memo app with a VU meter. I have implemented code for recording sound, but I have no idea about the implementation of the VU meter. Waiting for an answer. Thanks in advance.

+3
source share
2 answers

The VU counter only shows the short-term amplitude of the signal in a logarithmic scale (dB). You need to continuously measure the amplitude (RMS) of the signal for a short period of time (for example, 10 ms), and then convert the RMS value to dB and update the counter display.

RMS_signal (V) = sqrt(sum(x^2) / N)

N - (, N = 441 10 44,1 )

Magnitude (dB) = 20.0 * log10(RMS_signal) + K

K - ( ).

, . . fooobar.com/questions/641005/....

+5

OpenGL gl-data-visualization-view -. GLDataVisualizationView, .

+4

Source: https://habr.com/ru/post/1741732/


All Articles