pothosware/SoapyRemote

setupStream() arguments

Interceptor777 opened this issue · 1 comments

Hey all, this may seem like a dumb question but I'm honestly out of places to look so I thought I'd ask here.

I need to use the additional stream arguments in order to get streaming to work for my hardware (XTRX). Now this was easy enough using a python application, I just put down the arguments like example in the script and the arguments worked.

Now I'm trying to add those same arguments except this time my application is in C++ and I can't for the life of me figure out how to add these to the setupStream() function. Any help?

Perhaps a C++ example should be included in the wiki too since the majority of Soapy application are in C++.

Got it figured out.

SoapySDRKwargs args_ = {};
  
SoapySDRKwargs_set(&args_, "remote:window", "8192");
    
SoapySDRKwargs_set(&args_, "remote:mtu", "4096");
    
SoapySDRStream *rxStream;
    
rxStream = SoapySDRDevice_setupStream(sdr, SOAPY_SDR_RX, SOAPY_SDR_CF32, NULL, 0, &args_);