summaryrefslogtreecommitdiff
path: root/src/sink.h
blob: cccbe1bda29b5f131dc3d170f71f11f191a5e85c (plain)
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
#ifndef SINK_H
#define SINK_H

#ifdef SINK_C
GArray *sink_list;
#else
extern GArray *sink_list;
#endif

#include <glib.h>
#include <pulse/pulseaudio.h>

#include "sink_input.h"

typedef struct _sink_info {
	guint32 index;
	gchar* name;
	gchar* device;
	gint mute;
	guint8 channels;
	pa_volume_t vol;
	GArray *input_list;
} sink_info;

GArray *sink_list_alloc(void);
void sink_list_free(GArray *sink_list);

sink_info *sink_list_get(gint index);
sink_input_info *sink_input_get(gint sink_list_index, gint index);

#endif