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

Changing audio volume doesn't seem to work #21

Closed
Yahav opened this issue Aug 11, 2012 · 2 comments
Closed

Changing audio volume doesn't seem to work #21

Yahav opened this issue Aug 11, 2012 · 2 comments

Comments

@Yahav
Copy link

Yahav commented Aug 11, 2012

using Webkit to test it.
i'm trying to change the volume of the audio:
dancer.audioAdapter.audio.volume=0.1
OR
dancer.audio.volume=0

doesn't seem to work.

a function to control the volume would be great.

@jsantell
Copy link
Owner

Looks like you can't use the audio source on WebKit to change the volume like you can in Firefox.. has to be done with a GainNode. Will look into it

@jsantell
Copy link
Owner

Added setVolume() and getVolume() in b96bb99 -- future additions could possibly bind the volumechange event for the audio element in WebKit to change the gainNode in the webkit implemetnation

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

No branches or pull requests

2 participants