All the processing of reading the audio-file & generating the waveform occurs on the main thread which locks up the UI when giving the view a large file.
Everything should occur off the main thread (rendering waveform + reading assets) with occasional refreshes of updates as more of the waveform is processed.
All the processing of reading the audio-file & generating the waveform occurs on the main thread which locks up the UI when giving the view a large file.
Everything should occur off the main thread (rendering waveform + reading assets) with occasional refreshes of updates as more of the waveform is processed.