Commit 995e32b7 authored by Max Brazhnikov's avatar Max Brazhnikov Committed by Tobias C. Berner

kmix assumes volume range 1:100 for oss mixer instead of 0:100.

Summary:
See https://bugs.kde.org/344468
and https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=184996

Reviewers: #freebsd, marten, adridg, ltoscano

Reviewed By: #freebsd, adridg

Subscribers: adridg, ltoscano, rakuco

Differential Revision: https://phabricator.kde.org/D6925
parent ea9e12ff
......@@ -146,7 +146,7 @@ int Mixer_OSS::open()
{
if( devmask & ( 1 << idx ) ) // device active?
{
Volume playbackVol( 100, 1, true, false );
Volume playbackVol( 100, 0, true, false );
playbackVol.addVolumeChannel(VolumeChannel(Volume::LEFT));
if ( stereodevs & ( 1 << idx ) )
playbackVol.addVolumeChannel(VolumeChannel(Volume::RIGHT));
......@@ -163,7 +163,7 @@ int Mixer_OSS::open()
// Tutorial: Howto add a simple capture switch
if ( recmask & ( 1 << idx ) ) {
// can be captured => add capture volume, with no capture volume
Volume captureVol( 100, 1, true, true );
Volume captureVol( 100, 0, true, true );
md->addCaptureVolume(captureVol);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment