[Kwintv] qtvision.h and "bool _muted"

Dirk Ziegelmeier dirk at ziegelmeier.net
Fri Aug 8 09:13:53 CEST 2003


I don't agree. I'd rather hide the fact of broken mixers in the only class 
that should know about: the TV or mixer (are there broken soundcard mixers?) 
plugin. Why expose (and work around!) this bug to higher levels? The XV or 
v4l plugin needs to fix this up by storing its state internally somehow, 
"qtvision" only sees a working mute functionality and doesn't have to care 
about anything.

On Friday 08 August 2003 00:06, George Staikos wrote:
> Yes this sounds like a good approach.
>
> On Friday 01 August 2003 17:45, Neil Macvicar wrote:
> > On Friday 01 August 2003 8:14 pm, George Staikos wrote:
> > > On Friday 01 August 2003 11:26, Neil Macvicar wrote:
> > > > Hi,
> > > > 	Does anyone know why specifically the qtvision class keeps track of
> > > > the mute state ? Is it due to some TV cards mute action being broken,
> > > > or is it
> > >
> > >    Yes.  I do believe that my tuner is broken in this respect. :)
> >
> > From what I understand, when your vsrc is muted, the muted() function
> > returns an incorrect value, so in effect, mute works, but it's state is
> > lost via the video plugin driver.
> >
> > If this is the case, would you object if "bool _muted" was removed from
> > the qtvision class, and in place, a new virtual function was added to the
> > base vrsc class to test for broken behaviour on initialisation, and
> > "muted()" functions were modified to take into account the test results
> > and report accordingly.
> >
> > Seems better seperation to me, and removes the burden of broken behaviour
> > to the correct area.
> >
> > Let me know what you think.
> >
> > --Neil.
> >
> > _______________________________________________
> > kwintv mailing list
> > kwintv at mail.kde.org
> > http://mail.kde.org/mailman/listinfo/kwintv

-- 

Ciao,
Dirk

--
Dirk Ziegelmeier * dirk at ziegelmeier.net * http://www.ziegelmeier.net



More information about the kwintv mailing list