massoudss/waveformSeekBar

When wave is creating it is taking too much time

Karikw3 opened this issue · 4 comments

When wave is creating it is taking too much time as i am using song which is of not more size .
If you can tell me about this .please let me know

#You need to cache the Wave's and next time, instead of passing the song as argument, you pass the cached result.

waveformSeekBar.setSample(sample data Int array);

@xeinebiu here i have to use a song link which is coming from server in format of mp3.

@xeinebiu here i have to use a song link which is coming from server in format of mp3.

I dont think that really matters where you get the Song from. But lets follow an online song example.

  1. Get the song Url
  2. Based on the url, check if you have any wave data calculated before. If no, follow step 3. If yes, follow step 5.
  3. Calculate Wave Data
  4. Save the result locally.
  5. Display the result.

@xeinebiu @massoudss
Ohh ...
Thank you so much for this ....
But can you have a code example for this where i can check this it will be a great help for me as i am searching this solution from 2 months .
Basically how can i calculate wave data ?