aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index a2bcc968..7b108cfb 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -913,8 +913,9 @@ another_source:
}
/* Compute the gain steps for each output channel */
- if(ALSource->FirstStart && DataPosInt == 0 && DataPosFrac == 0)
+ if(ALSource->FirstStart)
{
+ ALSource->FirstStart = AL_FALSE;
for(i = 0;i < OUTPUTCHANNELS;i++)
dryGainStep[i] = 0.0f;
for(i = 0;i < MAX_SENDS;i++)
@@ -933,7 +934,6 @@ another_source:
WetSend[i] = ALSource->WetGains[i];
}
}
- ALSource->FirstStart = AL_FALSE;
/* Compute 18.14 fixed point step */
if(Pitch > (float)MAX_PITCH)