diff --git a/src/libmobile/sender.c b/src/libmobile/sender.c index f0152b5..1dcfc22 100644 --- a/src/libmobile/sender.c +++ b/src/libmobile/sender.c @@ -61,6 +61,12 @@ int sender_create(sender_t *sender, int kanal, double sendefrequenz, double empf if (use_sdr) sender->rx_gain = 1.0; + if (samplerate < 8000) { + PDEBUG(DSENDER, DEBUG_NOTICE, "Given sample rate is below 8 KHz. Please use higher sample rate!\n"); + rc = -EINVAL; + goto error; + } + PDEBUG_CHAN(DSENDER, DEBUG_DEBUG, "Creating 'Sender' instance\n"); /* if we find a channel that uses the same device as we do,