<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello Eduardo,</p>
    <p>My first suggestion is to test with the built-in "PreGen" signal
      generator, being sure to use a tone frequency inside the filter
      bandwidth you specify.  I see in your code that you have
      experimented with that before as you have commented-out some calls
      to it.<br>
    </p>
    <p>73,</p>
    <p>Warren  NR0V<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 5/2/2017 5:00 AM, Eduardo Alonso
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAB0tz7Xg5vP5aKjsaB+Kit=4DYco1-fnVVAB8bXLKDYtTPcg9A@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span style="font-family:monospace,monospace">Hello
          friends,<br>
          Hello Matt,<br>
          <br>
          I am having problems in my first steps with WDSP library under
          linux.<br>
          With the very minimal example that I copy below, everything
          runs fine.<br>
          see: <a moz-do-not-send="true"
            href="http://ea3ghs.qrp.cat/332-tx-fm.png">http://ea3ghs.qrp.cat/332-tx-fm.png</a><br>
          <br>
          But if I call <span style="color:rgb(0,0,255)"><span
              style="background-color:rgb(255,255,255)">SetTXABandpassFreqs(1,-3000,3000)</span></span>
          the output signal disappears !!!.<br>
          <br>
          This problem also appears in other modes than FM.<br>
          I think I am not initializing correctly the library, but in<br>
          the documentation says nothing about the correct (init)
          procedure.<br>
          <br>
          Could you give some clues?<br>
          Thanks in advance,<br>
          Eduardo EA3GHS<br>
          <br>
          <span style="color:rgb(0,0,255)">//WDSP EXAMPLE<br>
            //complete code: <a moz-do-not-send="true"
              href="http://ea3ghs.qrp.cat/332c.tgz">http://ea3ghs.qrp.cat/332c.tgz</a><br>
            main()<br>
            {<br>
            SNDReset();<br>
            <br>
            OpenChannel(1, FRAMES, 2048, 48000, 48000, 48000, 1, 0,
            0.010, 0.025, 0.000, 0.010, 0);<br>
            SetTXAMode(1,TXA_FM);<br>
            TXASetNC(1, 2048);<br>
            TXASetMP(1, 0);<br>
            //SetTXABandpassFreqs(1,-3000,3000);  //if I activate this
            line, I will have no output signal<br>
            SetChannelState (1,1,1);<br>
            <br>
            while(1)<br>
                {<br>
                SNDRead(); //blocking read call<br>
               
            for(i=0;i<BUF;i++){in[i]=(double)rdbuf[i];in[i]/=0x7fff;}<br>
                e=0; do {fexchange0(1,in,out,&e);} while(e);<br>
                for(i=0;i<BUF;i++){wrbuf[i]=(s16)(out[i]*0x7fff);}<br>
                SNDWrite();<br>
                }<br>
            }<br>
            //END</span><br>
          <br>
          ps:<br>
          The library version is the Linux port from John Melton, and<br>
          inside comm.h appears a "(C) 2017 Warren Pratt, NR0V, Jae
          Stutzman, K5JAE"<br>
          see <a moz-do-not-send="true"
            href="http://ea3ghs.qrp.cat/332c.tgz">http://ea3ghs.qrp.cat/332c.tgz</a><br>
        </span><br>
      </div>
    </blockquote>
    <br>
  </body>
</html>