From 9cbc128a740105ffb0289e0bf2ea2cd788d132ae Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 5 Feb 2018 15:30:40 +0100 Subject: Remove toolame downmix as it is unused --- libtoolame-dab/options.h | 1 - libtoolame-dab/toolame.c | 9 --------- libtoolame-dab/toolame.h | 1 - 3 files changed, 11 deletions(-) (limited to 'libtoolame-dab') diff --git a/libtoolame-dab/options.h b/libtoolame-dab/options.h index ea4d0e4..497f304 100644 --- a/libtoolame-dab/options.h +++ b/libtoolame-dab/options.h @@ -11,7 +11,6 @@ typedef struct int usepadbit; /* TRUE by default, use a padding bit */ int quickmode; /* FALSE calculate psy model for every frame */ int quickcount; /* 10 when quickmode = TRUE, calculate psymodel every 10th frame */ - int downmix; /* FALSE downmix from stereo to mono */ int byteswap; /* FALSE swap the bytes */ int dab; /* FALSE DAB extensions */ int vbr; /* FALSE switch for VBR mode */ diff --git a/libtoolame-dab/toolame.c b/libtoolame-dab/toolame.c index 4e0c7d8..1f874e3 100644 --- a/libtoolame-dab/toolame.c +++ b/libtoolame-dab/toolame.c @@ -35,7 +35,6 @@ void global_init (void) glopts.usepadbit = TRUE; glopts.quickmode = FALSE; glopts.quickcount = 10; - glopts.downmix = FALSE; glopts.byteswap = FALSE; glopts.vbr = FALSE; glopts.vbrlevel = 0; @@ -166,14 +165,6 @@ int toolame_finish( return bs.output_buffer_written; } -int toolame_enable_downmix_stereo(void) -{ - glopts.downmix = TRUE; - header.mode = MPG_MD_MONO; - header.mode_ext = 0; - return 0; -} - int toolame_enable_byteswap(void) { glopts.byteswap = TRUE; diff --git a/libtoolame-dab/toolame.h b/libtoolame-dab/toolame.h index 998ac4f..e80f209 100644 --- a/libtoolame-dab/toolame.h +++ b/libtoolame-dab/toolame.h @@ -20,7 +20,6 @@ int toolame_finish( unsigned char *output_buffer, size_t output_buffer_size); -int toolame_enable_downmix_stereo(void); int toolame_enable_byteswap(void); /*! Set channel mode. Allowed values: -- cgit v1.2.3