Radio: Minor fixes
This commit is contained in:
parent
73757ba083
commit
e8429166c3
|
@ -131,7 +131,7 @@ void print_help(const char *arg0)
|
||||||
printf(" -D --deviation\n");
|
printf(" -D --deviation\n");
|
||||||
printf(" Give deviation of frequency modulated signal. (default %.0f)\n", deviation);
|
printf(" Give deviation of frequency modulated signal. (default %.0f)\n", deviation);
|
||||||
printf(" -I --modulation-index 0..1\n");
|
printf(" -I --modulation-index 0..1\n");
|
||||||
printf(" Give modulation index of amplitude modulated signal. (default %.0f)\n", deviation);
|
printf(" Give modulation index of amplitude modulated signal. (default %.0f)\n", modulation_index);
|
||||||
printf(" -E --emphasis <uS> | 0\n");
|
printf(" -E --emphasis <uS> | 0\n");
|
||||||
printf(" Use given time constant of pre- and de-emphasis for frequency\n");
|
printf(" Use given time constant of pre- and de-emphasis for frequency\n");
|
||||||
printf(" modulation. Give 0 to disbale. (default = %.0f uS)\n", time_constant_us);
|
printf(" modulation. Give 0 to disbale. (default = %.0f uS)\n", time_constant_us);
|
||||||
|
|
|
@ -146,7 +146,7 @@ int radio_init(radio_t *radio, int latspl, int samplerate, const char *tx_wave_f
|
||||||
|
|
||||||
if (rx_wave_file) {
|
if (rx_wave_file) {
|
||||||
/* open wave file */
|
/* open wave file */
|
||||||
radio->rx_audio_samplerate = 4800;
|
radio->rx_audio_samplerate = 48000;
|
||||||
radio->rx_audio_channels = (radio->stereo) ? 2 : 1;
|
radio->rx_audio_channels = (radio->stereo) ? 2 : 1;
|
||||||
rc = wave_create_record(&radio->wave_rx_rec, rx_wave_file, radio->rx_audio_samplerate, radio->rx_audio_channels, 1.0);
|
rc = wave_create_record(&radio->wave_rx_rec, rx_wave_file, radio->rx_audio_samplerate, radio->rx_audio_channels, 1.0);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
|
@ -177,10 +177,12 @@ int radio_init(radio_t *radio, int latspl, int samplerate, const char *tx_wave_f
|
||||||
PDEBUG(DRADIO, DEBUG_ERROR, "No sound card support compiled in!\n");
|
PDEBUG(DRADIO, DEBUG_ERROR, "No sound card support compiled in!\n");
|
||||||
goto error;
|
goto error;
|
||||||
#endif
|
#endif
|
||||||
|
#if 0
|
||||||
} else {
|
} else {
|
||||||
rc = -ENOTSUP;
|
rc = -ENOTSUP;
|
||||||
PDEBUG(DRADIO, DEBUG_ERROR, "No RX audio sink is selected, try \"--audio-device default\"!\n");
|
PDEBUG(DRADIO, DEBUG_ERROR, "No RX audio sink is selected, try \"--audio-device default\"!\n");
|
||||||
goto error;
|
goto error;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check if sample rate is too low */
|
/* check if sample rate is too low */
|
||||||
|
|
Loading…
Reference in New Issue