diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2023-09-04 22:39:50 +0200 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2023-09-11 10:57:07 -0400 |
commit | 84450dfd5d544987d1afb4b66c0dc3002566b24e (patch) | |
tree | 346b254ead45773f94365b40e004f7276c417b7a | |
parent | c8c3de992633b8f1e2a07656863091bc4272580a (diff) | |
download | rockbox-84450dfd5d.tar.gz rockbox-84450dfd5d.zip |
Playback: Fix 'auto' frequency not applied when paused
A frequency change didn't go into effect immediately
when a user picked "Auto" for the sample rate, while
playback was paused
Change-Id: I254853b664c5b6812264fdaf81dfb8fbfff43dbf
-rw-r--r-- | apps/playback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c index 79f037029f..f698bed024 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -4008,7 +4008,7 @@ void audio_set_playback_frequency(unsigned int sample_rate_hz) if (sampr == 0) { - if (audio_status() == AUDIO_STATUS_PLAY) + if (audio_status() & (AUDIO_STATUS_PLAY | AUDIO_STATUS_PAUSE)) { sampr = audio_guess_frequency(audio_current_track()); } |