replay_gain: optionally use hardware mixer to apply replay gain

Add an option for each audio output which enables the use of the
hardware mixer, instead of the software volume code.

This is hardware specific, and assumes linear volume control.  This is
not the case for hardware mixers which were tested, making this patch
somewhat useless, but we will use it to experiment with the settings,
to find a good solution.
This commit is contained in:
Max Kellermann
2010-02-16 08:55:37 +01:00
parent 48b49e2303
commit 96493e0333
8 changed files with 116 additions and 6 deletions

View File

@@ -350,6 +350,19 @@ cd mpd-version</programlisting>
devices which support it, and none for the others.
</entry>
</row>
<row>
<entry>
<varname>replay_gain_handler</varname>
<parameter>software|mixer|none</parameter>
</entry>
<entry>
Specifies how replay gain is applied. The default is
"software", which uses an internal software volume
control. "mixer" uses the configured (hardware) mixer
control. "none" disables replay gain on this audio
output.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>