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 Volume isn't working for me #238

Closed
KirbyKid256 opened this issue Feb 12, 2023 · 2 comments
Closed

Setting Volume isn't working for me #238

KirbyKid256 opened this issue Feb 12, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@KirbyKid256
Copy link

I'm trying to set the volume of a video playing, but it's always at 100 or 0 if it can't use sound.
I don't know if this is an issue with hxCodec or if I'm missing something, but the volume isn't working.

@KirbyKid256
Copy link
Author

So I checked the code, and it's definitally this line of code that's causing it:
volume = Std.int(#if FLX_SOUND_SYSTEM ((FlxG.sound.muted || !canUseSound) ? 0 : 1) * #end FlxG.sound.volume * 100);
You could add another volume multiplier to change the volume of a specific video where it would be a float.

@polybiusproxy polybiusproxy added the bug Something isn't working label Feb 13, 2023
@MAJigsaw77
Copy link
Contributor

MAJigsaw77 commented Feb 15, 2023

canUseSound if is false makes the video to not have sound at all duh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants