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

#include <stdio.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;
	int mute;
	pa_volume_t vol;
	
	// input list
	int input_counter;
	int input_max;
	sink_input_info** input_list;
} sink_info;

sink_info* sink_init(void);
void sink_clear(sink_info*);

#endif