diff options
author | Chris Robinson <[email protected]> | 2009-09-24 12:24:10 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-09-24 12:24:10 -0700 |
commit | af8e7ab98413ce569a12297c3a4103a9c65d1ced (patch) | |
tree | b03279ef3e82da10265b78481c936cfb9fa2ed37 /Alc/ALu.c | |
parent | 4289d5de7df8046c2b9207ae00314d5447fa57d9 (diff) |
Check the source start position in alSourcePlayv instead of the mixer
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |