Skip to content

Commit 80bbf5a

Browse files
committed
FIX_BITS default to 0.
1 parent 790c8ab commit 80bbf5a

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

src/audio.h

+17-5
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,17 @@ struct audio_s {
151151

152152
struct achan_param_s {
153153

154+
// Currently, we have a fixed mapping from audio sources to channel.
155+
//
156+
// ADEVICE CHANNEL (mono) (stereo)
157+
// 0 0 0, 1
158+
// 1 2 2, 3
159+
// 2 4 4, 5
160+
//
161+
// A future feauture might allow the user to specify a different audio source.
162+
// This would allow multiple modems (with associated channel) to share an audio source.
163+
// int audio_source; // Default would be [0,1,2,3,4,5]
164+
154165
// What else should be moved out of structure and enlarged when NETTNC is implemented. ???
155166
char mycall[AX25_MAX_ADDR_LEN]; /* Call associated with this radio channel. */
156167
/* Could all be the same or different. */
@@ -415,7 +426,8 @@ struct audio_s {
415426

416427
#define DEFAULT_BITS_PER_SAMPLE 16
417428

418-
#define DEFAULT_FIX_BITS RETRY_INVERT_SINGLE
429+
#define DEFAULT_FIX_BITS RETRY_NONE // Interesting research project but even a single bit fix up
430+
// will occasionally let corrupted packets through.
419431

420432
/*
421433
* Standard for AFSK on VHF FM.
@@ -445,11 +457,11 @@ struct audio_s {
445457
*/
446458

447459
#define DEFAULT_DWAIT 0
448-
#define DEFAULT_SLOTTIME 10
460+
#define DEFAULT_SLOTTIME 10 // *10mS = 100mS
449461
#define DEFAULT_PERSIST 63
450-
#define DEFAULT_TXDELAY 30
451-
#define DEFAULT_TXTAIL 10
452-
#define DEFAULT_FULLDUP 0
462+
#define DEFAULT_TXDELAY 30 // *10mS = 300mS
463+
#define DEFAULT_TXTAIL 10 // *10mS = 100mS
464+
#define DEFAULT_FULLDUP 0 // false = half duplex
453465

454466
/*
455467
* Note that we have two versions of these in audio.c and audio_win.c.

0 commit comments

Comments
 (0)