vicolo-dev / chrono

A modern and powerful clock, alarms, timer and stopwatch app for Android!
GNU General Public License v3.0
305 stars 13 forks source link

chrono is stealing audio focus (not sure if that's the correct terminology?) after an alarm rings #305

Open atom-smasher opened 1 week ago

atom-smasher commented 1 week ago

Describe the bug chrono is stealing audio focus (not sure if that's the correct terminology?) after an alarm rings.

To Reproduce Steps to reproduce the behavior:

  1. Play music from a music app
  2. Stop/pause the music, from the music app
  3. Have chrono ring an alarm
  4. Use a bluetooth device (speaker, headphone) to "Play" (re-start) the music - it fails

Expected behavior After an alarm rings, I would expect that whatever music player was previously playing music would continue to respond to a bluetooth device's "Play" button.

Screenshots N/A

Smartphone Information

Additional context I noticed that chrono is using "media" audio, not "alarm" audio. See screenshot. First bar is "app volume" for chrono; 2nd bar is "media volume", which the alarm sound is connected to; 4th bar is "alarm volume", which chrono is not connected to, but maybe it should be?

Screenshot_20240630-232823883