I am using a modified version of the demo from steveIO5 to show the waveform of a playing mp3. I cannot get the canvas to clear, the waveform is always drawn on top of the old one. What am I doing wrong. Included is the full code without the mp3 file (added in line 37).
The code is for B4A 3.80 and using Media Player
I think it is probably something simple but its driving me crazy!
ok. How to destroy it. Just to see, I moved the "Viz.DrawWaveFormStart" into the Wave_Capture sub. No go! The wave does not scroll and the mp3 breaks apart!
Great, this is going to take some time to digest. Great work! I will try to include the WaveDraw class into my app AND get the gradient to work. If I get it to work, I will post it here to finish this thread.
Steve, its working! (Jumping for joy). The touch to end the app gives an error but the gradient works thanks to you. Now I just need a few more panels with different displays, FFT etc.