Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev Fix volume botch.



details:   https://anonhg.NetBSD.org/src/rev/8c387d31a451
branches:  trunk
changeset: 824397:8c387d31a451
user:      nat <nat%NetBSD.org@localhost>
date:      Sun Jun 04 05:37:56 2017 +0000

description:
Fix volume botch.

diffstat:

 sys/dev/audiobell.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 966f4e47e0b7 -r 8c387d31a451 sys/dev/audiobell.c
--- a/sys/dev/audiobell.c       Sat Jun 03 21:52:05 2017 +0000
+++ b/sys/dev/audiobell.c       Sun Jun 04 05:37:56 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audiobell.c,v 1.19 2017/05/28 21:15:58 nat Exp $       */
+/*     $NetBSD: audiobell.c,v 1.20 2017/06/04 05:37:56 nat Exp $       */
 
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include <sys/types.h>
-__KERNEL_RCSID(0, "$NetBSD: audiobell.c,v 1.19 2017/05/28 21:15:58 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audiobell.c,v 1.20 2017/06/04 05:37:56 nat Exp $");
 
 #include <sys/audioio.h>
 #include <sys/conf.h>
@@ -125,7 +125,7 @@
 
        ai.play.sample_rate = BELL_SAMPLE_RATE;
        ai.play.precision = 16;
-       ai.play.gain = 255 * 100 / volume;
+       ai.play.gain = 255 * volume / 100;
 
 #if BYTE_ORDER == LITTLE_ENDIAN
        ai.play.encoding = AUDIO_ENCODING_SLINEAR_LE;



Home | Main Index | Thread Index | Old Index