[mythtv] [mythtv-commits] Ticket #5900: AO: Generalise upmix and AC-3 encoding

Dave Badia dbadia at gmail.com
Tue Nov 11 03:27:38 UTC 2008


On Mon, Nov 10, 2008 at 2:45 PM, John P Poet <jppoet at gmail.com> wrote:

> On Mon, Nov 10, 2008 at 12:24 PM, foo bar <foobum at gmail.com> wrote:
>
> >
> > Assuming your card/receiver can do both 44.1k AC-3 and PCM, the
> > following should do what you want:
> >
> > --- libs/libmyth/audiooutputbase.cpp    2008-11-10 19:08:28.000000000
> +0000
> > +++ libs/libmyth/audiooutputbase.cpp    2008-11-10 19:09:41.000000000
> +0000
> > @@ -252,7 +252,7 @@
> >     {
> >         VERBOSE(VB_AUDIO, LOC + "Creating AC-3 Encoder");
> >         encoder = new AudioOutputDigitalEncoder();
> > -        if (!encoder->Init(CODEC_ID_AC3, 448000, 48000,
> > +        if (!encoder->Init(CODEC_ID_AC3, 448000, audio_samplerate,
> >                            configured_audio_channels, audio_reenc))
> >         {
> >             VERBOSE(VB_AUDIO, LOC + "Can't create AC-3 encoder");
> > @@ -272,7 +272,7 @@
> >
> >     // Always resample to 48k - many cards can't do anything else
> >     // and ALSA will do it with linear interpolation (yuk) if we don't
> anyway
> > -    if (audio_samplerate != 48000)
> > +    if (0)
> >     {
> >         int error;
> >         audio_samplerate = 48000;
>
>
I'm also doing the whole "bit perfect audio" thing.  So, if I'm
understanding correctly, when I upgrade to head/next myth release I will
need to apply the above patch (which removes one of the features of the
original patch)  to continue getting 44.1KHz output through my soundcard?

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20081110/346a1e86/attachment.htm 


More information about the mythtv-dev mailing list