diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2019-08-04 16:58:20 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2019-08-05 20:48:40 +0200 |
commit | ed724fecb15d90d8075ed1edb963f455cb91b0a1 (patch) | |
tree | 6b72250278e5170bc7ed4b8263f48eb8e8dc1c61 /apps/plugins/midi/midiutil.h | |
parent | eea5bfc9aec35686406296641b37bcc2c731fbbb (diff) | |
download | rockbox-ed724fecb15d90d8075ed1edb963f455cb91b0a1.tar.gz rockbox-ed724fecb15d90d8075ed1edb963f455cb91b0a1.zip |
Midiplay plugin ehancements
- Improved robustness
- Improved sound quality
- Use mixer and DSP
Patch by Igor Poretsky
Change-Id: I6fa617158cbaa53ae842295cdbdbe3a478e49ded
Diffstat (limited to 'apps/plugins/midi/midiutil.h')
-rw-r--r-- | apps/plugins/midi/midiutil.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/plugins/midi/midiutil.h b/apps/plugins/midi/midiutil.h index cf3666c97f..72bff11b3f 100644 --- a/apps/plugins/midi/midiutil.h +++ b/apps/plugins/midi/midiutil.h | |||
@@ -25,14 +25,11 @@ | |||
25 | 25 | ||
26 | #define BUF_SIZE 16384 /* 64 kB output buffers */ | 26 | #define BUF_SIZE 16384 /* 64 kB output buffers */ |
27 | #define NBUF 2 | 27 | #define NBUF 2 |
28 | #define MAX_SAMPLES 512 | ||
28 | 29 | ||
29 | #ifndef SIMULATOR | 30 | #ifndef SIMULATOR |
30 | 31 | ||
31 | #if (HW_SAMPR_CAPS & SAMPR_CAP_22) /* use 22050Hz if we can */ | ||
32 | #define SAMPLE_RATE SAMPR_22 /* 22050 */ | ||
33 | #else | ||
34 | #define SAMPLE_RATE SAMPR_44 /* 44100 */ | 32 | #define SAMPLE_RATE SAMPR_44 /* 44100 */ |
35 | #endif | ||
36 | 33 | ||
37 | /* Some of the pp based targets can't handle too many voices | 34 | /* Some of the pp based targets can't handle too many voices |
38 | mainly because they have to use 44100Hz sample rate, this could be | 35 | mainly because they have to use 44100Hz sample rate, this could be |