From c10395865cc76a2911f2c4adab1ba566644b4737 Mon Sep 17 00:00:00 2001 From: David Reid Date: Mon, 21 May 2018 18:54:04 +1000 Subject: [PATCH] Add sinc config settings to mal_dsp_config. --- mini_al.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mini_al.h b/mini_al.h index a6378323..84fbaac2 100644 --- a/mini_al.h +++ b/mini_al.h @@ -940,6 +940,14 @@ typedef struct mal_bool32 allowDynamicSampleRate; mal_dsp_read_proc onRead; void* pUserData; + union + { + struct + { + mal_src_sinc_window_function windowFunction; + mal_uint32 windowWidth; + } sinc; + }; } mal_dsp_config; MAL_ALIGNED_STRUCT(MAL_SIMD_ALIGNMENT) mal_dsp @@ -20444,6 +20452,7 @@ mal_result mal_dsp_init(const mal_dsp_config* pConfig, mal_dsp* pDSP) srcConfig.algorithm = pConfig->srcAlgorithm; srcConfig.onReadDeinterleaved = mal_dsp__src_on_read_deinterleaved; srcConfig.pUserData = pDSP; + mal_copy_memory(&srcConfig.sinc, &pConfig->sinc, sizeof(pConfig->sinc)); result = mal_src_init(&srcConfig, &pDSP->src); if (result != MAL_SUCCESS) { return result;