diff options
author | Chris Robinson <[email protected]> | 2010-11-24 10:16:53 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-24 10:16:53 -0800 |
commit | c9363832fe7755bec5e5c4ee56c7be3c00c2555e (patch) | |
tree | 22ee851073735eba132884369cbcd8b486cde13c | |
parent | 6ab22e7cbbe7a1b24653b3e4677d01247a7030c2 (diff) |
Fully progress the source to a stopped state when no buffers are playable
-rw-r--r-- | OpenAL32/alSource.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 2270a246..440bd859 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -1322,7 +1322,11 @@ AL_API ALvoid AL_APIENTRY alSourcePlayv(ALsizei n, const ALuint *sources) if(!BufferList) { + Source->state = AL_STOPPED; Source->BuffersPlayed = Source->BuffersInQueue; + Source->position = 0; + Source->position_fraction = 0; + Source->lOffset = 0; continue; } |