From 9f49f6cab06374d6f5a4e1ab63f1532bf79d4cb2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 18 Feb 2023 17:16:00 -0800 Subject: Track the callback buffer base separately Instead of recalculating it all the time, even for sources that don't use callback buffers. --- al/source.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'al/source.cpp') diff --git a/al/source.cpp b/al/source.cpp index 7db175ef..d3468628 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -539,6 +539,7 @@ void InitVoice(Voice *voice, ALsource *source, ALbufferQueueItem *BufferList, AL if(buffer->mCallback) voice->mFlags.set(VoiceIsCallback); else if(source->SourceType == AL_STATIC) voice->mFlags.set(VoiceIsStatic); voice->mNumCallbackBlocks = 0; + voice->mCallbackBlockBase = 0; voice->prepare(device); -- cgit v1.2.3