WaveFormViewDemo
WaveFormViewDemo copied to clipboard
OutOfMemoryException when processing lengthy music file
I'm getting OOME when processing music over 5 or 6 minutes. It seems the library is loading the full length of the decoded PCM data into memory before processing resulting in memory issues.
Three years ago, I implemented this library in a very inefficient way. Need to improve.
Hi @SIY1121 , thanks for sharing! Do you have any advice on improving the performance for generating the wave data?
@chinalwb
I'm not sure but using MediaCodec via NDK might improve performance. https://developer.android.com/ndk/reference/group/media
Cool! Thanks @SIY1121 !