Sonitus icon indicating copy to clipboard operation
Sonitus copied to clipboard

Updating Noise Canceling state

Open JordanEJ opened this issue 1 year ago • 3 comments

Hey there,

I was wondering if it was possible to add a feature where the NC slider would update itself depending on the NC state of the headphones? (I attempted this but could find the commands needed to get the current state for my wf-1000xm4)

I know this may suck more battery but it may be possible to add a slider (for update rate) and make this feature optional.

P.s this is an awesome tweak

JordanEJ avatar Jun 07 '23 07:06 JordanEJ

It should be possible. You can even keep the connection open, and the earbuds will probably communicate the state change (no need for polling). But since this tweak supports a whole range of earbuds and headphones, implementing this for all devices is kinda impossible. (especially without access to all of them) So I consider this feature out of scope for the tweak, but you can always create a fork if you want to implement it yourself.

semvis123 avatar Jun 07 '23 08:06 semvis123

Yea, that’s fair enough. Is there any way I can find out how to read the state change from the earbuds. (Assuming I am using the wf-1000xm4s) ?

JordanEJ avatar Jun 07 '23 08:06 JordanEJ

The wf-1000xm4s use the ExternalAccessory protocol, so you can try using this logger https://github.com/semvis123/EALogger/

Or you could decompile the android app, but not sure if that is any easier.

semvis123 avatar Jun 07 '23 08:06 semvis123