Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
9cfd9d7c
Commit
9cfd9d7c
authored
Dec 15, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v0.18.x'
parents
66d90dd4
42a09ff1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
AlsaMixerPlugin.cxx
src/mixer/AlsaMixerPlugin.cxx
+13
-1
No files found.
src/mixer/AlsaMixerPlugin.cxx
View file @
9cfd9d7c
...
...
@@ -47,10 +47,22 @@ class AlsaMixerMonitor final : private MultiSocketMonitor {
public
:
AlsaMixerMonitor
(
EventLoop
&
_loop
,
snd_mixer_t
*
_mixer
)
:
MultiSocketMonitor
(
_loop
),
mixer
(
_mixer
)
{
BlockingCall
(
_loop
,
[
this
](){
InvalidateSockets
();
});
#ifdef USE_INTERNAL_EVENTLOOP
_loop
.
AddCall
([
this
](){
InvalidateSockets
();
});
#else
_loop
.
AddIdle
(
InitAlsaMixerMonitor
,
this
);
#endif
}
private
:
#ifndef USE_INTERNAL_EVENTLOOP
static
gboolean
InitAlsaMixerMonitor
(
gpointer
data
)
{
AlsaMixerMonitor
&
amm
=
*
(
AlsaMixerMonitor
*
)
data
;
amm
.
InvalidateSockets
();
return
false
;
}
#endif
virtual
int
PrepareSockets
()
override
;
virtual
void
DispatchSockets
()
override
;
};
...
...
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