* Several fixes incl. multi-core MS-Windows threading problem. * New MS-Windows native audio driver. * New Grandstream ringtone file format. * New support in libSoX for memory based file IO. * Now able to set MP3 compression parameters.
14 lines
541 B
Text
14 lines
541 B
Text
$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;
|