Radio: Minor fixes

This commit is contained in:
Andreas Eversberg 2018-11-10 14:46:53 +01:00
parent 73757ba083
commit e8429166c3
2 changed files with 4 additions and 2 deletions

View File

@ -131,7 +131,7 @@ void print_help(const char *arg0)
printf(" -D --deviation\n");
printf(" Give deviation of frequency modulated signal. (default %.0f)\n", deviation);
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(" 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);

View File

@ -146,7 +146,7 @@ int radio_init(radio_t *radio, int latspl, int samplerate, const char *tx_wave_f
if (rx_wave_file) {
/* open wave file */
radio->rx_audio_samplerate = 4800;
radio->rx_audio_samplerate = 48000;
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);
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");
goto error;
#endif
#if 0
} else {
rc = -ENOTSUP;
PDEBUG(DRADIO, DEBUG_ERROR, "No RX audio sink is selected, try \"--audio-device default\"!\n");
goto error;
#endif
}
/* check if sample rate is too low */