1 /*
2  * mixer.h, public header for mixer.c
3  *
4  * Copyright (C) 1997 Rasca Gmelch, Berlin
5  * EMail: thron@gmx.de
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
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.
16  *
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., 675 Mass Ave, Cambridge, MA 02139, USA.
20  */
21 
22 int mixer_init (char *dev_file);	/* returns mixer_id */
23 int mixer_fini (int mixer_id);
24 
25 const char *mixer_get_name (int mixer_id, int dev);
26 const char *mixer_get_label(int mixer_id, int dev);
27 
28 int mixer_is_stereo (int mixer_id, int dev);
29 int mixer_get_vol_left (int mixer_id, int dev);
30 int mixer_get_vol_right(int mixer_id, int dev);
31 int mixer_set_vol_left (int mixer_id, int dev, int val); /* val:[0-100] */
32 int mixer_set_vol_right(int mixer_id, int dev, int val); /* val:[0-100] */
33 int mixer_is_rec_dev(int mixer_id, int dev);
34 int mixer_is_rec_on (int mixer_id, int dev);
35 int mixer_set_rec (int mixer_id, int dev, int val);		/* val:[0|1] */
36 int mixer_num_of_devs (int mixer_id);
37 int mixer_get_dev_by_name (int mixer_id, char *dev_name);
38 int mixer_exclusive_input (int mixer_id);
39