{"action":"created","issue":{"url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/318","labels_url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/318/comments","events_url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/318/events","html_url":"https://github.com/WebAudio/web-audio-api/issues/318","id":33081187,"number":318,"title":"Getting AudioParam value at a specific point in time is unclear","user":{"login":"stuartmemo","id":59205,"avatar_url":"https://avatars.githubusercontent.com/u/59205?v=3","gravatar_id":"","url":"https://api.github.com/users/stuartmemo","html_url":"https://github.com/stuartmemo","followers_url":"https://api.github.com/users/stuartmemo/followers","following_url":"https://api.github.com/users/stuartmemo/following{/other_user}","gists_url":"https://api.github.com/users/stuartmemo/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartmemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartmemo/subscriptions","organizations_url":"https://api.github.com/users/stuartmemo/orgs","repos_url":"https://api.github.com/users/stuartmemo/repos","events_url":"https://api.github.com/users/stuartmemo/events{/privacy}","received_events_url":"https://api.github.com/users/stuartmemo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/WebAudio/web-audio-api/labels/Architectural/Fundamental%20(Breaking%20change)","name":"Architectural/Fundamental (Breaking change)","color":"e11d21"},{"url":"https://api.github.com/repos/WebAudio/web-audio-api/labels/Needs%20WG%20review","name":"Needs WG review","color":"e11d21"},{"url":"https://api.github.com/repos/WebAudio/web-audio-api/labels/V1%20(TPAC%202014)","name":"V1 (TPAC 2014)","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"padenot","id":270485,"avatar_url":"https://avatars.githubusercontent.com/u/270485?v=3","gravatar_id":"","url":"https://api.github.com/users/padenot","html_url":"https://github.com/padenot","followers_url":"https://api.github.com/users/padenot/followers","following_url":"https://api.github.com/users/padenot/following{/other_user}","gists_url":"https://api.github.com/users/padenot/gists{/gist_id}","starred_url":"https://api.github.com/users/padenot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/padenot/subscriptions","organizations_url":"https://api.github.com/users/padenot/orgs","repos_url":"https://api.github.com/users/padenot/repos","events_url":"https://api.github.com/users/padenot/events{/privacy}","received_events_url":"https://api.github.com/users/padenot/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/WebAudio/web-audio-api/milestones/1","html_url":"https://github.com/WebAudio/web-audio-api/milestones/Web%20Audio%20V1","labels_url":"https://api.github.com/repos/WebAudio/web-audio-api/milestones/1/labels","id":444685,"number":1,"title":"Web Audio V1","description":"Issues to be resolved to enable V1 to be taken forward.","creator":{"login":"olivierthereaux","id":604646,"avatar_url":"https://avatars.githubusercontent.com/u/604646?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierthereaux","html_url":"https://github.com/olivierthereaux","followers_url":"https://api.github.com/users/olivierthereaux/followers","following_url":"https://api.github.com/users/olivierthereaux/following{/other_user}","gists_url":"https://api.github.com/users/olivierthereaux/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierthereaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierthereaux/subscriptions","organizations_url":"https://api.github.com/users/olivierthereaux/orgs","repos_url":"https://api.github.com/users/olivierthereaux/repos","events_url":"https://api.github.com/users/olivierthereaux/events{/privacy}","received_events_url":"https://api.github.com/users/olivierthereaux/received_events","type":"User","site_admin":false},"open_issues":107,"closed_issues":31,"state":"open","created_at":"2013-10-03T15:27:25Z","updated_at":"2015-05-14T15:10:28Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2014-05-08T13:02:01Z","updated_at":"2015-05-14T19:28:34Z","closed_at":null,"body":"I've been trying to write unit tests in JavaScript against AudioParams set using setValueAtTime. My test fails in Firefox due to the following issue:\r\n\r\n```javascript\r\nvar context = new AudioContext(),\r\n    osc = context.createOscillator(),\r\n    gain_node = context.createGain();\r\n\r\nosc.connect(gain_node);\r\nosc.start(context.currentTime);\r\ngain_node.connect(context.destination);\r\ngain_node.gain.setValueAtTime(0, context.currentTime + 1);\r\n\r\nconsole.log(gain_node.gain.value); // returns 1 on both Chrome & Firefox\r\n\r\nsetTimeout(function () {\r\n    console.log(gain_node.gain.value); // returns 0 on Chrome, but 1 on Firefox\r\n}, 4000);\r\n```\r\n\r\nSo, Firefox isn't retrieving the computed value at that specific time, despite correctly applying the right value. I've seen various discussion of what the correct behaviour should be on the mailing list, but I can't find a definitive answer within the spec, and therefore which browser is correct in its implementation."},"comment":{"url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/comments/102144637","html_url":"https://github.com/WebAudio/web-audio-api/issues/318#issuecomment-102144637","issue_url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/318","id":102144637,"user":{"login":"cwilso","id":507001,"avatar_url":"https://avatars.githubusercontent.com/u/507001?v=3","gravatar_id":"","url":"https://api.github.com/users/cwilso","html_url":"https://github.com/cwilso","followers_url":"https://api.github.com/users/cwilso/followers","following_url":"https://api.github.com/users/cwilso/following{/other_user}","gists_url":"https://api.github.com/users/cwilso/gists{/gist_id}","starred_url":"https://api.github.com/users/cwilso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwilso/subscriptions","organizations_url":"https://api.github.com/users/cwilso/orgs","repos_url":"https://api.github.com/users/cwilso/repos","events_url":"https://api.github.com/users/cwilso/events{/privacy}","received_events_url":"https://api.github.com/users/cwilso/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T19:28:34Z","updated_at":"2015-05-14T19:28:34Z","body":"To be clear: it *doesn't*.  :)  (Handle the \"in the future\" case.)  But it does handle the \"including the values from any connected input nodes\" bit.\r\n\r\nI think it depends on whether we're adding a feature for the unit testing case (in which case the .connect feature is probably more helpful) or for logging/introspection of scheduling (in which case maybe something else would be better)."}}