From owner-freebsd-multimedia Mon May 8 10:14:51 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from rr.com (rdu25-28-172.nc.rr.com [24.25.28.172]) by hub.freebsd.org (Postfix) with ESMTP id 2236237B5DB for ; Mon, 8 May 2000 10:14:47 -0700 (PDT) (envelope-from rhh@rr.com) Received: (from rhh@localhost) by rr.com (8.9.3/8.9.3) id NAA10653; Mon, 8 May 2000 13:13:32 -0400 (EDT) (envelope-from rhh) Date: Mon, 8 May 2000 13:13:32 -0400 From: Randall Hopper To: Oliver Brandmueller Cc: multimedia@FreeBSD.ORG Subject: Re: Strange problem: fxtv and sound Message-ID: <20000508131332.A10497@ipass.net> References: <20000508110728.A33101@gruft.de> <3916966C.C5C3EB31@cs.strath.ac.uk> <20000508134336.A33792@gruft.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000508134336.A33792@gruft.de>; from ob@gruft.de on Mon, May 08, 2000 at 01:43:36PM +0200 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Oliver Brandmueller: |On Mon, May 08, 2000 at 11:26:52AM +0100, Roger Hardiman wrote: |> > Everytime I change the channel (using mouse or keyboard) or just move the |> > mouse over the edge of the fxtv window the sound gets a few percent |> > louder. The slider in the window moves, fxtv shows the new volume setting |> > with it's OSD. |> |> Does it keep getting louder and louder until it gets to maximum volume? This could be explained by a few things. First, if the sound driver is not returning the same value on a "get" as the value that was issued by the last "set", that would do it. Alternatively, it might be due to another audio app rounding the numbers. It could also be Xaw3d. Try this. Build fxtv from ports with these changes. 1) In tvaudioc.c::TVAUDIOSetLineVolume(), put a: printf( "Set volume: %d %d\n", vol[0], vol[1] ); right before the MIXER_WRITE ioctl. 2) Also put a: printf( "Get volume: %d %d\n", vol[0], vol[1] ); inside the else clause in tvaudio.c::TVAUDIOResync() (this is after the MIXER_READ ioctl). 3) In actions.c::TVActionSetVolumeAction(), add: printf( "TVActionSetVolumeAction: value = %d\n", vol_val ); right before: TVAUDIOSetLineVolume( vol_val, TRUE ); 4) In tvmenu.c::TVTOOLSVolSliderJumpCB(), add: printf( "TVTOOLSVolSliderJumpCB: value = %d\n", vol ); right before: TVAUDIOSetLineVolume( vol, False ); This will tell us what values we're sending to the sound driver and receiving from the sound driver. -- Randall Hopper aa8vb@ipass.net / CLICK HERE TO GIVE FULL CONTROL OF YOUR MACHINE \ \ TO THE LATEST VIRUS / (Microsoft Outlook moto: "Do you feel lucky today?") To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message