Android Question Vizualizer - Sample programme RuntimeException on start

PhilipK

Member
Licensed User
Longtime User
Hi B4A

I unzipped and installed the sample application and set running. On clicking the start wav visualisation, it immediately throws an exception when starting the thread.

The screen dump and log window show the error:

Vizualizer Error.jpg

I am struggling to understand why it can't open/use the DrawWav Sub which exists.

Any ideas welcome!

Thanks
 

stevel05

Expert
Licensed User
Longtime User
This is a really old example, which you are running in Obsfuscated Mode. Subnames called via String literals need to be renamed to include an underscore which will stop them being changed.
 
Upvote 0

PhilipK

Member
Licensed User
Longtime User
Hi DonManfred: It is the Vizualizer-Waveform.zip example...yes it is old

Hi Stevel05: Is there a new/better way/example to visualise an audio waveform?
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
No, the working code is still sound, but the use of Threading is not compliant with current promoted practices. It would normally be replaced using a Timer or Loop with appropriate Sleep statements that do not tie up the GUi thread.
 
Upvote 0
Top