aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 74591ff2..af263279 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -1325,7 +1325,6 @@ 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;
@@ -1342,13 +1341,18 @@ 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
if(pSource->lOffset)
ApplyOffset(pSource, AL_FALSE);
+ if(pSource->BuffersPlayed == 0 && pSource->position == 0 &&
+ pSource->position_fraction == 0)
+ pSource->FirstStart = AL_TRUE;
+ else
+ pSource->FirstStart = AL_FALSE;
+
// If device is disconnected, go right to stopped
if(!pContext->Device->Connected)
{