aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2018-11-10 14:46:53 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2018-11-10 15:18:28 +0100
commite8429166c3bfa5077d0dc353f345834e831f3e34 (patch)
tree362a7edeffb2f87cc9e7f0f58ecb88b38d517c16
parent73757ba083490ffed8a8d1f8b70129873a1c92bc (diff)
Radio: Minor fixes
-rw-r--r--src/radio/main.c2
-rw-r--r--src/radio/radio.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/radio/main.c b/src/radio/main.c
index 1c399c5..89b221c 100644
--- a/src/radio/main.c
+++ b/src/radio/main.c
@@ -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);
diff --git a/src/radio/radio.c b/src/radio/radio.c
index a071fac..2466364 100644
--- a/src/radio/radio.c
+++ b/src/radio/radio.c
@@ -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 */