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

Listener works weird on Android #9

Open
dvorapa opened this issue Dec 31, 2021 · 0 comments
Open

Listener works weird on Android #9

dvorapa opened this issue Dec 31, 2021 · 0 comments

Comments

@dvorapa
Copy link

dvorapa commented Dec 31, 2021

When adding 0.01 (1 %) to setVolume few times in a row, volume sometimes unexpectedly jumps 3 % . I've found out that this is a listener issue. This is the way listener reacts to 0.01 additions using setVolume:

I/flutter (25103): listener 0.8
I/flutter (25103): setVolume 0.81
I/AudioManager(25103): setStreamVolume streamType:3index:12flags:0
I/flutter (25103): setVolume 0.82
I/AudioManager(25103): setStreamVolume streamType:3index:12flags:0
I/flutter (25103): setVolume 0.83
I/AudioManager(25103): setStreamVolume streamType:3index:12flags:0
I/flutter (25103): setVolume 0.84
I/AudioManager(25103): setStreamVolume streamType:3index:13flags:0
I/flutter (25103): listener 0.8667
I/flutter (25103): listener 0.8667
I/flutter (25103): setVolume 0.8767
I/AudioManager(25103): setStreamVolume streamType:3index:13flags:0
I/flutter (25103): setVolume 0.8867
I/AudioManager(25103): setStreamVolume streamType:3index:13flags:0

It somehow added 0.0267 to the device volume I set using setVolume. The same happens when subtracting 0.01 . It does not happen at specific volumes, every time it happens at a different volume.

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
@dvorapa and others