Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

pcm_mixer: Get default sample rate from pcm layer.

Change-Id: I6eccb37556e70f23112bbb0e26f4a45ac0930245

+5 -2
+5 -2
firmware/pcm_mixer.c
··· 33 33 before the last samples are sent to the codec and so things are done in 34 34 parallel (as much as possible) with sending-out data. */ 35 35 36 - static unsigned int mixer_sampr = HW_SAMPR_DEFAULT; 36 + static unsigned int mixer_sampr = -1UL; 37 37 static unsigned int mix_frame_size = MIX_FRAME_SAMPLES*4; 38 38 39 39 /* Define this to nonzero to add a marker pulse at each frame start */ ··· 266 266 #endif 267 267 268 268 /* Requires a shared global sample rate for all channels */ 269 - pcm_set_frequency(mixer_sampr); 269 + if (mixer_sampr == -1UL) 270 + mixer_sampr = pcm_get_frequency(); 271 + else 272 + pcm_set_frequency(mixer_sampr); 270 273 271 274 /* Prepare initial frames and set up the double buffer */ 272 275 mixer_buffer_callback(PCM_DMAST_STARTED);