#PI_SDR_INCLUDE=PI_SDR
# uncomment the line below to include MIDI support
-#MIDI_INCLUDE=MIDI
+MIDI_INCLUDE=MIDI
#uncomment the line below for the platform being compiled on (actually not used)
UNAME_N=raspberrypi
endif
# uncomment the line below for SoapySDR
-SOAPYSDR_INCLUDE=SOAPYSDR
+#SOAPYSDR_INCLUDE=SOAPYSDR
ifeq ($(SOAPYSDR_INCLUDE),SOAPYSDR)
SOAPYSDR_OPTIONS=-D SOAPYSDR
case NEW_PROTOCOL:
mic_buffer_size = 64;
break;
+#ifdef SOAPYSDR
case SOAPYSDR_PROTOCOL:
mic_buffer_size = 720;
break;
+#endif
default:
break;
}
#ifdef SOAPYSDR
struct soapy {
char version[128];
+ char hardware_key[64];
+ char driver_key[64];
int rtlsdr_count;
int sample_rate;
size_t rx_channels;
#ifdef SOAPYSDR
case SOAPYSDR_PROTOCOL:
can_transmit=(radio->info.soapy.tx_channels!=0);
+ g_print("start_radio: can_transmit=%d tx_channels=%d\n",can_transmit,radio->info.soapy.tx_channels);
break;
#endif
}
- g_print("start_radio: can_transmit=%d tx_channels=%d\n",can_transmit,radio->info.soapy.tx_channels);
#ifdef MIDI
MIDIstartup();
receiver_restore_state(rx);
+#ifdef SOAPYSDR
rx->resample_step=radio->info.soapy.sample_rate/rx->sample_rate;
+#else
+ rx->resample_step=1;
+#endif
fprintf(stderr,"create_receiver (after restore): rx=%p id=%d local_audio=%d\n",rx,rx->id,rx->local_audio);
int scale=rx->sample_rate/48000;
// filter
- cairo_set_source_rgba (cr, 0.75, 0.75, 0.00, 0.75);
+ cairo_set_source_rgba (cr, 0.50, 0.50, 0.50, 0.75);
filter_left =-cwshift+(double)display_width/2.0+(((double)rx->filter_low+vfo[rx->id].offset)/rx->hz_per_pixel);
filter_right=-cwshift+(double)display_width/2.0+(((double)rx->filter_high+vfo[rx->id].offset)/rx->hz_per_pixel);
cairo_rectangle(cr, filter_left, 0.0, filter_right-filter_left, (double)display_height);
discovered[devices].software_version=software_version;
discovered[devices].frequency_min=ranges[0].minimum;
discovered[devices].frequency_max=ranges[0].maximum;
+ strcpy(discovered[devices].info.soapy.driver_key,driverkey);
+ strcpy(discovered[devices].info.soapy.hardware_key,hardwarekey);
discovered[devices].info.soapy.sample_rate=sample_rate;
if(strcmp(driver,"rtlsdr")==0) {
discovered[devices].info.soapy.rtlsdr_count=rtlsdr_val;
vfo[i].band=band20;
vfo[i].bandstack=0;
+ vfo[i].frequency=14010000;
+#ifdef SOAPYSDR
if(radio->protocol==SOAPYSDR_PROTOCOL) {
vfo[i].frequency=144010000;
- } else {
- vfo[i].frequency=14010000;
}
+#endif
vfo[i].mode=modeCWU;
vfo[i].filter=6;
vfo[i].lo=0;