This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22832 - Specify the data model for WaveShaperNode.curve
Summary: Specify the data model for WaveShaperNode.curve
Status: CLOSED WONTFIX
Alias: None
Product: AudioWG
Classification: Unclassified
Component: Web Audio API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: TBD
Assignee: Chris Rogers
QA Contact: public-audio
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-29 18:50 UTC by Ehsan Akhgari [:ehsan]
Modified: 2014-10-28 17:17 UTC (History)
1 user (show)

See Also:


Attachments

Description Ehsan Akhgari [:ehsan] 2013-07-29 18:50:44 UTC
We need to specify exactly what happens when you set WaveShaperNode.curve to a new array value.  Roc's proposal was that we should copy the arrays set to this attribute when it the attribute is set and use the internal copies from that point on so that we don't race with those arrays being modified on the main thread.  I support that proposal.
Comment 1 Marcus Geelnard (Opera) 2013-08-05 13:40:33 UTC
I also support copy-on-assignment, it's the clearest definition. I would prefer a specific set-method though (it would be even clearer IMO), but if backwards compat is important we could do it as suggested by ROC.
Comment 2 Ehsan Akhgari [:ehsan] 2013-08-08 03:24:10 UTC
I also prefer a setter method to make this clearer (and I don't think a getter method is needed at all, since content code can track the array if it needs to very easily by setting an expando property on the node, etc.)

roc, how much are you worried about the backwards compat issue here?
Comment 3 Olivier Thereaux 2014-10-28 17:14:27 UTC
Web Audio API issues have been migrated to Github. 
See https://github.com/WebAudio/web-audio-api/issues
Comment 4 Olivier Thereaux 2014-10-28 17:17:20 UTC
Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.