Processing 3.5.4 (in Android Mode)
Using the official Processing Foundation “sound” library, the sound is lost after screen rotation.
- Could anybody confirm the behaviour:
If the “sound” library is installed, run e.g. the “SineWave” example. (File → Example → Libraries → Sound → Oscillators → SineWave)
It works properly on my android devices, but if the screen is rotated the audio is lost (not recreated).
(Actually the same occurs also for many other examples.)
- How to fix this?
I am aware of the Activity life-cycle basics, and checked that “setup()” is run after the rotation - other variable initializations therein are excecuted properly, it is just the sound that is lost/not recreated…
Fixing the screen orientation is not an option for me (and in fact the same problem appears also in other restart cases…)
Maybe someone has a solution?