aboutsummaryrefslogtreecommitdiffstats
path: root/common/frequencies.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/frequencies.h')
-rw-r--r--common/frequencies.h27
1 files changed, 11 insertions, 16 deletions
diff --git a/common/frequencies.h b/common/frequencies.h
index 8f62e75..47cd7b7 100644
--- a/common/frequencies.h
+++ b/common/frequencies.h
@@ -5,13 +5,6 @@
*
* Frequencies are given in kHz
*/
-#define NTSC_AUDIO_CARRIER 4500
-#define PAL_AUDIO_CARRIER_I 6000
-#define PAL_AUDIO_CARRIER_BGHN 5500
-#define PAL_AUDIO_CARRIER_MN 4500
-#define PAL_AUDIO_CARRIER_D 6500
-#define SEACAM_AUDIO_DKK1L 6500
-#define SEACAM_AUDIO_BG 5500
/* NICAM 728 32-kHz, 14-bit digital stereo audio is transmitted in 1ms frames
containing 8 bits frame sync, 5 bits control, 11 bits additional data, and
704 bits audio data. The bit rate is reduced by transmitting only 10 bits
@@ -21,8 +14,6 @@
companeded audio data is interleaved to reduce the influence of dropouts
and the whole frame except for sync bits is scrambled for spectrum shaping.
Data is modulated using QPSK, at below following subcarrier freqs */
-#define NICAM728_PAL_BGH 5850
-#define NICAM728_PAL_I 6552
/* COMPREHENSIVE LIST OF FORMAT BY COUNTRY
(M) NTSC used in:
@@ -95,17 +86,21 @@ struct CHANLIST {
struct CHANLISTS {
char *name;
+ char *filename;
struct CHANLIST *list;
int count;
};
-#define CHAN_COUNT(x) (sizeof(x)/sizeof(struct CHANLIST))
-
/* --------------------------------------------------------------------- */
-extern struct CHANLISTS chanlists[];
-extern struct STRTAB chanlist_names[];
-
extern int chantab;
-extern struct CHANLIST *chanlist;
-extern int chancount;
+extern struct CHANLISTS *chanlists;
+extern struct STRTAB *chanlist_names;
+
+#define chanlist ((-1 != chantab) ? chanlists[chantab].list : NULL)
+#define chancount ((-1 != chantab) ? chanlists[chantab].count : 0)
+
+/* --------------------------------------------------------------------- */
+
+void freq_init(void);
+void freq_newtab(int n);

Privacy Policy