<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Feature request: do not resample nor output sound with 0 usage"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103569#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Feature request: do not resample nor output sound with 0 usage"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103569">bug 103569</a>
from <span class="vcard"><a class="email" href="mailto:Hi-Angel@yandex.ru" title="Hi-Angel <Hi-Angel@yandex.ru>"> <span class="fn">Hi-Angel</span></a>
</span></b>
<pre>@Tanu Kaskinen thank you. I decided to take a quick look today. I profiled with
callgrind (btw, attaching in case anybody else is interested) for running a
game for a bit; turns out most of the time is spent at the bottom of this loop
<a href="https://github.com/pulseaudio/pulseaudio/blob/d9624e0382aabc106252e3a39665293e72ed08bb/src/modules/alsa/alsa-sink.c#L654">https://github.com/pulseaudio/pulseaudio/blob/d9624e0382aabc106252e3a39665293e72ed08bb/src/modules/alsa/alsa-sink.c#L654</a>
functions pa_sink_render_into_full(29.47% including children) and
snd_pcm_mmap_commit(10.15% including children).
I am however completely unfamiliar with pulseaudio in particular and audio
processing in general, can you tell what's going on there? And how would I go
about getting sound level — both configured (i.e. "whether a user muted sound")
and one of the stream (i.e. "whether stream is playing silence?").</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>