Fixed typos in cli output and source code comments
This commit is contained in:
committed by
Andreas Eversberg
parent
97636aac1e
commit
a07764f0d9
@@ -170,7 +170,7 @@ again:
|
||||
goto again;
|
||||
}
|
||||
|
||||
/* loop that gets audio from encoder and fowards it to sound card.
|
||||
/* loop that gets audio from encoder and forwards it to sound card.
|
||||
* alternatively a sound file is written.
|
||||
*/
|
||||
static void process_signal(void)
|
||||
|
@@ -50,7 +50,7 @@
|
||||
*/
|
||||
#define RX_MIN_FREQ 50.0 /* minimum frequency error to detect tone */
|
||||
#define MAX_DISPLAY (MAX_DEVIATION / SPEECH_DEVIATION)/* as much as MAX_DEVIATION */
|
||||
/* Note that FILTER_BW / SUSTAIN and QUAL_TIME sum up and should not exeed minimum tone length */
|
||||
/* Note that FILTER_BW / SUSTAIN and QUAL_TIME sum up and should not exceed minimum tone length */
|
||||
#define RX_FILTER_BW 100.0 /* amplitude filter (causes delay) */
|
||||
#define RX_SUSTAIN 0.010 /* how long a tone must sustain until detected (causes delay) */
|
||||
#define RX_QUAL_TIME 0.005 /* how long a quality measurement lasts after detecting a tone */
|
||||
@@ -164,7 +164,7 @@ int dsp_init_transceiver(imts_t *imts, double squelch_db, int ptt)
|
||||
|
||||
/* delay buffer */
|
||||
if (ptt) {
|
||||
PDEBUG_CHAN(DDSP, DEBUG_DEBUG, "Push to talk: Adding delay buffer to remove noise when singal gets lost.\n");
|
||||
PDEBUG_CHAN(DDSP, DEBUG_DEBUG, "Push to talk: Adding delay buffer to remove noise when signal gets lost.\n");
|
||||
imts->delay_max = (int)((double)imts->sender.samplerate * DELAY_TIME);
|
||||
imts->delay_spl = calloc(imts->delay_max, sizeof(*imts->delay_spl));
|
||||
if (!imts->delay_spl) {
|
||||
|
@@ -23,7 +23,7 @@
|
||||
*
|
||||
* There are call states defined by imts->state.
|
||||
* imts_receive_tone() is called whenever a tone/silence/noise is detected.
|
||||
* imts_lost_tone() is calles as soon as (only) a tone is gone.
|
||||
* imts_lost_tone() is calls as soon as (only) a tone is gone.
|
||||
* imts_timeout() is called when the timer has timed out.
|
||||
* All these callbacks are used to process the call setup and disconnect.
|
||||
* The imts_timeout() function will not only handle failures due to timeouts,
|
||||
@@ -532,7 +532,7 @@ void imts_signal_indication(imts_t *imts)
|
||||
{
|
||||
/* setup a call from mobile to base station */
|
||||
if (imts->mode == MODE_MTS && imts->state == IMTS_IDLE) {
|
||||
PDEBUG_CHAN(DIMTS, DEBUG_INFO, "Detectes RF signal in IDLE mode, calling the opterator at '%s'.\n", imts->operator);
|
||||
PDEBUG_CHAN(DIMTS, DEBUG_INFO, "Detects RF signal in IDLE mode, calling the opterator at '%s'.\n", imts->operator);
|
||||
imts->callref = call_up_setup(NULL, imts->operator, OSMO_CC_NETWORK_MTS_NONE, "");
|
||||
imts_new_state(imts, IMTS_CONVERSATION);
|
||||
imts_set_dsp_mode(imts, DSP_MODE_AUDIO, 0, 0.0, 0);
|
||||
|
@@ -69,9 +69,9 @@ void print_help(const char *arg0)
|
||||
printf(" To compensate audio processing latency, give delay when to respond,\n");
|
||||
printf(" after detection of Guard tone from mobile phone.\n");
|
||||
printf(" Run software in loopback mode '-l 2' to measure round trip delay.\n");
|
||||
printf(" Substract delay from 350 ms. If the phone has different Guard tone\n");
|
||||
printf(" length, substract from that value.\n");
|
||||
printf(" -D --detector-test <idle length> <seize lenght> <silence length>\n");
|
||||
printf(" Subtract delay from 350 ms. If the phone has different Guard tone\n");
|
||||
printf(" length, subtract from that value.\n");
|
||||
printf(" -D --detector-test <idle length> <seize length> <silence length>\n");
|
||||
printf(" Transmit detector test signal, to adjust decoder inside mobile phone.\n");
|
||||
printf(" Give length of idle / seize and silence in seconds. Listen to it with\n");
|
||||
printf(" a radio receiver. To exclude an element, set its length to '0'.\n");
|
||||
@@ -84,7 +84,7 @@ void print_help(const char *arg0)
|
||||
printf(" Because there is no dial on the mobile phone, operator assistance is\n");
|
||||
printf(" required to complete the call.\n");
|
||||
printf(" By default, the operator '%s' is dialed.\n", operator);
|
||||
printf(" -D --detector-test <600 Hz length> <1500 Hz lenght> <silence length>\n");
|
||||
printf(" -D --detector-test <600 Hz length> <1500 Hz length> <silence length>\n");
|
||||
printf(" Transmit detector test signal, to adjust decoder inside MTS phone.\n");
|
||||
printf(" Give length of 600/1500 Hz and silence in seconds. Listen to it with\n");
|
||||
printf(" a radio receiver. To exclude an element, set its length to '0'.\n");
|
||||
|
Reference in New Issue
Block a user