<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Abadi Extra Light";
        panose-1:2 11 2 4 2 1 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-GB" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi everyone!</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying to create a sort of 3d audio reproduction system by convolving the dry sound with the BRIRs of a room.
</p>
<p class="MsoNormal">The patch I’m working on will be connected to a head-tracker so that I can change BRIR depending on the position of the listener.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To achieve this I tried to use bsaylor’s  [partconv~] but unfortunately, when I set a new impulse response, I have a short dead time. To fix this I tried to cross fade the output of two [partconv~] but this messes up the binaural cues,
 it is not the right approach. </p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My idea is that of modifying the .c code of the external to get what I need. Usually, I work on Code::Blocks, MinGW compiler, Win10. I’ve already built some super simple externals, but this time I’m facing a problem that I’ve never encountered
 before: to perform the Fourier transform, partconv~.c uses the fftw3 library, and  I couldn’t find a way to add it to the Linker Options.
</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">From what I’ve understood online, fftw3 is a dynamic library, therefore there’s no .lib file. On Code::Blocks Settings -> Compiler -> Linker Settings -> Link libraries I cannot load a .dll dynamic library. I tried different solutions that
 I found online but none of those worked. I get “<span style="font-family:"Abadi Extra Light",sans-serif">undefined reference to</span>” errors when calling all the fftw3 functions.</p>
<p class="MsoNormal">Can any of you help me somehow? If you were able to write an external that referred to the fftw3 library, how was your setup?
</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Moreover, I saw that in the bsaylor’s  library folder there are also files of the type .dsp, .dsw, .o. Once I modify the .c code, should I update those as well?
</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I hope that I stated my issue clearly, if now please ask me for further details.</p>
<p class="MsoNormal">Thank you in advance for your time.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Gloria </p>
</div>
</body>
</html>