I finally found the killer bug in my coherent PSK modem version. I had to switch to complex classes though, as the C style complex arrays didn't work. Probably some type of mutable problem, and probably not a good thing with multiple threads.
The problem is, my audio sounds so bad, I couldn't tell if it was the modem or the vocoder. So I looked at the vocoder and yep, it needed to have complex classes as well. Plus I found a few bugs. Alas, it still sounds like crap, but I'm getting closer! The modem is pretty neat though. I really enjoy making my way through the code. I don't know where you come up with all that magic David, but it sure is amazing. In troubleshooting I compared the amplitudes of various subroutines, until I found the one that was bonkers. The data when it is working, is pretty close, but there is a difference of about 3 to 4 decimal places. .001 to .005, which I guess is the difference between C float and Java doubles that I am using. I could probably go to floats, but it is such a casting nightmare, as Java has no trig functions except for doubles. Onward...
------------------------------------------------------------------------------
_______________________________________________ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
