From 2ed84ec2cad5497cb455ac187d99451d2f9c1b59 Mon Sep 17 00:00:00 2001 From: Tomas Salfischberger Date: Tue, 14 Jun 2005 16:17:11 +0000 Subject: The synthVoice() function declaration was wrong (caused a warning). And because of that GCC didn't notice the error on line 390: synthVoice(currentVoice). In revision 1.4 Steven made currentVoice global, so the function declaration should be: synthVoice(void), wich fixes a warning. And the call should be just synthVoice() wich fixes a hidden error. Hope I saw this right... please correct me if this isn't the way you ment is Seven. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6708 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/midi/synth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/plugins/midi/synth.c b/apps/plugins/midi/synth.c index 50becf32a4..c210f046d3 100644 --- a/apps/plugins/midi/synth.c +++ b/apps/plugins/midi/synth.c @@ -270,7 +270,7 @@ inline void stopVoice(struct SynthObject * so) } -inline signed short int synthVoice() +inline signed short int synthVoice(void) { so = &voices[currentVoice]; wf = so->wf; @@ -387,7 +387,7 @@ inline void synthSample(int * mixL, int * mixR) { if(voices[currentVoice].isUsed==1) { - sample = synthVoice(currentVoice); + sample = synthVoice(); *mixL += (sample*chPanLeft[voices[currentVoice].ch])>>7; *mixR += (sample*chPanRight[voices[currentVoice].ch])>>7; } -- cgit v1.2.3