Date: Wed, 19 Jul 2000 22:14:16 +0900 From: Taku YAMAMOTO <taku@cent.saitama-u.ac.jp> To: Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de> Cc: FreeBSD-Multimedia <freebsd-multimedia@FreeBSD.org> Subject: Re: RealPlayer7.0.0.248 (Beta) Message-ID: <rtg4s5mtg7r.wl@dhcp-4.cent.saitama-u.ac.jp> In-Reply-To: In your message of "Wed, 19 Jul 2000 10:30:54 %2B0200 (CEST)" <200007190830.KAA07748@gilberto.physik.rwth-aachen.de> References: <200007190830.KAA07748@gilberto.physik.rwth-aachen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
At Wed, 19 Jul 2000 10:30:54 +0200 (CEST), Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de> 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 <taku@cent.saitama-u.ac.jp> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?rtg4s5mtg7r.wl>