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
e7100377
Commit
e7100377
authored
Apr 28, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output_init: added option to disable the hardware mixer
Added the per-device option "mixer_enabled" which allows users to disable the hardware mixer of an audio output.
parent
61b08355
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
user.xml
doc/user.xml
+11
-0
output_init.c
src/output_init.c
+2
-1
No files found.
doc/user.xml
View file @
e7100377
...
...
@@ -285,6 +285,17 @@ cd mpd-0.14.2</programlisting>
enabled.
</entry>
</row>
<row>
<entry>
<varname>
mixer_enabled
</varname>
<parameter>
yes|no
</parameter>
</entry>
<entry>
Specifies whether the hardware mixer of this audio
output should be used. By default, all hardware
mixers are enabled if available.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
...
...
src/output_init.c
View file @
e7100377
...
...
@@ -135,7 +135,8 @@ audio_output_init(struct audio_output *ao, const struct config_param *param,
if
(
ao
->
data
==
NULL
)
return
false
;
if
(
plugin
->
mixer_plugin
!=
NULL
)
if
(
plugin
->
mixer_plugin
!=
NULL
&&
config_get_block_bool
(
param
,
"mixer_enabled"
,
true
))
ao
->
mixer
=
mixer_new
(
plugin
->
mixer_plugin
,
param
);
else
ao
->
mixer
=
NULL
;
...
...
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