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;
41 const char * jack_client_name_ptr);
58 const char * channel_name,
63 jack_mixer_channel_t channel);
65 /* returned values are in dBFS */
67 channel_stereo_meter_read(
68 jack_mixer_channel_t channel,
72 /* returned value is in dBFS */
74 channel_mono_meter_read(
75 jack_mixer_channel_t channel,
80 jack_mixer_channel_t channel);
83 channel_is_midi_modified(
84 jack_mixer_channel_t channel);
86 /* volume is in dBFS */
89 jack_mixer_channel_t channel,
94 jack_mixer_channel_t channel);
96 /* balance is from -1.0 (full left) to +1.0 (full right) */
98 channel_balance_write(
99 jack_mixer_channel_t channel,
103 channel_balance_read(
104 jack_mixer_channel_t channel);
108 jack_mixer_channel_t channel);
110 /* returned value is in dBFS */
112 channel_abspeak_read(
113 jack_mixer_channel_t channel);
116 channel_abspeak_reset(
117 jack_mixer_channel_t channel);
121 jack_mixer_channel_t channel);
125 jack_mixer_channel_t channel);
129 jack_mixer_channel_t channel);
133 jack_mixer_channel_t channel);
137 jack_mixer_channel_t channel);
141 jack_mixer_channel_t channel);
145 jack_mixer_channel_t channel,
148 #endif /* #ifndef JACK_MIXER_H__DAEB51D8_5861_40F2_92E4_24CA495A384D__INCLUDED */