Tone.js
Tone.js copied to clipboard
GrainPlayer crackling cutting after a few minutes of looping
First of all, thanks for the wonderful library. I was able to create a loop player app with ionic and everything worked fine until I deployed the app to a real ios device. While testing my app I noticed crackling and cutting of audio (mp3) after playing for about 9-10 minutes non-stop. I tried many remedies that I thought could be the cause, changing sample rates , bit rates, to file formats but the issue still remains. I also created a bare bone vanilla javascript page to rule out errors within ionic framework. You can test the issue here http://shopsydashboard.shopsy.dk/tone/ If you let it play on an iPhone for about 10 minutes, you will notice the crackling, cutting.
Hope someone has an idea for a solution.
Thank you.
I've noticed some 'cutting' problems in Safari as well (I'm only using a Tone Sampler)
Could it be that iOS/ safari doesn't really support the 'two clocks' philosophy an eventually go out of sync?
The issue is not only confined to iOS/safari. I tested with Chrome on iOS and the result is the exact same crackling, cutting. I am gonna do the same tests on Android and see what it results in.
Chrome and Safari on iOS under the hood use the same browser, so i'd expect any issues on iOS Safari to be the same on iOS Chrome.