Date: Wed, 3 Feb 1999 20:27:46 +0100 From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> To: freebsd-multimedia@FreeBSD.ORG Subject: Patch to fxtv to cancel channel swithing noise Message-ID: <19990203202746.A10589@internal>
next in thread | raw e-mail | index | archive | help
Running fxtv on my Hauppauge TV card works relly nice (thanks to all who made this possible), but has a small thing that really bothers me: When changing channels, there is a loud, sharp noise being produced which really could damage my speakers if I have set the volume to a high level before. I have made a small patch to fxtv which mutes the audio output, switches the channels, waits a little until the noise has settled, and unmutes audio again. I agree that this is a hack, but hey, it works and maybe someone wants to use it. (If there are better solutions, tell me). FYI, this is the card: bktr0 <BrookTree 878> rev 2 int a irq 11 on pci0:12:0 Hauppauge WinCast/TV, Philips PAL I tuner, msp3400c stereo, remote control. Detected a MSP3410D-B4 -Andre --- tvcapture.c.ORI Sat Jan 30 21:17:12 1999 +++ tvcapture.c Sat Jan 30 21:33:13 1999 @@ -587,15 +587,17 @@ return; } + if( ! (old_audio & AUDIO_MUTE) ) + TVCAPTURESetAudioMute( c, TRUE ); + if ( ioctl( c->tfd, TVTUNER_SETCHNL, &larg ) < 0 ) { DO_IOCTL_SERR( "TVTUNER_SETCHNL", larg ); return; } c->tuner_chan_active = TRUE; - old_audio &= AUDIO_MUTE; - if ( old_audio ) - TVCAPTURESetAudioMute( c, TRUE ); + usleep(500000); + TVCAPTURESetAudioMute( c, old_audio & AUDIO_MUTE ? TRUE : FALSE ); } 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?19990203202746.A10589>