From 4c8e6dead1742a2f363049a01e4ef18ae377b436 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 10 Sep 2011 21:02:50 -0700 Subject: [PATCH] Don't defer stopped and initial source state changes Typically when these are set, an app will be releasing the buffer from the source, possibly to immediately reuse it. There would be an extra burden placed on the app if it was required to process updates before it could fully release the buffer from the source. --- OpenAL32/alSource.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 271d7e44..5217b563 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -1481,8 +1481,8 @@ AL_API ALvoid AL_APIENTRY alSourceStopv(ALsizei n, const ALuint *sources) for(i = 0;i < n;i++) { Source = LookupSource(Context->SourceMap, sources[i]); - if(Context->DeferUpdates) Source->new_state = AL_STOPPED; - else SetSourceState(Source, Context, AL_STOPPED); + Source->new_state = AL_NONE; + SetSourceState(Source, Context, AL_STOPPED); } done: @@ -1527,8 +1527,8 @@ AL_API ALvoid AL_APIENTRY alSourceRewindv(ALsizei n, const ALuint *sources) for(i = 0;i < n;i++) { Source = LookupSource(Context->SourceMap, sources[i]); - if(Context->DeferUpdates) Source->new_state = AL_INITIAL; - else SetSourceState(Source, Context, AL_INITIAL); + Source->new_state = AL_NONE; + SetSourceState(Source, Context, AL_INITIAL); } done: