(According to this post by user 0815: viewtopic.php?f=9&t=541&start=10#p2265 )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.rawThen 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.

Your updated version of rawIQ.c this seems to work fine on my Ubuntu system for continuous data storage to file! This code doesn't include a parameter allowing the bandwidth to be set, but it looks like that should be easy to include in the mir_sdr_Init routine.

Dear SDRPlay TeamCan you please help regarding the 8 vs 16-bit issue?What is lost when we use your sample code (which truncates I/Q samples to 8-bits)?I tried to convert 16-bit stored samples to another format (Gqrx or SDRSharp) but haven't succeeded so far.Even a simple hint would be appreciated.

sdrplay wrote:The output of the RSP is 16 bits. To be compatible with the RTL code you need to remove the top 8 bits which is what...

>> 8

is doing

In the ADS-B code we have to do >> 8 + 127

so you can try with that as well.

Hope that helps,

Best regards,

SDRplay Support

I'm puzzled. If we remove the top 8 bits and then add a constant value (127) to it, we're always losing some data (the upper half which is truncated and later replaced by 127)What I meant was: how to use the original 16-bit I/Q samples (RTL-SDR and HackRF use 8-bit samples, but higher level SDRs like USRP and BladeRF use 16-bit samples. I'm trying to use all the 16-bit data, like those high-end SDRs)

0815 wrote:i am not sure about the 16bit output if it is valid,when i play it it sounds too fast....... like played double speed....

I have the same problem.(I've changed the original source code to write 16-bit samples to file. Then converted the raw IQ file with sox, to change from unsigned-integer type to signed-integer. Then, using the modified rtl2gqrx utility, converted it to Gqrx compatible format. Gqrx can play it, but it's like double speed)My source code is attached)