1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*****************************************************************************
4 * This file is part of jack_mixer
6 * Copyright (C) 2006 Nedko Arnaudov <nedko@arnaudov.name>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; version 2 of the License
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 *****************************************************************************/
23 #ifndef JACK_MIXER_H__DAEB51D8_5861_40F2_92E4_24CA495A384D__INCLUDED
24 #define JACK_MIXER_H__DAEB51D8_5861_40F2_92E4_24CA495A384D__INCLUDED
29 %apply
double *OUTPUT
{ double * left_ptr
, double * right_ptr
, double * mono_ptr
};
32 #include "jack_mixer.h"
36 typedef void * jack_mixer_t
;
37 typedef void * jack_mixer_channel_t
;
38 typedef void * jack_mixer_scale_t
;
39 typedef void * jack_mixer_threshold_t
;
43 const char * jack_client_name_ptr
);
60 const char * channel_name
,
65 jack_mixer_channel_t channel
);
67 /* returned values are in dBFS */
69 channel_stereo_meter_read(
70 jack_mixer_channel_t channel
,
74 /* returned value is in dBFS */
76 channel_mono_meter_read(
77 jack_mixer_channel_t channel
,
82 jack_mixer_channel_t channel
);
85 channel_is_midi_modified(
86 jack_mixer_channel_t channel
);
88 /* volume is in dBFS */
91 jack_mixer_channel_t channel
,
96 jack_mixer_channel_t channel
);
98 /* balance is from -1.0 (full left) to +1.0 (full right) */
100 channel_balance_write(
101 jack_mixer_channel_t channel
,
105 channel_balance_read(
106 jack_mixer_channel_t channel
);
110 jack_mixer_channel_t channel
);
112 /* returned value is in dBFS */
114 channel_abspeak_read(
115 jack_mixer_channel_t channel
);
118 channel_abspeak_reset(
119 jack_mixer_channel_t channel
);
123 jack_mixer_channel_t channel
);
127 jack_mixer_channel_t channel
);
131 jack_mixer_channel_t channel
);
135 jack_mixer_channel_t channel
);
139 jack_mixer_channel_t channel
);
143 jack_mixer_channel_t channel
);
147 jack_mixer_channel_t channel
,
151 channel_set_midi_scale(
152 jack_mixer_channel_t channel
,
153 jack_mixer_scale_t scale
);
160 jack_mixer_scale_t scale
,
165 scale_calculate_coefficients(
166 jack_mixer_scale_t scale
);
170 jack_mixer_scale_t scale
,
175 jack_mixer_scale_t scale
,
180 jack_mixer_scale_t scale
);
182 #endif /* #ifndef JACK_MIXER_H__DAEB51D8_5861_40F2_92E4_24CA495A384D__INCLUDED */