Merge pull request #618 from joerg-krause/fix-softvol

Fix usage of ALSA softvol plugin.

Thanks Jörg Krause. If you want to apply it to the `development` branch, I'll pull it in there too; otherwise I'll make the change myself.
This commit is contained in:
Mike Brady
2017-11-20 18:38:58 +00:00
committed by GitHub
+2
View File
@@ -395,6 +395,8 @@ static int init(int argc, char **argv) {
debug(1, "Volume control \"%s\" has dB volume from %f to %f.", alsa_mix_ctrl,
(1.0 * alsa_mix_mindb) / 100.0, (1.0 * alsa_mix_maxdb) / 100.0);
has_softvol = 1;
audio_alsa.volume = &volume; // insert the volume function now we know it can do dB stuff
audio_alsa.parameters = &parameters; // likewise the parameters stuff
} else {
debug(1, "Cannot get the dB range from the volume control \"%s\"", alsa_mix_ctrl);
}