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

#include <stdio.h>
#include <glib.h>
#include <pulse/pulseaudio.h>
#include <ncurses.h>
#include <string.h>
#include <stdlib.h>

#include "sink_input.h"

typedef struct _sink_info {
	uint32_t index;
	char* name;
	char* device;
	int mute;
	uint8_t 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(int index);
sink_input_info *sink_input_get(int sink_list_index, int index);

#endif