xDrip-Experimental icon indicating copy to clipboard operation
xDrip-Experimental copied to clipboard

Alarm raises volume to 100% while media is playing through earbuds (hurts eardrums)

Open gayprogrammer opened this issue 7 years ago • 4 comments

While listening to media using earbuds (bluetooth or wired), an xDrip alarm causes xDrip to raise media volume to 100%. This results in painfully high volume in my ears. Android has separate volumes for Ring, Notification, Media, and Alarms. Is xDrip using the correct method to create an alarm sound? If no other change to the way that alarm audio is triggered, can we add the option to not raise media volume to 100%? Or an option to not do so while headphones are plugged in?

gayprogrammer avatar Jun 02 '17 18:06 gayprogrammer

xdrip has alerts profile. If you set it to ascending, it will increase volume so the problem will not happen.

On Fri, Jun 2, 2017 at 9:54 PM, Razz Fox [email protected] wrote:

While listening to media using earbuds (bluetooth or wired), an xDrip alarm causes xDrip to raise media volume to 100%. This results in painfully high volume in my ears. Android has separate volumes for Ring, Notification, Media, and Alarms. Is xDrip using the correct method to create an alarm sound? If no other change to the way that alarm audio is triggered, can we add the option to not raise media volume to 100%? Or an option to not do so while headphones are plugged in?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/404, or mute the thread https://github.com/notifications/unsubscribe-auth/AHkw5DIDXjtAtG5xENxpM2QnbduGSsrLks5sAFpmgaJpZM4Nup5b .

tzachi-dar avatar Jun 03 '17 21:06 tzachi-dar

@tzachi-dar Thank you for that suggestion. I will change my xDrip alerts profile to ascending. However, the core problem is that xDrip still changes media volume while media is playing. The effect of ascending alerts profile is that now media suddenly becomes inaudible (volume drops to 0%) when an alert starts.

My use case is that I would like to listen to media, and receive an alert on the same device. So, I would not like xDrip to interfere with media volume.

gayprogrammer avatar Jun 05 '17 19:06 gayprogrammer

This is very enjoying bug in Xdrip and is not solved for years. As many others. Developers seems to focus on adding more and more features instead of fixing bugs in existing ones. Issue is that xdrip is upsing wrong "channel" for alerts. Instead of "alarm" it is playing in "multimedia". Alerts sounds are much launder than usual music. That's why it's so loud during playback. I'm sure developers know about it but care. There is also problem with snoozing alerts with volume buttons. It simply doesn't work. It is practically impossible it snooze alert without unlocking phone, opening xdrip, going through menus and selecting alert to snooze. "Very easy" to do while driving car, on meeting...

pietrasagh avatar Jun 03 '19 20:06 pietrasagh

Please use Nightscout xDrip+, the old StephenBlack xDrip has not been maintained for some years.

https://github.com/NightscoutFoundation/xDrip

xDrip+ has an option for alarms to be forced via speaker instead of headphones. You can silence alerts from the lockscreen by simply swiping them off. Android doesn't give developers access to the volume buttons except when the app is open. Using the volume buttons when the xDrip home screen is showing will silence alerts.

jamorham avatar Jun 03 '19 21:06 jamorham