diff options
author | Chris Robinson <[email protected]> | 2019-01-23 11:21:03 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-01-23 11:21:03 -0800 |
commit | d3842a632da8542ac0c8fbdff39dc3d4a25c1a16 (patch) | |
tree | 0ea1ff2d63f72c3fd70b90e177f77d77b86897b4 /Alc/mixvoice.cpp | |
parent | 23179d0bcdd27d2b5ab5ddf0e38b180e2d6969e6 (diff) |
Use template declarations for the normal mixing functions
Diffstat (limited to 'Alc/mixvoice.cpp')
-rw-r--r-- | Alc/mixvoice.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Alc/mixvoice.cpp b/Alc/mixvoice.cpp index fd379cd0..35828ea3 100644 --- a/Alc/mixvoice.cpp +++ b/Alc/mixvoice.cpp @@ -56,8 +56,8 @@ static_assert(MAX_RESAMPLE_PADDING >= 24, "MAX_RESAMPLE_PADDING must be at least Resampler ResamplerDefault = LinearResampler; -MixerFunc MixSamples = Mix_C; -RowMixerFunc MixRowSamples = MixRow_C; +MixerFunc MixSamples = Mix_<CTag>; +RowMixerFunc MixRowSamples = MixRow_<CTag>; static HrtfMixerFunc MixHrtfSamples = MixHrtf_C; static HrtfMixerBlendFunc MixHrtfBlendSamples = MixHrtfBlend_C; @@ -65,26 +65,26 @@ static MixerFunc SelectMixer() { #ifdef HAVE_NEON if((CPUCapFlags&CPU_CAP_NEON)) - return Mix_Neon; + return Mix_<NEONTag>; #endif #ifdef HAVE_SSE if((CPUCapFlags&CPU_CAP_SSE)) - return Mix_SSE; + return Mix_<SSETag>; #endif - return Mix_C; + return Mix_<CTag>; } static RowMixerFunc SelectRowMixer() { #ifdef HAVE_NEON if((CPUCapFlags&CPU_CAP_NEON)) - return MixRow_Neon; + return MixRow_<NEONTag>; #endif #ifdef HAVE_SSE if((CPUCapFlags&CPU_CAP_SSE)) - return MixRow_SSE; + return MixRow_<SSETag>; #endif - return MixRow_C; + return MixRow_<CTag>; } static inline HrtfMixerFunc SelectHrtfMixer() |