Sound patches and volume problems?
Kazuhito HONDA
kazuhito at ph.noda.tus.ac.jp
Thu Sep 1 08:16:24 GMT 2005
Hello,
From: Ariff Abdullah <skywizard at MyBSD.org.my>
Subject: Re: Sound patches and volume problems?
Date: Mon, 29 Aug 2005 07:26:13 +0800
> but I do suspect it's all about incorrect volume resolution or
> perhaps volume miscalculation within uaudio.c.
Ah, though it may not be related to that problem,
uaudio.c has one bug about volume calculation at least.
This sometimes gives a USB audio device an unexpected value.
But this doesn't affect when the volume is small.
Sincerely yours
kazuhito HONDA
kazuhito at ph.noda.tus.ac.jp
--- uaudio.c.orig Thu Sep 1 16:51:34 2005
+++ uaudio.c Thu Sep 1 16:52:13 2005
@@ -4130,10 +4130,10 @@ uaudio_mixer_set(device_t dev, unsigned
if (mc->ctl == type) {
if (mc->nchan == 2) {
/* set Right */
- uaudio_ctl_set(sc, SET_CUR, mc, 1, (int)(right*256)/100);
+ uaudio_ctl_set(sc, SET_CUR, mc, 1, (int)(right*255)/100);
}
/* set Left or Mono */
- uaudio_ctl_set(sc, SET_CUR, mc, 0, (int)(left*256)/100);
+ uaudio_ctl_set(sc, SET_CUR, mc, 0, (int)(left*255)/100);
}
}
return;
More information about the freebsd-multimedia
mailing list