aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-11-13 05:48:38 -0800
committerChris Robinson <[email protected]>2008-11-13 05:48:38 -0800
commit010f7d12f48f8e046dcda4a5e39221265554e2ff (patch)
tree8a32e64f4bebf6e9f0fc73eed7ed6b7b85d0776b /OpenAL32/alSource.c
parentda684564eae03317a1b38184159f650fc963aa23 (diff)
Don't ramp gains when starting a sound from the beginning
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 50217783..e130e044 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -1435,6 +1435,7 @@ ALAPI ALvoid ALAPIENTRY alSourcePlayv(ALsizei n, const ALuint *pSourceList)
pSource->position = 0;
pSource->position_fraction = 0;
pSource->BuffersPlayed = 0;
+ pSource->FirstStart = AL_TRUE;
pSource->ulBufferID = pSource->queue->buffer;
@@ -1451,6 +1452,7 @@ ALAPI ALvoid ALAPIENTRY alSourcePlayv(ALsizei n, const ALuint *pSourceList)
pSource->state = AL_PLAYING;
pSource->inuse = AL_TRUE;
pSource->play = AL_TRUE;
+ pSource->FirstStart = AL_FALSE;
}
// Check if an Offset has been set