From 80bbf5a553e63494b5d115bca1cef07b77249eea Mon Sep 17 00:00:00 2001 From: wb2osz Date: Tue, 8 Aug 2023 00:02:44 +0100 Subject: [PATCH] FIX_BITS default to 0. --- src/audio.h | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/audio.h b/src/audio.h index 87d6c9c..cb5ca94 100644 --- a/src/audio.h +++ b/src/audio.h @@ -151,6 +151,17 @@ struct audio_s { struct achan_param_s { + // Currently, we have a fixed mapping from audio sources to channel. + // + // ADEVICE CHANNEL (mono) (stereo) + // 0 0 0, 1 + // 1 2 2, 3 + // 2 4 4, 5 + // + // A future feauture might allow the user to specify a different audio source. + // This would allow multiple modems (with associated channel) to share an audio source. + // int audio_source; // Default would be [0,1,2,3,4,5] + // What else should be moved out of structure and enlarged when NETTNC is implemented. ??? char mycall[AX25_MAX_ADDR_LEN]; /* Call associated with this radio channel. */ /* Could all be the same or different. */ @@ -415,7 +426,8 @@ struct audio_s { #define DEFAULT_BITS_PER_SAMPLE 16 -#define DEFAULT_FIX_BITS RETRY_INVERT_SINGLE +#define DEFAULT_FIX_BITS RETRY_NONE // Interesting research project but even a single bit fix up + // will occasionally let corrupted packets through. /* * Standard for AFSK on VHF FM. @@ -445,11 +457,11 @@ struct audio_s { */ #define DEFAULT_DWAIT 0 -#define DEFAULT_SLOTTIME 10 +#define DEFAULT_SLOTTIME 10 // *10mS = 100mS #define DEFAULT_PERSIST 63 -#define DEFAULT_TXDELAY 30 -#define DEFAULT_TXTAIL 10 -#define DEFAULT_FULLDUP 0 +#define DEFAULT_TXDELAY 30 // *10mS = 300mS +#define DEFAULT_TXTAIL 10 // *10mS = 100mS +#define DEFAULT_FULLDUP 0 // false = half duplex /* * Note that we have two versions of these in audio.c and audio_win.c.