Skip to content

Can ABSN.buffer be set to the same buffer again? #1216

@rtoy

Description

@rtoy

In https://webaudio.github.io/web-audio-api/#widl-AudioBufferSourceNode-buffer, we give an algorithm on what should happen when the buffer attribute is set. Is it possible to do something like:

s = new AudioBufferSource(c);
b0 = new AudioBuffer(...);
s.buffer = b0;
s.buffer = b0;

That is, do we still throw an error for the second attempt to set the s.buffer to the same audio buffer? The spec says no. Perhaps we should be a bit more explicit about this case?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions