forked from len0rd/rockbox
A loop with one iteration is a little strange, also put it inside an #if block to not rely on gcc otimizing it away
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14990 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a26ccdebf3
commit
5118f48d73
1 changed files with 4 additions and 4 deletions
|
|
@ -48,9 +48,9 @@ static inline void synthSample(int * mixL, int * mixR)
|
||||||
voicept++;
|
voicept++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if max voices is an even number gcc is smart enough to not
|
/* if MAX_VOICES is not even we do this to get the last voice */
|
||||||
include this loop */
|
#if MAX_VOICES%2
|
||||||
for(i=MAX_VOICES%2; i > 0; i--)
|
if (MAX_VOICES%2)
|
||||||
{
|
{
|
||||||
if(voicept->isUsed==1)
|
if(voicept->isUsed==1)
|
||||||
{
|
{
|
||||||
|
|
@ -59,8 +59,8 @@ static inline void synthSample(int * mixL, int * mixR)
|
||||||
sample *= chPan[voicept->ch];
|
sample *= chPan[voicept->ch];
|
||||||
dR += sample;
|
dR += sample;
|
||||||
}
|
}
|
||||||
voicept++;
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
dL = (dL << 7) - dR;
|
dL = (dL << 7) - dR;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue