Hi Dave,
I actually wrote the ViviaAudio plugin myself. I created it specifically for this project to get the FFT, RMS and Peak data from the audio being played by DroidScript’s MediaPlayer.
I also noticed a significant performance improvement after setting:
app.SetDebug(false)
It made a surprisingly noticeable difference, especially when the application is doing continuous audio processing and UI updates.
There is another issue I’ve been investigating. When using Web Audio for some of the audio-related processing, I sometimes get small audio glitches in the background, such as slight stuttering, clicks, or hiss. It seems to become more noticeable when the application is doing other work at the same time.
Do you think running the relevant audio processing through a foreground service would help with this kind of problem on Android? Or would you recommend handling it differently in DroidScript?
I’m trying to keep the audio processing stable while the HTML/JavaScript interface continues to handle the UI and real-time visualizations.
Thanks!