<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Yep, yep, yep, i get it...<br><br>I will (try) to explain the thing...<br>The error comes mainly because i was focused on SoundTouchDLL.h. (Thanks to Ludo).<br><br>That wrapper is for windows only.<br><br>Before to call a DSP-buffer-procedure, you must do :<br>FHandle := soundtouch_createInstance(); <br><br>But the result of nm libSoundTouch.so gives 3 different soundtouch_createInstance() :<br><br>_ZN10soundtouch14TransposerBase11newInstanceEv<br>_ZN10soundtouch9FIRFilter11newInstanceEv<br>_ZN10soundtouch9TDStretch11newInstanceEv<br><br>The same (for example) for setChannels :<br><br>_ZN10soundtouch14TransposerBase11setChannelsEi<br>_ZN10soundtouch9TDStretch11setChannelsEi<br>_ZN10soundtouch14RateTransposer11setChannelsEi<br><br>And after creating new instance, you must use the procedure of the kind of instance :<br>_ZN10soundtouch9TDStretch11newInstanceEv<br>with _ZN10soundtouch9TDStretch11setChannelsEi<br><br>And all the procedures defined by SoundTouchDLL.h are not working because the "general" function soundtouch_createInstance() is not part of the library ( or i do not find it ) , all the "general" soundtouch procedure cannot work :<br><br>ZN10soundtouch10SoundTouch11setChannelsEj (and all the "general" others)<br>______________<br><br>Now, conclusion of that hard battle :<br><br>1) With fpc, there is ALWAYS a solution.<br>2) Without the help of Ludo,<i> </i>Ewald and Marco i never would find that solution.<br>3) If you want create pascal wrappers I highly recommend to use "nm the_problematic_lib.so" and analyse carefully the result.<br>4) Dynlibs.pas is working perfectly and (for me) one of the most important part of fpc (because it opens fpc to other worlds).<br><br>Biggest thank for helping.<br>Have perfect days.<br><br>PS : I will post the definitive wrapper when everything is working.<br> </div></body>
</html>