aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-03-10 11:52:39 -0700
committerChris Robinson <[email protected]>2019-03-10 11:52:39 -0700
commit0d295cf81192c6fa39714feae81102255afbe501 (patch)
treeea21baeeb9339b4bdd334d76254a9a91cb5e0ccd /OpenAL32/alSource.cpp
parente5651c15dd1f296f0acf7448954fcb36df8a4abc (diff)
Don't directly use a buffer for updating source parameters
Diffstat (limited to 'OpenAL32/alSource.cpp')
-rw-r--r--OpenAL32/alSource.cpp2
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);
}