Commit 99b9bb84 authored by Monty Montgomery's avatar Monty Montgomery

Full revamp of Singleband Compander signal path

Implement per-channel singleband compander panels



git-svn-id: https://svn.xiph.org/trunk/postfish@6589 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent 1946be5d
......@@ -955,7 +955,7 @@ void mainpanel_create(postfish_mainpanel *panel,char **chlabels){
mainpanel_chentry(panel,channeltable,"Mute ",0,0,0,mutedummy_create);
mainpanel_chentry(panel,channeltable,"_Declip ",1,1,0,clippanel_create);
mainpanel_chentry(panel,channeltable,"_Multicomp ",2,0,1,compandpanel_create_channel);
mainpanel_chentry(panel,channeltable,"_Singlecomp ",3,0,1,0);
mainpanel_chentry(panel,channeltable,"_Singlecomp ",3,0,1,singlepanel_create_channel);
mainpanel_chentry(panel,channeltable,"De_verb ",4,1,0,suppresspanel_create_channel);
mainpanel_chentry(panel,channeltable,"_Reverb ",5,1,0,0);
mainpanel_chentry(panel,channeltable,"_EQ ",6,0,1,0);
......@@ -983,7 +983,7 @@ void mainpanel_create(postfish_mainpanel *panel,char **chlabels){
mainpanel_masterentry(panel,mastertable,"_Crossmix "," c ",GDK_c,0,0);
mainpanel_masterentry(panel,mastertable,"_Multicomp "," m ",GDK_m,1,compandpanel_create_master);
mainpanel_masterentry(panel,mastertable,"_Singlecomp "," s ",GDK_s,2,singlepanel_create);
mainpanel_masterentry(panel,mastertable,"_Singlecomp "," s ",GDK_s,2,singlepanel_create_master);
mainpanel_masterentry(panel,mastertable,"_Reverb "," r ",GDK_r,3,0);
mainpanel_masterentry(panel,mastertable,"_EQ "," e ",GDK_e,4,eqpanel_create);
mainpanel_masterentry(panel,mastertable,"_Limit "," l ",GDK_l,5,limitpanel_create);
......
......@@ -240,13 +240,20 @@ void *playback_thread(void *dummy){
result|=link->samples;
link=multicompand_read_channel(link);
result|=link->samples;
link=singlecomp_read_channel(link);
result|=link->samples;
link=suppress_read_channel(link);
result|=link->samples;
link=multicompand_read_master(link);
result|=link->samples;
link=singlecomp_read(link);
link=singlecomp_read_master(link);
result|=link->samples;
for(i=0;i<input_ch;i++)
if(mute_channel_muted(link->active,i))
memset(link->data[i],0,sizeof(**link->data)*input_size);
link=eq_read(link);
result|=link->samples;
......
This diff is collapsed.
......@@ -46,9 +46,13 @@ typedef struct {
sig_atomic_t b_ratio;
sig_atomic_t b_mode;
sig_atomic_t panel_visible;
sig_atomic_t panel_active;
} singlecomp_settings;
extern int pull_singlecomp_feedback(float *peak,float *rms);
extern int pull_singlecomp_feedback_master(float *peak,float *rms);
extern int pull_singlecomp_feedback_channel(float *peak,float *rms);
extern int singlecomp_load(void);
extern int singlecomp_reset(void);
extern time_linkage *singlecomp_read(time_linkage *in);
extern time_linkage *singlecomp_read_master(time_linkage *in);
extern time_linkage *singlecomp_read_channel(time_linkage *in);
This diff is collapsed.
......@@ -21,9 +21,12 @@
*
*/
extern void singlepanel_create(postfish_mainpanel *mp,
GtkWidget *windowbutton,
GtkWidget *activebutton);
extern void singlepanel_create_master(postfish_mainpanel *mp,
GtkWidget *windowbutton,
GtkWidget *activebutton);
extern void singlepanel_create_channel(postfish_mainpanel *mp,
GtkWidget **windowbutton,
GtkWidget **activebutton);
extern void singlepanel_feedback(int displayit);
extern void singlepanel_reset(void);
......
#define VERSION "$Id$ "
/* DO NOT EDIT: Automated versioning hack [Fri Apr 23 20:18:58 EDT 2004] */
/* DO NOT EDIT: Automated versioning hack [Sat Apr 24 01:12:30 EDT 2004] */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment