[mythtv] Re: [PATCH] mono support, take two

Jim Radford mythtv-dev@snowman.net
Sat, 16 Nov 2002 08:58:42 -0800


On Wed, Nov 20, 2002 at 12:24:13AM -0500, John Coiner wrote:
> We can dial these parameters into the sound card once, at the start
> of playing.

> So, I think the code to update them on the fly would never run. We don't 
> want to have code hanging around that never runs, except error checking.

But the information is only available once you have parsed the stream
and it only gets returned once as long as the stream is uniform.
Secondly, it is possible and it happens in my case that the myth
header says mono and the lame header says stereo.  See my previous
message.

> After this patch does go in, I may put a knob in settings.txt to allow a 
> user to optionally specify a preference for mono or stereo. For example, 
> if you had a mono tuner and a stereo sound card, you would want to 
> record and encode mono (since everything downstream of the tuner is L==R 
> anyway) and save the extra CPU cycles. Does that seem reasonable?

That works now automatically.  The case we don't currently handle well
is when the tuner is stereo and the sound card is mono.  Should we
record in stereo and drop data when playing but have a good recording,
or just drop the data when recording?  That's more a user choice,

Let me know if you still object and I'll try and come up with a
different solution.

-Jim