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
|
/*
* module-agl-audio -- PulseAudio module for providing audio routing support
* (forked from "module-murphy-ivi" - https://github.com/otcshare )
* Copyright (c) 2012, Intel Corporation.
* Copyright (c) 2016, IoT.bzh
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St - Fifth Floor, Boston,
* MA 02110-1301 USA.
*
*/
#ifndef paaglutils
#define paaglutils
#include <pulsecore/core.h>
#include "userdata.h"
struct agl_null_sink;
struct agl_null_sink *agl_utils_create_null_sink (struct userdata *, const char *);
void agl_utils_destroy_null_sink (struct userdata *, struct agl_null_sink *);
pa_sink *agl_utils_get_null_sink (struct userdata *, struct agl_null_sink *);
pa_source *agl_utils_get_null_source (struct userdata *, struct agl_null_sink *);
void agl_utils_volume_ramp (struct userdata *, struct agl_null_sink *, bool);
/* general helper functions */
const char *agl_utils_get_card_name (pa_card *);
const char *agl_utils_get_card_bus (pa_card *);
const char *agl_utils_get_sink_name (pa_sink *);
const char *agl_utils_get_source_name (pa_source *);
const char *agl_utils_get_sink_input_name (pa_sink_input *);
const char *agl_utils_get_source_output_name (pa_source_output *);
pa_sink *agl_utils_get_primary_alsa_sink (struct userdata *);
pa_sink *agl_utils_get_alsa_sink (struct userdata *, const char *);
void agl_utils_init_stamp (void);
uint32_t agl_utils_new_stamp (void);
uint32_t agl_utils_get_stamp (void);
/* AM-oriented helper functions */
char *agl_utils_get_zone (pa_proplist *, pa_proplist *);
bool agl_utils_set_stream_routing_properties (pa_proplist *, int, void *);
bool agl_utils_unset_stream_routing_properties (pa_proplist *);
#endif
|