forked from len0rd/rockbox
Check if the HW is capable of 22.050KHz playback, and revert to using 44.1Khz otherwise.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13969 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b97c00dc8e
commit
a6b4842cc3
1 changed files with 14 additions and 5 deletions
|
@ -80,12 +80,21 @@ PLUGIN_IRAM_DECLARE
|
|||
#define FRACTSIZE 10
|
||||
|
||||
#ifndef SIMULATOR
|
||||
#define SAMPLE_RATE SAMPR_22 // 44100 22050 11025
|
||||
#define MAX_VOICES 20 // Note: 24 midi channels is the minimum general midi
|
||||
// spec implementation
|
||||
|
||||
#if (HW_SAMPR_CAPS & SAMPR_CAP_22)
|
||||
#define SAMPLE_RATE SAMPR_22 // 44100 22050 11025
|
||||
#else
|
||||
#define SAMPLE_RATE SAMPR_44 // 44100 22050 11025
|
||||
#endif
|
||||
|
||||
#define MAX_VOICES 20 // Note: 24 midi channels is the minimum general midi
|
||||
// spec implementation
|
||||
|
||||
#else // Simulator requires 44100, and we can afford to use more voices
|
||||
#define SAMPLE_RATE SAMPR_44
|
||||
#define MAX_VOICES 48
|
||||
|
||||
#define SAMPLE_RATE SAMPR_44
|
||||
#define MAX_VOICES 48
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue