react-native-audio-waveform icon indicating copy to clipboard operation
react-native-audio-waveform copied to clipboard

~1:30 min to extract ~40 audio files on Android

Open dprevost-LMI opened this issue 1 year ago • 4 comments
trafficstars

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

dprevost-LMI avatar Sep 14 '24 17:09 dprevost-LMI