]> git.sesse.net Git - vlc/blob - modules/gui/macosx/AudioEffects.h
macosx: added an option to disable the native fullscreen mode on Lion
[vlc] / modules / gui / macosx / AudioEffects.h
1 /*****************************************************************************
2  * AudioEffects.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2004-2011 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
8  *          Jérôme Decoodt <djc@videolan.org>
9  *          
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24  *****************************************************************************/
25
26 #import <Cocoa/Cocoa.h>
27
28 @interface VLCAudioEffects : NSObject {
29     /* generic */
30     IBOutlet id o_tableView;
31     IBOutlet id o_window;
32     intf_thread_t *p_intf;
33
34     /* Equalizer */
35     IBOutlet id o_eq_enable_ckb;
36     IBOutlet id o_eq_twopass_ckb;
37     IBOutlet id o_eq_preamp_lbl;
38     IBOutlet id o_eq_presets_popup;
39     IBOutlet id o_eq_band1_sld;
40     IBOutlet id o_eq_band2_sld;
41     IBOutlet id o_eq_band3_sld;
42     IBOutlet id o_eq_band4_sld;
43     IBOutlet id o_eq_band5_sld;
44     IBOutlet id o_eq_band6_sld;
45     IBOutlet id o_eq_band7_sld;
46     IBOutlet id o_eq_band8_sld;
47     IBOutlet id o_eq_band9_sld;
48     IBOutlet id o_eq_band10_sld;
49     IBOutlet id o_eq_preamp_sld;
50
51     /* Compressor */
52     IBOutlet id o_comp_enable_ckb;
53     IBOutlet id o_comp_reset_btn;
54     IBOutlet id o_comp_band1_sld;
55     IBOutlet id o_comp_band1_fld;
56     IBOutlet id o_comp_band1_lbl;
57     IBOutlet id o_comp_band2_sld;
58     IBOutlet id o_comp_band2_fld;
59     IBOutlet id o_comp_band2_lbl;
60     IBOutlet id o_comp_band3_sld;
61     IBOutlet id o_comp_band3_fld;
62     IBOutlet id o_comp_band3_lbl;
63     IBOutlet id o_comp_band4_sld;
64     IBOutlet id o_comp_band4_fld;
65     IBOutlet id o_comp_band4_lbl;
66     IBOutlet id o_comp_band5_sld;
67     IBOutlet id o_comp_band5_fld;
68     IBOutlet id o_comp_band5_lbl;
69     IBOutlet id o_comp_band6_sld;
70     IBOutlet id o_comp_band6_fld;
71     IBOutlet id o_comp_band6_lbl;
72     IBOutlet id o_comp_band7_sld;
73     IBOutlet id o_comp_band7_fld;
74     IBOutlet id o_comp_band7_lbl;
75     
76     /* Spatializer */
77     IBOutlet id o_spat_enable_ckb;
78     IBOutlet id o_spat_reset_btn;
79     IBOutlet id o_spat_band1_sld;
80     IBOutlet id o_spat_band1_fld;
81     IBOutlet id o_spat_band1_lbl;
82     IBOutlet id o_spat_band2_sld;
83     IBOutlet id o_spat_band2_fld;
84     IBOutlet id o_spat_band2_lbl;
85     IBOutlet id o_spat_band3_sld;
86     IBOutlet id o_spat_band3_fld;
87     IBOutlet id o_spat_band3_lbl;
88     IBOutlet id o_spat_band4_sld;
89     IBOutlet id o_spat_band4_fld;
90     IBOutlet id o_spat_band4_lbl;
91     IBOutlet id o_spat_band5_sld;
92     IBOutlet id o_spat_band5_fld;
93     IBOutlet id o_spat_band5_lbl;
94
95     /* Filter */
96     IBOutlet id o_filter_headPhone_ckb;
97     IBOutlet id o_filter_normLevel_ckb;
98     IBOutlet id o_filter_normLevel_sld;
99     IBOutlet id o_filter_normLevel_lbl;
100 }
101
102 /* generic */
103 + (VLCAudioEffects *)sharedInstance;
104 - (IBAction)toggleWindow:(id)sender;
105 - (void)setAudioFilter: (char *)psz_name on:(BOOL)b_on;
106
107 /* Equalizer */
108 - (void)setupEqualizer;
109 - (void)equalizerUpdated;
110 - (void)setBandSlidersValues:(float *)values;
111 - (void)initBandSliders;
112 - (void)setValue:(float)value forSlider:(int)index;
113 - (IBAction)eq_bandSliderUpdated:(id)sender;
114 - (IBAction)eq_changePreset:(id)sender;
115 - (IBAction)eq_enable:(id)sender;
116 - (IBAction)eq_preampSliderUpdated:(id)sender;
117 - (IBAction)eq_twopass:(id)sender;
118
119 /* Compressor */
120 - (void)resetCompressor;
121 - (IBAction)resetCompressorValues:(id)sender;
122 - (IBAction)comp_enable:(id)sender;
123 - (IBAction)comp_sliderUpdated:(id)sender;
124
125 /* Spatializer */
126 - (void)resetSpatializer;
127 - (IBAction)resetSpatializerValues:(id)sender;
128 - (IBAction)spat_enable:(id)sender;
129 - (IBAction)spat_sliderUpdated:(id)sender;
130
131 /* Filter */
132 - (void)resetAudioFilters;
133 - (IBAction)filter_enableHeadPhoneVirt:(id)sender;
134 - (IBAction)filter_enableVolumeNorm:(id)sender;
135 - (IBAction)filter_volNormSliderUpdated:(id)sender;
136
137 @end