Closed Frank-Buss closed 8 months ago
Thanks for your fix. Looks like I left something ugly from debugging.
Since the code doesn't support wav
files, there's nothing lost from dropping the .wav
test file, right? (especially since it's the same?)
I'm not too eager to add .wav
file support, since it's it's not a format you can stream. I'd accept a well written PR, but seems to me better to stay with streamable formats, and convert any .wav
files before/after.
I'm not ashamed to say that Direwolf is currently a better decoder. This is for 9600bps, but this code is lagging behind in 1200bps too. This doc says direwolf decodes 1011 packets from track 1 of the wb2osz test CD (IIRC track 2 is actually incorrectly distorted, and not suitable for comparison), while my example ax25-1200-rx
can only do 909 decodes (confirmed both before and after your patch).
But its decoding performance is not due to the .au
file reader, but due to the clock recovery. Rustradio needs a better clock recovery block. Possibly by tuning the existing clock recovery, we can make the testdata decode. So it's good to have it in there.
I can't compare how well the WPCR would do, since it requires raw I/Q, and unfortunately the WB2OSZ data is post FM-demodulation audio. And merely converting to I/Q now won't help, since it needs the signal strength that was lost in the demod.
Just checking if you had plans in PRs or otherwise for the wav file. If it's not needed you can remove it from the PR, or if you prefer, I'm happy to do it.
Thanks again!
You are right, the wav file is not needed, was the same, I removed it. I created an amended commit to avoid cluttering the history.
Thanks!
This PR fixes the AU reader. Some AU files have only 32 bytes header size. This resulted in this bug:
The au file was created from a wav file with this command:
Both files are now also in the testdata directory. With the fix it can read the AU file:
Note that the program couldn't decode the test file, there is one record in it. direwolf-1.7.0-9807304 can do it:
Not sure if maybe the AU reader has still a problem, but this is a new issue after this is merged.