From 5008024e73e7451c25a4c8729bfb636699615e8e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 16 Aug 2017 18:09:53 -0700 Subject: Store the sinc4 table in the filter state Also rename the resampler functions to remove the unnecessary '32' token. --- Alc/mixer.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'Alc/mixer.c') diff --git a/Alc/mixer.c b/Alc/mixer.c index ff16452f..bb71fde4 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -112,48 +112,48 @@ ResamplerFunc SelectResampler(enum Resampler resampler) switch(resampler) { case PointResampler: - return Resample_point32_C; + return Resample_point_C; case LinearResampler: #ifdef HAVE_NEON if((CPUCapFlags&CPU_CAP_NEON)) - return Resample_lerp32_Neon; + return Resample_lerp_Neon; #endif #ifdef HAVE_SSE4_1 if((CPUCapFlags&CPU_CAP_SSE4_1)) - return Resample_lerp32_SSE41; + return Resample_lerp_SSE41; #endif #ifdef HAVE_SSE2 if((CPUCapFlags&CPU_CAP_SSE2)) - return Resample_lerp32_SSE2; + return Resample_lerp_SSE2; #endif - return Resample_lerp32_C; + return Resample_lerp_C; case FIR4Resampler: #ifdef HAVE_NEON if((CPUCapFlags&CPU_CAP_NEON)) - return Resample_fir4_32_Neon; + return Resample_fir4_Neon; #endif #ifdef HAVE_SSE4_1 if((CPUCapFlags&CPU_CAP_SSE4_1)) - return Resample_fir4_32_SSE41; + return Resample_fir4_SSE41; #endif #ifdef HAVE_SSE3 if((CPUCapFlags&CPU_CAP_SSE3)) - return Resample_fir4_32_SSE3; + return Resample_fir4_SSE3; #endif - return Resample_fir4_32_C; + return Resample_fir4_C; case BSincResampler: #ifdef HAVE_NEON if((CPUCapFlags&CPU_CAP_NEON)) - return Resample_bsinc32_Neon; + return Resample_bsinc_Neon; #endif #ifdef HAVE_SSE if((CPUCapFlags&CPU_CAP_SSE)) - return Resample_bsinc32_SSE; + return Resample_bsinc_SSE; #endif - return Resample_bsinc32_C; + return Resample_bsinc_C; } - return Resample_point32_C; + return Resample_point_C; } @@ -312,7 +312,7 @@ ALboolean MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALsizei IrSize = (Device->HrtfHandle ? Device->HrtfHandle->irSize : 0); Resample = ((increment == FRACTIONONE && DataPosFrac == 0) ? - Resample_copy32_C : voice->Resampler); + Resample_copy_C : voice->Resampler); Counter = (voice->Flags&VOICE_IS_FADING) ? SamplesToDo : 0; firstpass = true; -- cgit v1.2.3