aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-31 14:53:28 -0700
committerChris Robinson <[email protected]>2019-08-31 14:53:28 -0700
commita546343148ad87786b1a199e9ca91ffc50da4e81 (patch)
tree0b7f6a82fdf02478d3f7800375106e5586364556 /alc/alu.cpp
parent5b6772440a60399a662877b953b36164f33dc7d8 (diff)
Make MixVoice a member function
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r--alc/alu.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index 7f3f286b..869346c4 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -1368,11 +1368,7 @@ void ProcessContext(ALCcontext *ctx, const ALuint SamplesToDo)
[SamplesToDo,ctx](ALvoice &voice) -> void
{
const ALvoice::State vstate{voice.mPlayState.load(std::memory_order_acquire)};
- if(vstate == ALvoice::Stopped) return;
- const ALuint sid{voice.mSourceID.load(std::memory_order_relaxed)};
- if(voice.mStep < 1) return;
-
- MixVoice(&voice, vstate, sid, ctx, SamplesToDo);
+ if(vstate != ALvoice::Stopped) voice.mix(vstate, ctx, SamplesToDo);
}
);