When playing my mp3 audio with pgSoundLoader I am noticing intermittent stutters, where every so often a clip begins to play and then immediately starts over. I can't find a pattern related to the size of the audio file or any other aspect of it. My only clue so far is that this seems to happen more where the internet connection is not as good. A varying connection quality could explain the intermittent aspect of this behavior, but I'm at a loss as to determining a root cause and more importantly, how to guard against it.
One thought I had is that something might be going on with the caching. Or maybe there is some kind of race condition that only becomes apparent with a slow connection. I even have a superstitious reason because the most recent batch of sound has an underlying sample rate of 48 instead of 44.1.
Anyway, my question would be: Are there some "best practices" I can follow with regard to playing audio? I thought my usage was pretty simple but maybe I've just been lucky these past several years. Also, is there any way to get some logging as to what is happening within the player? The worst behavior is being observed on a Chromebook with its native browser.
Thanks in advance for any suggestions. ~Andy