-
I needed a double (0.0-1.0) value of the amplitude of the currently playing audio. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I suggest you to look at this and read the doc of audio_data which is responsible for getting audio data. If you mean to get the current output volume, it is not yet available! |
Beta Was this translation helpful? Give feedback.
-
Yes, using audio_data, you can get the audio data as So the procedure could be to do an average of values from about 20(+256) to about 70(+256) of the list and the result could be used to "bounce" the circle. I just released an audio visualizer package that could inspire you: audio_flux |
Beta Was this translation helpful? Give feedback.
Yes, using audio_data, you can get the audio data as
linear
which gives you aFloat32List
with 256 floats of wave data and the other 256 of FFT data. I think that using the FFT is what you are looking for.So the procedure could be to do an average of values from about 20(+256) to about 70(+256) of the list and the result could be used to "bounce" the circle.
I just released an audio visualizer package that could inspire you: audio_flux