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
This commit is contained in:
parent
4ad76652ef
commit
08fd69c347
1 changed files with 4 additions and 0 deletions
|
@ -47,7 +47,11 @@
|
||||||
#ifdef SIMULATOR
|
#ifdef SIMULATOR
|
||||||
#define RB_SAMPR SAMPR_44
|
#define RB_SAMPR SAMPR_44
|
||||||
#else
|
#else
|
||||||
|
#if HW_SAMPR_CAPS & SAMPR_CAP_22
|
||||||
#define RB_SAMPR SAMPR_22
|
#define RB_SAMPR SAMPR_22
|
||||||
|
#else
|
||||||
|
#define RB_SAMPR HW_SAMPR_MIN
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
|
/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
|
||||||
|
|
Loading…
Reference in a new issue