and not implemented correctly.
#endif
micoutputsamples=buffer_size*4;
-#if 0
- // now done in radio.c
+// if(local_audio) {
+// if(audio_open_output()!=0) {
+// g_print("audio_open_output failed\n");
+// local_audio=0;
+// }
+// }
+
if(transmitter->local_microphone) {
if(audio_open_input()!=0) {
g_print("audio_open_input failed\n");
transmitter->local_microphone=0;
}
}
-#endif
#ifdef INCLUDED
new_protocol_calc_buffers();
old_protocol_set_mic_sample_rate(rate);
-#if 0
- //
- // Now done in radio.c, because local mic option is not yet
- // read in when calling old_protocol_init
- //
if(transmitter->local_microphone) {
if(audio_open_input()!=0) {
g_print("audio_open_input failed\n");
transmitter->local_microphone=0;
}
}
-#endif
display_width=pixels;
radioRestoreState();
- //
- // This must come *after* radioRestoreState since this
- // reads the local audio settings from the props file
- // (and this is now removed from *_protocol_init and create_receiver)
- //
-
- for(int i=0;i<receivers;i++) {
- receiver_restore_state(receiver[i]);
- if(receiver[i]->local_audio) {
- if (audio_open_output(receiver[i]) < 0) receiver[i]->local_audio=0;
- }
- }
- if(transmitter->local_microphone && can_transmit) {
- if(audio_open_input()!=0) {
- g_print("audio_open_input failed\n");
- transmitter->local_microphone=0;
- }
- }
-
-
//
// It is possible that an option has been read in
// which is not compatible with the hardware.
create_visual(rx);
-#if 0
-// now done in radio.c
fprintf(stderr,"create_receiver: rx=%p id=%d local_audio=%d\n",rx,rx->id,rx->local_audio);
if(rx->local_audio) {
if (audio_open_output(rx) < 0) rx->local_audio=0;
}
-#endif
return rx;
}
}
SoapySDRKwargs_clear(&args);
-#if 0
- // now done in radio.c
if(can_transmit) {
if(transmitter->local_microphone) {
if(audio_open_input()!=0) {
}
}
}
-#endif
}