From owner-freebsd-multimedia Wed Jul 19 6:15: 3 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from dhcp-4.cent.saitama-u.ac.jp (dhcp-4.cent.saitama-u.ac.jp [133.38.4.30]) by hub.freebsd.org (Postfix) with ESMTP id 0D35337BC50 for ; Wed, 19 Jul 2000 06:14:46 -0700 (PDT) (envelope-from taku@cent.saitama-u.ac.jp) Received: from dhcp-4.cent.saitama-u.ac.jp (localhost [127.0.0.1]) by dhcp-4.cent.saitama-u.ac.jp (8.9.3/8.9.3) with ESMTP id WAA01653; Wed, 19 Jul 2000 22:14:17 +0900 (JST) (envelope-from taku@cent.saitama-u.ac.jp) Date: Wed, 19 Jul 2000 22:14:16 +0900 Message-ID: From: Taku YAMAMOTO To: Christoph Kukulies Cc: FreeBSD-Multimedia Subject: Re: RealPlayer7.0.0.248 (Beta) In-Reply-To: In your message of "Wed, 19 Jul 2000 10:30:54 +0200 (CEST)" <200007190830.KAA07748@gilberto.physik.rwth-aachen.de> References: <200007190830.KAA07748@gilberto.physik.rwth-aachen.de> User-Agent: Wanderlust/1.1.0 (Overjoyed) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/20.6 (i386--freebsd) MULE/4.0 (HANANOEN) Organization: Advanced Computer and Communication Engineering Studies Society MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At Wed, 19 Jul 2000 10:30:54 +0200 (CEST), Christoph Kukulies wrote: > What ever I set the Volume slider in the Realaudio panel to, > it seems to run away always to max volume. The volume slider > stays in the lowest position but the volume regulates (by some > internal magic in either real player or the sound system) > to max so that all I can do is turn the speakers volume knob to min. This symptom occurs when we use AC97 mixer. The story: Whenever we write to the mixer, the value gets rounded. Then some program --- RealPlayer and GNOME mixer_applet I observed same symptom --- rereads it and thinks that volume has changed. The problem occurs when the rounded value is written again. The rounded value gets rounded! Then the program thinks volume has chanaged,... Nasty loop starts. You can apply following dirty hack to sys/dev/sound/pcm/ac97.c: max = (1 << e->bits) - 1; - left = (left * max) / 100; - right = (right * max) / 100; + left = (left * max + 99) / 100; + right = (left * max + 99) / 100; val = (left << 8) | right; left = (left * 100) / max; right = (right * 100) / max; -- YAMAMOTO, Taku Member of Advanced Computer and Communication Studies Society (ACCESS for short), Information Processing Center, Saitama Univ. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message