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

[Question] AICS - Gain Setting values/format #596

Open
wpiet opened this issue Nov 21, 2024 · 1 comment
Open

[Question] AICS - Gain Setting values/format #596

wpiet opened this issue Nov 21, 2024 · 1 comment

Comments

@wpiet
Copy link
Contributor

wpiet commented Nov 21, 2024

Hi,

I noticed that in bumble/profiles/aics.py the specified range for Gain Setting Properties characteristic is from 0 to 255, while the specification states it should be within -128 to 127 range.

Is that implementation intentional or is that a mistake?

For the reference see 3.2. Gain Setting Properties and Table 3.6: Set Gain Setting format

@barbibulle
Copy link
Collaborator

I think you're right. I also notice that the API for AudioInputState isn't quite right (the def increment_gain_settings(self, gain_settings_unit: int) -> None method shouldn't need a gain_settings_unit argument.
As to the Gain Setting Properties gain_setting_minimum and ``gain_setting_maximumas well as theAudio Input State` `gain_setting`, they should all be 8-bit signed values.
I can make the change in a PR shortly (I have a pending change that needs to land first, so as to avoid a conflict).

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