summaryrefslogtreecommitdiff
path: root/audio/sox/patches/patch-aa
blob: d2c8f804f96eecd679e3a35482c1a4f07acb396c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-aa,v 1.13 2010/07/23 07:55:12 adam Exp $

--- src/sox.c.orig	2010-07-22 15:31:02.000000000 +0000
+++ src/sox.c
@@ -1216,7 +1216,9 @@ static void adjust_volume(int delta)
       vol2 = range_limit(vol1 + delta, 0, 100);
       AUDIO_INITINFO(&audio_info);
       audio_info.play.gain = (vol2 * AUDIO_MAX_GAIN + 50) / 100;
+#if !defined(__NetBSD__)
       audio_info.output_muted = 0;
+#endif
       lsx_debug("%04x %04x", vol1, vol2);
       if (vol1 != vol2 && ioctl(fd, AUDIO_SETINFO, &audio_info) < 0)
         vol2 = vol1;