StephenBlackWasAlreadyTaken / xDrip-Experimental

Experimental Branches for Collaboration on DexDrip
GNU General Public License v3.0
25 stars 62 forks source link

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

Open gayprogrammer opened 7 years ago

gayprogrammer commented 7 years ago

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?

tzachi-dar commented 7 years ago

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 notifications@github.com 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 .

gayprogrammer commented 7 years ago

@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.

pietrasagh commented 5 years ago

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...

jamorham commented 5 years ago

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.