<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
On 10/25/2009 07:01 AM, <a class="moz-txt-link-abbreviated" href="mailto:mythtv-users-request@mythtv.org">mythtv-users-request@mythtv.org</a> wrote:
<blockquote
cite="mid:mailman.2745.1256468497.7619.mythtv-users@mythtv.org"
type="cite">
<pre wrap="">Date: Sun, 25 Oct 2009 01:32:45 +0100
From: Nicolas Will <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="mailto:nico@youplala.net"><nico@youplala.net></a>
Subject: [mythtv-users] .22 and pulseaudio
To: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
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
</pre>
</blockquote>
Hi Nicolas,<br>
<br>
As I understand it, the default behaviour of myth is to suspend pulse
when it starts, and use alsa directly.<br>
<br>
You can try setting the environment variable <br>
EXPERIMENTALLY_ALLOW_PULSE_AUDIO=1<br>
<br>
to force myth to play through pulse. I'm doing this very successfully
on 9.10... with two caveats...<br>
<br>
In /etc/pulse/daemon.conf, set:<br>
<blockquote>realtime-scheduling = yes<br>
realtime-priority = 5<br>
</blockquote>
<br>
I also set ...<br>
<blockquote>default-fragments = 15<br>
default-fragment-size-msec = 20<br>
</blockquote>
although I'm not sure how much difference this makes.<br>
<br>
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.<br>
<br>
#!/bin/sh<br>
echo "3000000" >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq<br>
mythfrontend<br>
echo "1000000" >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq<br>
<br>
<br>
If pulse works for you, you'll be able to enjoy systems sounds
overlayed on top of your recordings. Enjoy.<br>
<br>
Phil<br>
</body>
</html>