[mythtv-users] .22 and pulseaudio
Nicolas Will
nico at youplala.net
Tue Oct 27 06:13:11 UTC 2009
On Mon, 2009-10-26 at 22:57 -0400, Phil Linttell wrote:
>
> On 10/25/2009 07:01 AM, mythtv-users-request at mythtv.org wrote:
> > Date: Sun, 25 Oct 2009 01:32:45 +0100
> > From: Nicolas Will <nico at youplala.net>
> > Subject: [mythtv-users] .22 and pulseaudio
> > To: mythtv-users at mythtv.org
> >
> > Hello
> >
> > Ok, I'm now running MythTV .22 everywhere, on Ubuntu 9.10.
> >
> > On my laptop, a .22 frontend, but not dedicated, I now have an issue.
> > Whenever I have the frontend runnin, all sound events from the rest of
> > my environment are not emitted to my speakers. Instead they are queued
> > until I exit MythTV, when I get a very nice compilation!
> >
> > I did not have this problem with .21/9.04 and earlier, where everybody
> > coexisted and MythTV did not take over all the sound for itself.
> >
> > Any pointers?
> >
> > Nico
> >
> >
> Hi Nicolas,
>
> As I understand it, the default behaviour of myth is to suspend pulse
> when it starts, and use alsa directly.
>
> You can try setting the environment variable
> EXPERIMENTALLY_ALLOW_PULSE_AUDIO=1
>
> to force myth to play through pulse. I'm doing this very successfully
> on 9.10...
Yes, that's what I had found.
> with two caveats...
>
> In /etc/pulse/daemon.conf, set:
> realtime-scheduling = yes
> realtime-priority = 5
>
> I also set ...
> default-fragments = 15
> default-fragment-size-msec = 20
> although I'm not sure how much difference this makes.
I'll try.
>
> I'm running VDPAU, so I also set my processor clock to maximum (3GHz
> in my case) when starting mythfrontend which seems to help with the
> sound processing. Otherwise, with VDPAU the clock rate would stay at
> 1GHz.
>
> #!/bin/sh
> echo "3000000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
> mythfrontend
> echo "1000000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
>
>
I will try as well.
> If pulse works for you, you'll be able to enjoy systems sounds
> overlayed on top of your recordings. Enjoy.
I certainly don;t want that on my living room system, but on the laptop,
where I put TV as a background app, I do.
Thanks for all this !
Nico
More information about the mythtv-users
mailing list