Resampling

Add useful snippets of code or links to entire SDR projects.
n2ic
Posts: 24
Joined: Sat May 28, 2016 7:26 pm

Re: Resampling

Postby n2ic » Tue Mar 27, 2018 10:31 pm

At the risk of showing just what a poor developer I am ...

Can anyone point me to C++ code that uses mir_sdr_StreamCallback ? I have looked at Steve Andrew's C# code, and have spent a day trying to figure out how to do that callback in C++.

Thanks,
Steve L

Reason: No reason

SteveAndrew
Posts: 113
Joined: Thu Nov 16, 2017 11:06 pm
Location: Gold Coast, QLD, Australia

Re: Resampling

Postby SteveAndrew » Wed Mar 28, 2018 12:57 am

Hi Steve

At the end of the API document there is a section marked API Usage. There is some simple code written in C/C++ that illustrates how mir_sdr_StreamInit and mir_sdr_StreamCallback are set up and used. It's written for Windows but should need little changing apart from the semaphores to get it running under various flavours of Unix/Linux. This should get the ball rolling for you. Just on the off-chance that you don't have the document, you can download it from here - https://www.sdrplay.com/docs/SDRplay_SD ... cation.pdf

On the off-chance you have not already done so, You can also download the required hardware drivers from https://www.sdrplay.com/downloads/

Good luck

Steve A

Reason: No reason

n2ic
Posts: 24
Joined: Sat May 28, 2016 7:26 pm

Re: Resampling

Postby n2ic » Wed Mar 28, 2018 1:31 am

Thanks ! I think I see what to do now. It helps to walk away and think about these things for a while.

Reason: No reason

sdrplay
Posts: 809
Joined: Wed Jan 07, 2015 7:58 am

Re: Resampling

Postby sdrplay » Wed Mar 28, 2018 5:42 am

We also have some example code on our github repository: https://github.com/SDRplay/examples

Best regards,

SDRplay Support

Reason: No reason

n2ic
Posts: 24
Joined: Sat May 28, 2016 7:26 pm

Re: Resampling

Postby n2ic » Thu Apr 12, 2018 7:33 pm

Thanks to Steve Andrews and the SDRPlay staff for their help. After some hair-pulling, I now have a DLL working using the mir streaming API that samples and decimates to 192 kHz, feeding I/Q samples to VE3NEA's Skimmer Server ( http://www.dxatlas.com/SkimServer/ ). I plan to make this available for free to anyone interested.

Steve L

Reason: No reason


Return to “Code Corner”

Who is online

Users browsing this forum: No registered users and 2 guests