diff options
author | Chris Robinson <[email protected]> | 2011-09-10 21:02:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-10 21:02:50 -0700 |
commit | 4c8e6dead1742a2f363049a01e4ef18ae377b436 (patch) | |
tree | c28b038a8ec79f2c2d013d13ad5983d263340837 /OpenAL32 | |
parent | c19a7408d990f3f50c35be1c577ba2a9df13d903 (diff) |
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.
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alSource.c | 8 |
1 files 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: |