-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgam-mixer.h
80 lines (67 loc) · 3.24 KB
/
gam-mixer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* (gtk-alsamixer) An ALSA mixer for GTK
*
* Copyright (C) 2001-2005 Derrick J Houy <[email protected]>.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __GAM_MIXER_H__
#define __GAM_MIXER_H__
#include <asoundlib.h>
#include <gtk/gtkvbox.h>
#include <gtk/gtksizegroup.h>
G_BEGIN_DECLS
#define GAM_TYPE_MIXER (gam_mixer_get_type ())
#define GAM_MIXER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GAM_TYPE_MIXER, GamMixer))
#define GAM_MIXER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GAM_TYPE_MIXER, GamMixerClass))
#define GAM_IS_MIXER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GAM_TYPE_MIXER))
#define GAM_IS_MIXER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GAM_TYPE_MIXER))
#define GAM_MIXER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GAM_TYPE_MIXER, GamMixerClass))
typedef struct _GamMixer GamMixer;
typedef struct _GamMixerClass GamMixerClass;
struct _GamMixer
{
GtkVBox parent_instance;
};
struct _GamMixerClass
{
GtkVBoxClass parent_class;
void (* display_name_changed) (GtkWidget *w);
void (* visibility_changed) (GtkWidget *w);
};
#include "gam-app.h"
#include "gam-slider.h"
#include "gam-toggle.h"
GType gam_mixer_get_type (void) G_GNUC_CONST;
GtkWidget *gam_mixer_new (GamApp *gam_app,
const gchar *card_id);
const gchar *gam_mixer_get_mixer_name (GamMixer *gam_mixer);
const gchar *gam_mixer_get_config_name (GamMixer *gam_mixer);
gchar *gam_mixer_get_display_name (GamMixer *gam_mixer);
void gam_mixer_set_display_name (GamMixer *gam_mixer,
const gchar *name);
gboolean gam_mixer_get_visible (GamMixer *gam_mixer);
void gam_mixer_set_visible (GamMixer *gam_mixer,
gboolean visible);
void gam_mixer_show_props_dialog (GamMixer *gam_mixer);
gint gam_mixer_slider_count (GamMixer *gam_mixer);
gint gam_mixer_toggle_count (GamMixer *gam_mixer);
GamSlider *gam_mixer_get_nth_slider (GamMixer *gam_mixer,
gint index);
GamToggle *gam_mixer_get_nth_toggle (GamMixer *gam_mixer,
gint index);
void gam_mixer_construct_sliders (GamMixer *gam_mixer);
G_END_DECLS
#endif /* __GAM_MIXER_H__ */