You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed some issues and improved performance of AndroidAudioService (#348)
* Fixed Android volume buttons not working
* Moved native calls to a separate thread to prevent slowing games (same as iOS)
* Added pendingPlay flag to alleviate the Audio flow in extreme situations (same as iOS)
* Increased the global SoundPool maxStreams setting from 5 to 20
* Added skipPause & skipStop flags to prevent an Android issue (pausing or stopping a music before playing it makes it unplayable)
* Updated Gluon copyright and implemented volume keys management
* Updated Gluon copyright
* Removed volume keys management code (now directly managed by Gluon Substrate)
privatebooleanpendingPlay = false; // flag used by play() to alleviate the Audio flow in extreme situations
135
+
privatebooleanskipPause = true; // flag used to skip unnecessary calls to pause(), because calling pause() before play() prevents the music to be played (Android issue)
136
+
privatebooleanskipStop = true; // flag used to skip unnecessary calls to stop(), because calling stop() before play() prevents the music to be played (Android issue)
128
137
129
138
AndroidAudio(intid) {
130
139
this.id = id;
@@ -135,39 +144,53 @@ public void setLooping(boolean looping) {
0 commit comments