{"action":"created","issue":{"url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/990","repository_url":"https://api.github.com/repos/WebAudio/web-audio-api","labels_url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/990/labels{/name}","comments_url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/990/comments","events_url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/990/events","html_url":"https://github.com/WebAudio/web-audio-api/issues/990","id":178883229,"number":990,"title":"Consider using maps for main->worklet inputs rather than creating individual properties on the AudioWorkletNode instance.","user":{"login":"bfgeek","id":992712,"avatar_url":"https://avatars.githubusercontent.com/u/992712?v=3","gravatar_id":"","url":"https://api.github.com/users/bfgeek","html_url":"https://github.com/bfgeek","followers_url":"https://api.github.com/users/bfgeek/followers","following_url":"https://api.github.com/users/bfgeek/following{/other_user}","gists_url":"https://api.github.com/users/bfgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/bfgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfgeek/subscriptions","organizations_url":"https://api.github.com/users/bfgeek/orgs","repos_url":"https://api.github.com/users/bfgeek/repos","events_url":"https://api.github.com/users/bfgeek/events{/privacy}","received_events_url":"https://api.github.com/users/bfgeek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-09-23T13:51:47Z","updated_at":"2016-10-03T20:35:11Z","closed_at":null,"body":"I've talked with some other folks on web platform, folks are pretty divided to whether we actually want to do this or not; we don't really have anything like this on the platform today, and it makes it difficult to expand the `AudioWorkletNode` later in time. \r\n\r\nAs a concrete example, it would limit a future spec from adding a new property to `AudioWorkletNode`.\r\n\r\nOne option Instead is having two maps for both params & properties.\r\n\r\nFor example:\r\n```js\r\nconst ctx = ...;\r\nconst node = new AudioWorkletNode(ctx, 'foo');\r\nnode.parameters.get('freq').value = 5;\r\n\r\nnode.properties.set('buffer', buffer);\r\n```\r\n\r\n```webidl\r\ninterface AudioParamMap {\r\n  readonly maplike<DOMString, AudioParam>;\r\n};\r\ninterface AudioPropertyMap {\r\n  readonly maplike<DOMString, *>;\r\n};\r\n\r\npartial interface AudioWorkletNode {\r\n  readonly attribute AudioParamMap parameters;\r\n  readonly attribute AudioPropertyMap properties;\r\n};\r\n```\r\n\r\ncc/ @domenic @esprehn @cwilso @hoch "},"comment":{"url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/comments/251218747","html_url":"https://github.com/WebAudio/web-audio-api/issues/990#issuecomment-251218747","issue_url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/990","id":251218747,"user":{"login":"hoch","id":676891,"avatar_url":"https://avatars.githubusercontent.com/u/676891?v=3","gravatar_id":"","url":"https://api.github.com/users/hoch","html_url":"https://github.com/hoch","followers_url":"https://api.github.com/users/hoch/followers","following_url":"https://api.github.com/users/hoch/following{/other_user}","gists_url":"https://api.github.com/users/hoch/gists{/gist_id}","starred_url":"https://api.github.com/users/hoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoch/subscriptions","organizations_url":"https://api.github.com/users/hoch/orgs","repos_url":"https://api.github.com/users/hoch/repos","events_url":"https://api.github.com/users/hoch/events{/privacy}","received_events_url":"https://api.github.com/users/hoch/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T20:35:11Z","updated_at":"2016-10-03T20:35:11Z","body":"@joeberkovitz If we go down that road, we are sort of giving up this generic maplike interface for the AudioNode. I briefly mentioned the possibility of using this unified interface for all the AudioNode.\r\n\r\nWith that said, I am also fine with having the new maps only in AudioWorkletNode."}}
{"actor":{"display_login":"hoch"}}