Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
panelcontrol
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
minus
panelcontrol
Commits
d33657fb
Commit
d33657fb
authored
Jul 31, 2019
by
minus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
42a7a945
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
panelcontrol.c
panelcontrol.c
+11
-2
No files found.
panelcontrol.c
View file @
d33657fb
...
...
@@ -53,9 +53,16 @@ enum button {
LAYERB
=
85
,
};
static
pa_glib_mainloop
*
xpa_main_loop
;
struct
sink_input
{
const
char
*
name
;
pa_cvolume
volume
;
uint32_t
*
indices
;
};
static
struct
sink_input
*
sink_inputs
=
NULL
;
static
void
xpa_on_sink_input_info
(
pa_context
*
ctx
,
const
pa_sink_input_info
*
info
,
int
eol
,
void
*
userdata
)
{
if
(
!
info
)
return
;
...
...
@@ -71,7 +78,9 @@ static void xpa_on_subscribe(pa_context *ctx,
etype
==
PA_SUBSCRIPTION_EVENT_CHANGE
?
"changed"
:
etype
==
PA_SUBSCRIPTION_EVENT_REMOVE
?
"removed"
:
"???"
;
if
(
etype
!=
PA_SUBSCRIPTION_EVENT_REMOVE
)
{
if
(
etype
==
PA_SUBSCRIPTION_EVENT_REMOVE
)
{
for
...
}
else
{
pa_operation
*
op
=
pa_context_get_sink_input_info
(
ctx
,
idx
,
&
xpa_on_sink_input_info
,
NULL
);
pa_operation_unref
(
op
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment