forked from len0rd/rockbox
Introduce HW_SAMPR_MIN_GE_22 macro
Gives us the lowest HW sample rate that's >= 22KHz. Needed because some targets that don't support 22K support 11K or 8K, so HW_SAMPR_MIN will give us much lower quality than is acceptable. Take advantage of this new macro in the SDL, MIDI, and MIKMOD plugins, and implement a crude "fast enough" test to enable higher sample rates on more capable targets. Change-Id: I6ad38026fb3410c62da028e78512e027729bb851
This commit is contained in:
parent
a430e275dd
commit
5b23c9eb0a
4 changed files with 92 additions and 20 deletions
|
@ -47,11 +47,7 @@
|
|||
#ifdef SIMULATOR
|
||||
#define RB_SAMPR SAMPR_44
|
||||
#else
|
||||
#if HW_SAMPR_CAPS & SAMPR_CAP_22
|
||||
#define RB_SAMPR SAMPR_22
|
||||
#else
|
||||
#define RB_SAMPR HW_SAMPR_MIN
|
||||
#endif
|
||||
#define RB_SAMPR HW_SAMPR_MIN_GE_22 /* Min HW rate at least 22KHz */
|
||||
#endif
|
||||
|
||||
/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue