Possible IOS 9 audio fix for slow audio#8
Possible IOS 9 audio fix for slow audio#8chrisschaub wants to merge 1 commit intonehz:masterfrom chrisschaub:master
Conversation
|
Curious, why offlineAudioContext ? |
|
Well, it was the only way I could set the rate to 44100, other attempts On Tue, Feb 9, 2016 at 8:35 PM, Zhen Wang notifications@github.com wrote:
Christopher Schaub |
|
The number was set, but you have to set it "before" decodeAudioData is run, On Tue, Feb 9, 2016 at 8:50 PM, Christopher Schaub chris@schaub.com wrote:
Christopher Schaub |
|
Right. That's weird ... not sure how Apple is messing it up as the offline buffer isn't even rendered yet (https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext), but somehow just initializing an offline buffer fixes the audio context? |
|
Also was there a reason for choosing 2 audio channels for the offline buffer? (Trying to reverse engineer why it works) |
|
I'm actually testing touchend with this https://github.com/Jam3/ios-safe-audio-context/blob/master/index.js instead. More soon. On Tue, Feb 9, 2016 at 9:42 PM, Zhen Wang notifications@github.com wrote:
Christopher Schaub |
|
What's the easiest way to disable webaudio and just fall back to html5 On Tue, Feb 9, 2016 at 9:43 PM, Christopher Schaub chris@schaub.com wrote:
Christopher Schaub |
|
Yeah I agree, can't duplicate issue on my actual iPad either. But I'll probably push an update that allows this via a flag |
Possible fix for ios 9 slow / distorted audio.