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

Setting global volume before loading not taking effect #1229

Closed
celynw opened this issue Sep 25, 2019 · 2 comments
Closed

Setting global volume before loading not taking effect #1229

celynw opened this issue Sep 25, 2019 · 2 comments

Comments

@celynw
Copy link

celynw commented Sep 25, 2019

I'm loving this library, thanks!
This is not #233.

I'm setting the global volume before loading any sounds, using:

Howler.volume(slider.value / 100.0);

When querying, it reports as expected (I have the slider value set to 10/100).
This is true at every point (now, after loading a sound, when the sound is playing).

console.log(Howler.volume());
=> 0.1

But it's actually playing at full volume.
I know this because once something is playing I can move the slider 1px which fires off Howler.volume again, and it immediately goes quieter back to the requested value.

It seems to be fine if I unload, then load a new track and play it, so I think it's only before Howler loads a track for the first time.

@defmech
Copy link

defmech commented Oct 1, 2019

I have exactly the same issue at the moment. Setting Howler.volume(0); from a config file > Loading sounds > Play sound which plays at full volume.

Update: The problem exists on Chrome 53 which I'm using in an embedded game platform on Android. Chrome 77 desktop seems fine.

Update2: I've managed to work around the issue by setting volume(1) then volume(0) before the first sample plays.

@goldfire
Copy link
Owner

This should be fixed with #1210.

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

3 participants