diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
commit | 9fa9eb9ac7bf1d3de825ee25a8f0ae81b7b77896 (patch) | |
tree | 9b071a8105704e992946dcd6b801e9fcb7635142 /audio/kmix/files/patch-backends_mixer__oss.cpp | |
parent | MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out, (diff) |
Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.
With hat: portmgr
Sponsored by: Absolight
Diffstat (limited to 'audio/kmix/files/patch-backends_mixer__oss.cpp')
-rw-r--r-- | audio/kmix/files/patch-backends_mixer__oss.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/audio/kmix/files/patch-backends_mixer__oss.cpp b/audio/kmix/files/patch-backends_mixer__oss.cpp new file mode 100644 index 000000000000..1c46111d64e5 --- /dev/null +++ b/audio/kmix/files/patch-backends_mixer__oss.cpp @@ -0,0 +1,25 @@ +kmix assumes volume range 1:100 for oss mixer instead of 0:100. + +See https://bugs.kde.org/344468 +and https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=184996 + +--- backends/mixer_oss.cpp.orig 2014-07-16 08:24:17 UTC ++++ backends/mixer_oss.cpp +@@ -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); + } + |