From 18096014ad9d8b97ec1322f0bca55c148dd911fb Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 6 Oct 2020 10:17:37 -0400 Subject: [PATCH] cwAudioFileOps.cp : Added 'irEnableFl' parameter to transform app. --- cwAudioFileOps.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cwAudioFileOps.cpp b/cwAudioFileOps.cpp index 468f32a..3c2376f 100644 --- a/cwAudioFileOps.cpp +++ b/cwAudioFileOps.cpp @@ -722,6 +722,7 @@ cw::rc_t cw::afop::transformApp( const object_t* cfg ) const char* dstRevFn = nullptr; unsigned dstBits = 16; const object_t* argNodeL = nullptr; + bool irEnableFl=false; const char* irFn = nullptr; double irScale = 1; @@ -734,7 +735,7 @@ cw::rc_t cw::afop::transformApp( const object_t* cfg ) unsigned i; // read the top level cfg record - if((rc = cfg->getv("dstPreFn",dstPreFn,"dstRevFn",dstRevFn,"dstBits",dstBits,"srcDir",srcDir,"argL",argNodeL,"dryFn",dryFn,"irFn",irFn,"irScale",irScale)) != kOkRC ) + if((rc = cfg->getv("dstPreFn",dstPreFn,"dstRevFn",dstRevFn,"dstBits",dstBits,"srcDir",srcDir,"argL",argNodeL,"dryFn",dryFn,"irEnableFl",irEnableFl,"irFn",irFn,"irScale",irScale)) != kOkRC ) goto errLabel; @@ -792,7 +793,7 @@ cw::rc_t cw::afop::transformApp( const object_t* cfg ) for(unsigned i=0; i(argL[i].srcFn)); - if( rc == kOkRC ) + if( rc == kOkRC && irEnableFl ) rc = convolve( expDstRevFn, dstBits, expDstPreFn, expIrFn, irScale ); }