aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-09-24 12:24:10 -0700
committerChris Robinson <[email protected]>2009-09-24 12:24:10 -0700
commitaf8e7ab98413ce569a12297c3a4103a9c65d1ced (patch)
treeb03279ef3e82da10265b78481c936cfb9fa2ed37 /Alc
parent4289d5de7df8046c2b9207ae00314d5447fa57d9 (diff)
Check the source start position in alSourcePlayv instead of the mixer
Diffstat (limited to 'Alc')
-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)