I tried to compile and use this sample code on Mac OS X 10.11.3 (latest version)
At first, I was getting this error like other users:
Then, I removed this section:Writing samples...
Short read, samples lost, exiting!
Library error 0, exiting...
Code: Select all
if ((uint32_t)n_read < out_block_size) {
fprintf(stderr, "Short read, samples lost, exiting!\n");
break;
}
Now the code works as expected (I've tested both 8 and 16-bit data samples)
I recorded some samples to a file. Converted it to 8-bit signed integer with this command:
sox -t raw -r 250000 -b 8 -c 1 -e unsigned-integer sdrplay_iq.raw -t raw -r 250000 -c 1 -e signed-integer sdrplay_converted.raw
Then I converted this file to a Gqrx compatible format, using this code:
https://gist.github.com/DrPaulBrewer/91 ... a51f7febb5
Now I can listen to the recorded FM station on Gqrx.
Note: I've set the sample rate to 1.536 Msps.