Minimum frequency must be 8000 Hz
parent
8c6f78fd63
commit
37406db7e3
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue