diff options
author | Chris Robinson <[email protected]> | 2019-03-10 11:52:39 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-03-10 11:52:39 -0700 |
commit | 0d295cf81192c6fa39714feae81102255afbe501 (patch) | |
tree | ea21baeeb9339b4bdd334d76254a9a91cb5e0ccd /OpenAL32/alSource.cpp | |
parent | e5651c15dd1f296f0acf7448954fcb36df8a4abc (diff) |
Don't directly use a buffer for updating source parameters
Diffstat (limited to 'OpenAL32/alSource.cpp')
-rw-r--r-- | OpenAL32/alSource.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp index 9749e47c..1163fae3 100644 --- a/OpenAL32/alSource.cpp +++ b/OpenAL32/alSource.cpp @@ -2849,6 +2849,8 @@ AL_API ALvoid AL_APIENTRY alSourcePlayv(ALsizei n, const ALuint *sources) std::bind(std::not_equal_to<const ALbuffer*>{}, _1, nullptr)); if(buffer != buffers_end) { + voice->Frequency = (*buffer)->Frequency; + voice->Channels = (*buffer)->mFmtChannels; voice->NumChannels = ChannelsFromFmt((*buffer)->mFmtChannels); voice->SampleSize = BytesFromFmt((*buffer)->mFmtType); } |