Player
Player copied to clipboard
Android - (Un)plugging an audio entry will stop the audio from being rendered and will heavily increase the loading time of audio functions
Player platform:
Android, continuous build of the Player.
Describe the issue in detail and how to reproduce it:
When (un)plugging an audio entry on the Android version of the Player (e.g. an headphone), the game will struggle to keep on with audio files.
- The audio of the game will stop from being played until the next session, and no audio will be played after that (the player will not hear anything, though Control Variables: Set MIDI tick and BGM has completed a loop seem to work normally).
- Each time an audio asset (Music or Sound) is loaded that was not in memory, the game will freeze until the asset is loaded, and the asset loading time will be way longer than usual (can range from seconds to minutes depending on the asset). This freeze will also occur when Control Variables: Set MIDI tick or BGM has completed a loop is used by the game, or when trying to exit the game. It seems that spamming keys can be used to shorten the time of the loading, weirdly.
- The cache to load audio files seems to behave differently when in this situation: a Sound file in a game that is 8MB and that freezes the game for several seconds the first time I'm playing it in a normal session, and then does not cause a freeze when played for some times, but when (un)plugging an headphone for this issue, the Sound seems to be unloaded way more frequently (~after playing 3 other sounds?), often leading to a freeze for some seconds.
Note that the files that were playing while you (un)plugged your audio entry do not matter, playing a mp3, ogg, wav or nothing as a music during this time will not change anything to the result of the issue.