mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
pcm_mixer: fix auto frequency switch stopping playback on some targets
Regression from cb04b816. Restores sound by re‑adding
pcm_play_stop, previously invoked in mixer_reset.
Known affected targets: x1600 hosted hiby port (Hiby R1, Hiby R3 Pro II)
Discussion: https://forums.rockbox.org/index.php/topic,55125.msg258435.html#msg258435
Change-Id: I5fadac0b47f609e38baad5c7151354ee8f7e9871
This commit is contained in:
parent
513365713a
commit
c5c39a3fdb
1 changed files with 3 additions and 0 deletions
|
|
@ -522,6 +522,9 @@ void mixer_set_frequency(unsigned int samplerate)
|
|||
if(pcm_get_frequency() == samplerate)
|
||||
return;
|
||||
|
||||
pcm_play_stop();
|
||||
idle_counter = 0;
|
||||
|
||||
pcm_set_frequency(samplerate);
|
||||
mixer_handle_sampr_change(SAMPR_NUM(pcm_get_frequency()));
|
||||
if (pcm_is_initialized())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue