From 28b5afd05a075cce1f46e5cc85c7e2caae3fc6ee Mon Sep 17 00:00:00 2001 From: Stepan Moskovchenko Date: Wed, 3 May 2006 19:32:22 +0000 Subject: Optimize synth code by pre-computing the volume scaling for each note. Scaling is now calculated once per MIDI event at the most, instead of once per sample. Increase voice ramping speed, increase number of active voices a little. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9870 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/midiplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/midiplay.c') diff --git a/apps/plugins/midiplay.c b/apps/plugins/midiplay.c index 8c15af3..d420508 100644 --- a/apps/plugins/midiplay.c +++ b/apps/plugins/midiplay.c @@ -22,7 +22,7 @@ PLUGIN_HEADER #define FRACTSIZE 10 #define SAMPLE_RATE 22050 // 44100 22050 11025 -#define MAX_VOICES 12 // Note: 24 midi channels is the minimum general midi +#define MAX_VOICES 13 // Note: 24 midi channels is the minimum general midi // spec implementation #define BUF_SIZE 512 #define NBUF 2 -- cgit v1.1