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

Web audio external node fix #840

Merged
merged 1 commit into from
Jul 1, 2014

Conversation

villetou
Copy link
Contributor

I had troubles connecting to an external audio node (Web Audio API). It was giving this error

Uncaught TypeError: Failed to execute 'connect' on 'AudioNode': No function was found that matched the signature provided. 

By changing the Sound.play and Sound.resume functions to connect to the externalNode instead of externalNode.input seemed to fix these problems.

@photonstorm
Copy link
Collaborator

Hmm, I'm in two minds about this one - because it's possible to use it both ways. However relying on AudioNode.input isn't actually correct as it's not a valid property, so I'm going to merge your change and stick it into the docs in case anyone was using the old format.

photonstorm added a commit that referenced this pull request Jul 1, 2014
@photonstorm photonstorm merged commit dd11e2a into phaserjs:dev Jul 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants