react-native-audio-waveform
react-native-audio-waveform copied to clipboard
~1:30 min to extract ~40 audio files on Android
I used your example app to display 37 audio files, and it took around 1:30 minutes to show them all (See the video below). What also bugged me is that the more you add, the more time it takes them to show a single one. I would have expected some to show while the other continued being extracted.
I'm trying to wrap the createOrUpdateExtractor with a Queue to control better the number of files being extracted at once. This way, I expect the UI to be more responsive and provide faster audio with the waveform extracted. Would that be a good approach? Or are there ways to review the extraction mechanism so it can process the waveform faster?
This PR contains the reproducible case of the video below
https://github.com/user-attachments/assets/964fd1b6-6b4f-45fc-87eb-e69689d06c86