Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BufferSource nodes should be cleaned up after playback #49

Open
ericrosenbaum opened this issue Jun 27, 2017 · 0 comments
Open

BufferSource nodes should be cleaned up after playback #49

ericrosenbaum opened this issue Jun 27, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@ericrosenbaum
Copy link
Collaborator

Expected behavior

Each time you play a sound, a webaudio buffersource node is created. After the sound ends, the node should be garbage collected.

Actual behavior

I'm not totally sure but I think that they can not be garbage collected. We store a reference to each buffer source node in order to set the playback rate while the sound plays (for the pitch effect), so at the very least these references need to be deleted after the sound ends.

Note that we cannot debug this using the Chrome Web Audio Inspector, because its own operation prevents garbage collection of nodes (see here)

Operating system and browser

Mac OS 10.11.6 Chrome 59.0

@ericrosenbaum ericrosenbaum added this to the Backlog milestone Jun 27, 2017
@ericrosenbaum ericrosenbaum self-assigned this Jun 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant