From 1515ff852224c822a6d3db8c458eab2c9037704f Mon Sep 17 00:00:00 2001 From: Stepan Moskovchenko Date: Mon, 15 Oct 2007 05:11:37 +0000 Subject: MIDI: At long last, though quick and dirty, pitch bend depth! Or, I think it works. Tested on two files. Let me know if anyone discovers any problems with this. This commit also includes Nils's synth loop optimization patch. I hope committing it does not cause problems. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15112 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/midi/midiplay.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'apps/plugins/midi/midiplay.c') diff --git a/apps/plugins/midi/midiplay.c b/apps/plugins/midi/midiplay.c index 99f05718d6..325d90c375 100644 --- a/apps/plugins/midi/midiplay.c +++ b/apps/plugins/midi/midiplay.c @@ -93,6 +93,7 @@ int numberOfSamples IBSS_ATTR; long bpm IBSS_ATTR; int32_t gmbuf[BUF_SIZE*NBUF]; +static unsigned int samples_in_buf; int quit=0; struct plugin_api * rb; @@ -160,7 +161,8 @@ static inline void synthbuf(void) outptr=gmbuf; #endif - for(i=0; i