From fbf641222551cff56459e3ca0aa99fdbef0b86e0 Mon Sep 17 00:00:00 2001 From: ess7 Date: Sun, 21 Oct 2018 06:35:13 +0800 Subject: [PATCH] Add cases for SincSampleQuad2N --- resample.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/resample.cpp b/resample.cpp index 71b6b27..a0eedbd 100644 --- a/resample.cpp +++ b/resample.cpp @@ -404,7 +404,20 @@ int WDL_Resampler::ResampleOut(WDL_ResampleSample *out, int nsamples_in, int nsa // not yet implemented } } else { - SINCSAMPLEN_LOOP(SincSampleQuad2N, nch) + switch (nch) { + case 2: + SINCSAMPLEN_LOOP(SincSampleQuad2N, 2) + break; + case 6: + SINCSAMPLEN_LOOP(SincSampleQuad2N, 6) + break; + case 8: + SINCSAMPLEN_LOOP(SincSampleQuad2N, 8) + break; + default: + SINCSAMPLEN_LOOP(SincSampleQuad2N, nch) + break; + } } } else if (nch == 1) {