diff options
| author | Stepan Moskovchenko <stevenm@rockbox.org> | 2007-09-29 03:07:31 +0000 |
|---|---|---|
| committer | Stepan Moskovchenko <stevenm@rockbox.org> | 2007-09-29 03:07:31 +0000 |
| commit | aaf3e3269c9d1e3dc41255c9be5f47aba8acb515 (patch) | |
| tree | bbf68566d2af3bac9c60be03b0f15706095dfb01 /apps/plugins | |
| parent | d1e306077ff111e148400a0202b548ce9ed3d7bc (diff) | |
| download | rockbox-aaf3e3269c9d1e3dc41255c9be5f47aba8acb515.zip rockbox-aaf3e3269c9d1e3dc41255c9be5f47aba8acb515.tar.gz rockbox-aaf3e3269c9d1e3dc41255c9be5f47aba8acb515.tar.bz2 rockbox-aaf3e3269c9d1e3dc41255c9be5f47aba8acb515.tar.xz | |
MIDI: Fix off by one error with the guitar. Wow, I can't believe the off-keyness is finally fixed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14897 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/midi/synth.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/plugins/midi/synth.c b/apps/plugins/midi/synth.c index d6fda78..acf300f 100644 --- a/apps/plugins/midi/synth.c +++ b/apps/plugins/midi/synth.c @@ -308,7 +308,7 @@ signed short int synthVoice(struct SynthObject * so) } } - if((wf->mode & 28) && (cpShifted > wf->endLoop)) + if((wf->mode & 28) && (cpShifted >= wf->endLoop)) { so->loopState = STATE_LOOPING; if((wf->mode & (24)) == 0) @@ -324,12 +324,10 @@ signed short int synthVoice(struct SynthObject * so) } } - /* Have we overrun? */ if( (cpShifted >= (wf->numSamples-1))) { so->cp -= so->delta; - cpShifted = so->cp >> FRACTSIZE; s2 = getSample((cpShifted)+1, wf); stopVoice(so); |