summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <franklin@rockbox.org>2019-08-04 16:55:49 -0400
committerFranklin Wei <franklin@rockbox.org>2019-08-04 22:57:58 +0200
commit08fd69c3470e00e84285524c53a96ae9c77e129c (patch)
tree6e15648c513b0ade248af28f79bc9301fb1e7345
parent4ad76652ef19daf6404e8a97eb73aeadfe1e66fb (diff)
downloadrockbox-08fd69c3470e00e84285524c53a96ae9c77e129c.tar.gz
rockbox-08fd69c3470e00e84285524c53a96ae9c77e129c.zip
sdl: fall back to minimum supported sample rate if 22 kHz is not supported
Fixes too-fast audio playback on devices that don't support 22 kHz. Change-Id: I78d4934bfd40f69c0d7bc9e8021df3f4edf0a9fb
-rw-r--r--apps/plugins/sdl/include/SDL_config_rockbox.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/sdl/include/SDL_config_rockbox.h b/apps/plugins/sdl/include/SDL_config_rockbox.h
index bee63c4f20..40bd7fe177 100644
--- a/apps/plugins/sdl/include/SDL_config_rockbox.h
+++ b/apps/plugins/sdl/include/SDL_config_rockbox.h
@@ -47,7 +47,11 @@
47#ifdef SIMULATOR 47#ifdef SIMULATOR
48#define RB_SAMPR SAMPR_44 48#define RB_SAMPR SAMPR_44
49#else 49#else
50#if HW_SAMPR_CAPS & SAMPR_CAP_22
50#define RB_SAMPR SAMPR_22 51#define RB_SAMPR SAMPR_22
52#else
53#define RB_SAMPR HW_SAMPR_MIN
54#endif
51#endif 55#endif
52 56
53/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */ 57/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */