[mythtv] [PATCH] mono support
Isaac Richards
mythtv-dev@snowman.net
Sun, 17 Nov 2002 23:08:37 -0500
On Wednesday 13 November 2002 08:33 pm, Jim Radford wrote:
> So far I haven't been able to get my cheap AverTV Stereo card to
> actually work in stereo, so I needed this patch to kill the chipmunks.
> The audio is still out of sync though. Isaac, can you think of any
> other places that need to be updated? I don't understand how the
> audio is synced yet.
Yeah -- all the calculations in the audio sync code assume that the audio is
stereo. You'd need to fix those assumptions as well. Bunch of magic numbers
in the player code.. It might be easier just to open the device as mono as
you are currently, then transform the audio buffer to stereo real quick after
reading the data from the sound card, or even just use lame_encode_buffer()
instead of lame_encode_buffer_interleaved() and duplicate the mono channel to
stereo that way.
Isaac