Problem Description
So I've lately been encountering issues with audio. Especially on mobile. I'm making a music game, so it's quite devestating to find that the audio clarity and playback speed gets gradually lowered the longer the playsession. This happens on all devices, and all platforms. At first I thought maybe it's inconsistent internet, but I find this happening even on exported NWjs/Cordova projects. I also did tests to ensure that it's not just the fact I'm switching songs around too rapidly causing the issue. This always eventually happens, even if you just play one track, and wait for minutes at a time before changing. I find it seems directly related to amount of times tracks are changed, and processing power.
This becomes apparent way faster on mobile over PC. On my S7 this becomes a problem already after maybe 20 seconds of tapping. After about 1 minute the music's inaudable. On a beast of a desktop I have to hold in the mouse for maybe up to 2-5 minutes to recreate the issue. Considering I'm targeting mobile though... This is a bug so severe I have to cancel the game if it can't be fixed. <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">
Attach a Capx
https://drive.google.com/file/d/0B1n4Fd ... sp=sharing
Description of Capx
Includes 4 tracks that gets unloaded, stopped and played at random when in touch every 0.05 seconds. Changing it to 0.1, 0.2, 1, 2 will trigger the same results just take longer.
Steps to Reproduce Bug
- Preview on device and browser of choice
- Hold in touch/left mouse button on given device
- Notice the audio becoming more jaggy and inaudable as it goes on. Keep doing this long enough and it should turn into nightmare fuel.
Observed Result
Audio quality and playback speed gets gradually reduced. Almost as if the unloading or stopping of music doesn't work
Expected Result
It should be clean audio till the end of time. The player shouldn't have to reboot the game every 15 minute to enjoy my game.
Affected Browsers
- Chrome: (YES)
- FireFox: (YES)
- Internet Explorer: (Inconclusive. Audio playback takes so long to start that it would take ages to test on my beefy computer. Sorry...)
Operating System and Service Pack
Win 7 SP1
Construct 2 Version ID
247