[mythtv] a small patch

Jean-Yves Avenard jyavenard at gmail.com
Wed Mar 24 00:24:28 UTC 2010


On 24 March 2010 10:03, Emmanuel Anne <emmanuel.anne at gmail.com> wrote:
> In fact there are some "low bandwidth" channels which use some 24Khz samples
> (AAC, 2 channels). And a lot of modern sound chips can't play directly this
> sample rate.
> So you have to use the alsa built-in resamping abilities, but for this to
> work you just need to setup the hw parameters before calling
> snd_pcm_hw_params_get_period_size (and not after). I got the solution if the
> source of aplay, the alsa utility.

MythTV trunk (and 0.23) automatically resample the audio to a
samplerate the hardware supports.

So I suggest you try trunk and see how it works for you for those
channels. You'll likely find that your patch is unecessary


More information about the mythtv-dev mailing list