AGL-style PulseAudio mixer app
[apps/mixer.git] / app / pac.h
1 /*
2  * Copyright (C) 2016 Konsulko Group
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include <pulse/pulseaudio.h>
18 #include <sys/queue.h>
19
20 #ifdef __cplusplus
21 extern "C" void pac_set_volume(pa_context *, uint32_t, uint32_t, uint32_t, uint32_t);
22 extern "C" pa_context *pac_init(void *, const char *);
23 #else
24 static char * channel_position_string[] =
25 {
26         "Mono",
27         "Front Left",
28         "Front Right",
29         "Center",
30         "Rear Center",
31         "Rear Left",
32         "Rear Right",
33         "LFE",
34         "Left Center",
35         "Right Center",
36         "Side Left",
37         "Side Right",
38 };
39
40 enum control_type
41 {
42         C_SOURCE,
43         C_SINK
44 };
45
46 struct pac_cstate
47 {
48         TAILQ_ENTRY(pac_cstate) tailq;
49         int type;
50         uint32_t index;
51         pa_cvolume cvolume;
52 };
53
54 #endif