summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Yves Avenard <jyavenard@mythtv.org>2011-05-09 18:32:31 (GMT)
committer Jean-Yves Avenard <jyavenard@mythtv.org>2011-05-09 18:32:31 (GMT)
commit5461754cd439d9ed188b9a028678cc1b5dc72b7b (patch)
tree459c6ddd9105258054147c71f257b5bd6ff8a783
parent475f612ae0d6158fde06e68d7be73c137a2386cb (diff)
Prevent 100% CPU usage when in pause mode. Note that the following options help preventing the blast of static when using pulse:
- Use ALSA, including the pulse's ALSA plug (usually ALSA:pulse) - Change pulse server sampling rate from the default 44.1kHz to 48kHz - In Advanced audio settings, disable myth's resampler. In all, those are issues with pulse, not myth
-rw-r--r--mythtv/libs/libmyth/audiooutputpulse.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/mythtv/libs/libmyth/audiooutputpulse.cpp b/mythtv/libs/libmyth/audiooutputpulse.cpp
index 26df7b6..67e762d 100644
--- a/mythtv/libs/libmyth/audiooutputpulse.cpp
+++ b/mythtv/libs/libmyth/audiooutputpulse.cpp
@@ -233,10 +233,6 @@ void AudioOutputPulseAudio::WriteAudio(uchar *aubuf, int size)
QString fn_log_tag = "WriteAudio, ";
pa_stream_state_t sstate = pa_stream_get_state(pstream);
- // Do not write anything to pulse server if we are in pause mode
- if (IsPaused())
- return;
-
VBAUDIOTS(fn_log_tag + QString("writing %1 bytes").arg(size));
/* NB This "if" check can be replaced with PA_STREAM_IS_GOOD() in