From 23c8a35505fe6ab7a5c87754911a133b23ac75cf Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 5 Jan 2023 01:47:55 -0800 Subject: Add and use mixers that process one input and output channel --- core/voice.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'core/voice.cpp') diff --git a/core/voice.cpp b/core/voice.cpp index 1b979614..5fa9f677 100644 --- a/core/voice.cpp +++ b/core/voice.cpp @@ -84,6 +84,19 @@ inline MixerOutFunc SelectMixer() return Mix_; } +inline MixerOneFunc SelectMixerOne() +{ +#ifdef HAVE_NEON + if((CPUCapFlags&CPU_CAP_NEON)) + return Mix_; +#endif +#ifdef HAVE_SSE + if((CPUCapFlags&CPU_CAP_SSE)) + return Mix_; +#endif + return Mix_; +} + inline HrtfMixerFunc SelectHrtfMixer() { #ifdef HAVE_NEON @@ -153,6 +166,7 @@ void Voice::InitMixer(al::optional resampler) } MixSamplesOut = SelectMixer(); + MixSamplesOne = SelectMixerOne(); MixHrtfBlendSamples = SelectHrtfBlendMixer(); MixHrtfSamples = SelectHrtfMixer(); } -- cgit v1.2.3