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
Unfortunately I don't own a device in which this happens, but I have been reported that on LG devices (LG Power Android 5.0, LG nexus 5) the music doesn't loop. (On PC, and my 4.4 and 4.1.2 devices works as expected)
The code for looping music is right from the wiki: FlxG.playMusic(Music, 1f, true, true), and the files are .ogg.
Someone else got this issue?
I would manually restart the audio track, but how do I check if the music has stopped?
The text was updated successfully, but these errors were encountered:
Load the music via FlxSound yourMusic = FlxG.loadSound() and be sure to set the type to MUSIC and set the loop on false.
yourMusic.active tells you whether the music is playing or not.
Thanks! I'm making a test app with what you suggested to see if I can get someone with an LG device to test.
I'll report the results hopefully in a few days.
Well... I couldn't get anyone to test it. But I tested stopping the audio on purpose and adding a check for FlxG.music.active == null on my update() method, and if the active is null, I call to FlxG.playMusic again. That seems to work fine.
Unfortunately I don't own a device in which this happens, but I have been reported that on LG devices (LG Power Android 5.0, LG nexus 5) the music doesn't loop. (On PC, and my 4.4 and 4.1.2 devices works as expected)
The code for looping music is right from the wiki: FlxG.playMusic(Music, 1f, true, true), and the files are .ogg.
Someone else got this issue?
I would manually restart the audio track, but how do I check if the music has stopped?
The text was updated successfully, but these errors were encountered: