{"action":"created","issue":{"url":"https://api.github.com/repos/nehz/ngWebAudio/issues/2","labels_url":"https://api.github.com/repos/nehz/ngWebAudio/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/nehz/ngWebAudio/issues/2/comments","events_url":"https://api.github.com/repos/nehz/ngWebAudio/issues/2/events","html_url":"https://github.com/nehz/ngWebAudio/issues/2","id":129183144,"number":2,"title":"iOS 9.2 creates audio issue","user":{"login":"TheDucc","id":7594506,"avatar_url":"https://avatars.githubusercontent.com/u/7594506?v=3","gravatar_id":"","url":"https://api.github.com/users/TheDucc","html_url":"https://github.com/TheDucc","followers_url":"https://api.github.com/users/TheDucc/followers","following_url":"https://api.github.com/users/TheDucc/following{/other_user}","gists_url":"https://api.github.com/users/TheDucc/gists{/gist_id}","starred_url":"https://api.github.com/users/TheDucc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheDucc/subscriptions","organizations_url":"https://api.github.com/users/TheDucc/orgs","repos_url":"https://api.github.com/users/TheDucc/repos","events_url":"https://api.github.com/users/TheDucc/events{/privacy}","received_events_url":"https://api.github.com/users/TheDucc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-27T15:50:36Z","updated_at":"2016-01-27T23:06:20Z","closed_at":null,"body":"After the release of iOS 9.2 the web audio frame work has a bug on this platform related to the sample rate being set incorrectly when the buffer is created.  For more information see this post:\r\n     http://www.html5gamedevs.com/topic/17326-ios-9-webaudio-issues/\r\n\r\nThe symptoms are audio playing to slow, or distorted because the sample rate is set to 48000 by default in iOS.\r\n\r\nWhen you create the buffer you need to be able to set the default sample rate with creteBuffer.  Something like this:\r\n```javascript\r\n  var buffer = g_WebAudioContext.createBuffer(1, 1, 44100);\r\n  var source = g_WebAudioContext.createBufferSource();\r\n  source.buffer = buffer; \r\n```\r\nSo, could we talk about a patch too pass in the sample rate when you are creating the buffer in the options?"},"comment":{"url":"https://api.github.com/repos/nehz/ngWebAudio/issues/comments/175904459","html_url":"https://github.com/nehz/ngWebAudio/issues/2#issuecomment-175904459","issue_url":"https://api.github.com/repos/nehz/ngWebAudio/issues/2","id":175904459,"user":{"login":"nehz","id":151358,"avatar_url":"https://avatars.githubusercontent.com/u/151358?v=3","gravatar_id":"","url":"https://api.github.com/users/nehz","html_url":"https://github.com/nehz","followers_url":"https://api.github.com/users/nehz/followers","following_url":"https://api.github.com/users/nehz/following{/other_user}","gists_url":"https://api.github.com/users/nehz/gists{/gist_id}","starred_url":"https://api.github.com/users/nehz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nehz/subscriptions","organizations_url":"https://api.github.com/users/nehz/orgs","repos_url":"https://api.github.com/users/nehz/repos","events_url":"https://api.github.com/users/nehz/events{/privacy}","received_events_url":"https://api.github.com/users/nehz/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T23:06:20Z","updated_at":"2016-01-27T23:06:20Z","body":"Thanks, i'll have a look at it"}}