long long timeNs=0;
long timeoutUs=100000L;
if(isTransmitting()) {
- if (iqswap) {
- //
- // Here I assume that iqswap also applies to the TX samples
- //
- output_buffer[(output_buffer_index*2)]=qsample;
- output_buffer[(output_buffer_index*2)+1]=isample;
- } else {
+ //
+ // Seemingly "iqswap" ONLY applies to the RX samples. So
+ // the check on "iqswap" should *not* be made here (???)
+ //
+ //if (iqswap) {
+ // output_buffer[(output_buffer_index*2)]=qsample;
+ // output_buffer[(output_buffer_index*2)+1]=isample;
+ //} else {
output_buffer[(output_buffer_index*2)]=isample;
output_buffer[(output_buffer_index*2)+1]=qsample;
- }
+ //}
output_buffer_index++;
if(output_buffer_index>=max_tx_samples) {
int elements=SoapySDRDevice_writeStream(soapy_device,tx_stream,tx_buffs,max_tx_samples,&flags,timeNs,timeoutUs);