From b9e192b78a384ff13d87c606502373725042509c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 5 Nov 2015 09:42:08 -0800 Subject: Implement a band-limited sinc resampler This is essentially a 12-point sinc resampler, unless it's resampling to a rate higher than the output, at which point it will vary between 12 and 24 points and do anti-aliasing to avoid/reduce frequencies going over nyquist. Code provided by Christopher Fitzgerald. --- OpenAL32/Include/alSource.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenAL32/Include/alSource.h') diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index c101b321..13596161 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -37,6 +37,8 @@ typedef struct ALvoice { alignas(16) ALfloat PrevSamples[MAX_INPUT_CHANNELS][MAX_PRE_SAMPLES]; + BsincState SincState; + DirectParams Direct; SendParams Send[MAX_SENDS]; } ALvoice; -- cgit v1.2.3