Search found 4 matches

by linqdan2000
Fri Jul 12, 2019 1:46 pm
Forum: Code Corner
Topic: Resampling
Replies: 20
Views: 130088

Re: Resampling

Hi Steve [...] In the meantime, I've changed the code so that streaming is started before setting a decimation factor. In addition, I've added some very basic sanity checks, and another function that reports any errors to the console, along with a brief description of the error. The revised code is...
by linqdan2000
Tue Jun 04, 2019 7:00 pm
Forum: Code Corner
Topic: Sample rate and buffering samples retrieved
Replies: 4
Views: 41713

Re: Sample rate and buffering samples retrieved

Actually, you can divide by decimation factor that is not power of 2 as long as it is evenly divisible. You might be talking about the sdr play's API function mir_sdr_DecimateControl() to decimate which I was not using originally. The docs say to use a power of 2. Decimation https://dspguru.com/dsp/...
by linqdan2000
Thu May 16, 2019 6:53 pm
Forum: Code Corner
Topic: Sample rate and buffering samples retrieved
Replies: 4
Views: 41713

Re: Sample rate and buffering samples retrieved from the SDRplay

I am replying to my own email in case others are curious. I think you need to understand various DSP concepts especially filters, decimation, convolution, and iterpolation. I already have code that works on a sample rate of 192,000 that can demodulate, filter, and decimate by a factor of 4 to give a...
by linqdan2000
Tue May 14, 2019 7:23 pm
Forum: Code Corner
Topic: Sample rate and buffering samples retrieved
Replies: 4
Views: 41713

Sample rate and buffering samples retrieved

Can you tell me what does "Sample Rate" mean? I think the minimum the Mir API will allow is 2048000. Is this "Samples per second", "Bits per second" or "Bytes per second"? Looks like each time I get a packet of samples, I get 336 samples. Each sample is 2 shorts. One short is for I and the other sho...