Good catch!
That works great now.
Thank you very much
In the meantime, I also tried to play with the hybrid node but could not compile the line:
hybrid.reset(HybridNode::Create(true,3,1,0,true,0,false));
The compilation returned a load error:
$ g++ arecord_lv.cc -o arecord_lv -lrespeaker -lsndfile -fPIC -std=c++11 -fpermissive -I/usr/include/respeaker/ -DWEBRTC_LINUX -DWEBRTC_POSIX -DWEBRTC_NS_FLOAT -DWEBRTC_APM_DEBUG_DUMP=0 -DWEBRTC_INTELLIGIBILITY_ENHANCE
/tmp/ccPFm7fm.o: In function main':<br/> arecord_lv.cc:(.text+0x812): undefined reference to
respeaker::HybridNode::Create(bool, int, int, int, bool, int, bool)’
collect2: error: ld returned 1 exit status
Do you know if this function is still in the new version of the library?
Thanks
Fred