<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7554&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Output lag routing OBS through apulse]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7554</link>
		<description><![CDATA[The most recent posts in Output lag routing OBS through apulse.]]></description>
		<lastBuildDate>Wed, 12 Nov 2025 11:41:11 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Output lag routing OBS through apulse]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59487#p59487</link>
			<description><![CDATA[<p>To achieve full functionality with ALSA, proper configuration is essential, especially on systems where default setups may not suffice. </p><p>EXAMPLE:</p><div class="codebox"><pre class="vscroll"><code>$ cat ~/.asoundrc
# ALSA library configuration file managed by arateconf.
#
# MANUAL CHANGES TO THIS FILE WILL BE OVERWRITTEN!
#
# Manual changes to the ALSA library configuration should be implemented
# by editing the ~/.asoundrc file, not by editing this file.

#=====================================================
# Configuration for system
#-----------------------------------------------------

# Perform dmixer
pcm.dmixer_system
{
	type			dmix
	ipc_key			1024
	ipc_perm		0666

	hint
	{
		show		off
		description	&quot;Direct mixing of multiple audio streams (system)&quot;
	}

	slave
	{
		pcm		&quot;hw:system,0&quot;

		rate		48000
		channels	2
		format		S16_LE

		period_size	1920
		buffer_size	7680
	}
}

# Perform dsnooper
pcm.dsnooper_system
{
	type			dsnoop
	ipc_key			1025
	ipc_perm		0666

	hint
	{
		show		off
		description	&quot;Recording from the same device for several applications simultaneously (system)&quot;
	}

	slave
	{
		pcm		&quot;hw:system,0&quot;

		rate		48000
		format		S16_LE

		period_size	1920
		buffer_size	7680
	}
}

# Perform duplex
pcm.duplex_system
{
	type			asym
	playback.pcm		&quot;dmixer_system&quot;
	capture.pcm		&quot;dsnooper_system&quot;

	hint
	{
		show		off
		description	&quot;Full duplex for simultaneous playback and recording (system)&quot;
	}
}

# Perform convert
pcm.convert_system
{
	type			rate
	converter		fftrate

	hint
	{
		show		off
		description	&quot;Sample rate converter (system)&quot;
	}

	slave
	{
		pcm	&quot;duplex_system&quot;
		rate	48000
		format	S16_LE
	}
}

# Perform plug device
pcm.primary_system
{
	type			plug
	slave.pcm		&quot;convert_system&quot;
	hint.description	&quot;Default device (system)&quot;
}

#=====================================================
# Configuration for PCH
#-----------------------------------------------------

# Perform dmixer
pcm.dmixer_PCH
{
	type			dmix
	ipc_key			1026
	ipc_perm		0666

	hint
	{
		show		off
		description	&quot;Direct mixing of multiple audio streams (PCH)&quot;
	}

	slave
	{
		pcm		&quot;hw:PCH,0&quot;

		rate		192000
		channels	2
		format		S32_LE

		period_size	7680
		buffer_size	30720
	}
}

# Perform dsnooper
pcm.dsnooper_PCH
{
	type			dsnoop
	ipc_key			1027
	ipc_perm		0666

	hint
	{
		show		off
		description	&quot;Recording from the same device for several applications simultaneously (PCH)&quot;
	}

	slave
	{
		pcm		&quot;hw:PCH,0&quot;

		rate		192000
		format		S32_LE

		period_size	7680
		buffer_size	30720
	}
}

# Perform duplex
pcm.duplex_PCH
{
	type			asym
	playback.pcm		&quot;dmixer_PCH&quot;
	capture.pcm		&quot;dsnooper_PCH&quot;

	hint
	{
		show		off
		description	&quot;Full duplex for simultaneous playback and recording (PCH)&quot;
	}
}

# Perform convert
pcm.convert_PCH
{
	type			rate
	converter		fftrate

	hint
	{
		show		off
		description	&quot;Sample rate converter (PCH)&quot;
	}

	slave
	{
		pcm	&quot;duplex_PCH&quot;
		rate	192000
		format	S32_LE
	}
}

#=====================================================
# Configuration for default audio device
#-----------------------------------------------------

# Perform plug device
pcm.!default
{
	type			plug
	slave.pcm		&quot;convert_PCH&quot;
	hint.description	&quot;Default device&quot;
}</code></pre></div><p>Notice:</p><div class="codebox"><pre><code>&quot;Full duplex for simultaneous playback and recording (system)&quot;</code></pre></div><p>Debian/Devuan has already <span class="bbc">dmix</span> configured and enabled by default, but it might not be suitable for your needs.</p>]]></description>
			<author><![CDATA[dummy@example.com (igorzwx)]]></author>
			<pubDate>Wed, 12 Nov 2025 11:41:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59487#p59487</guid>
		</item>
		<item>
			<title><![CDATA[Re: Output lag routing OBS through apulse]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59478#p59478</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>It is not true. Firefox-esr works with ALSA.</p></div></blockquote></div><p>No argument here; I was only testing the PulseAudio version to help troubleshoot my issues with apulse and OBS Studio. I appreciate the detailed instructions for recompiling Firefox; however, there doesn&#039;t appear to be an equivalent way to coerce OBS into support ALSA for output monitoring. It seems this feature is only available if one installs PulseAudio or PipeWire, which is strange, as OBS supports ALSA <em>input</em> sources without issue.</p>]]></description>
			<author><![CDATA[dummy@example.com (stultumanto)]]></author>
			<pubDate>Wed, 12 Nov 2025 07:58:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59478#p59478</guid>
		</item>
		<item>
			<title><![CDATA[Re: Output lag routing OBS through apulse]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59469#p59469</link>
			<description><![CDATA[<div class="quotebox"><cite>stultumanto wrote:</cite><blockquote><div><p>The Firefox packaged with mainline Debian no longer supports ALSA directly.</p></div></blockquote></div><p>It is not true. Firefox-esr works with ALSA. To reduce latency, you have to disable <span class="bbc">pulse-rust</span> backend and recompile <span class="bbc">libasound2-plugins</span> with <span class="bbc">--disable-pulseaudio</span><br />_https://dev1galaxy.org/viewtopic.php?id=7523</p><p>It is not difficult to compile Firefox without pulseaudio.</p><div class="quotebox"><blockquote><div><p>Firefox uses 32-bit floating-point audio format by default. If your sound card does not natively support this format, direct <span class="bbc">hw:device</span> access will not work. You must use the ALSA plug plugin for format conversion. Configure your ALSA default device to use <span class="bbc">type plug</span> with <span class="bbc">slave.pcm &quot;hw:X,Y&quot;</span> for automatic format conversion.</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (igorzwx)]]></author>
			<pubDate>Wed, 12 Nov 2025 00:41:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59469#p59469</guid>
		</item>
		<item>
			<title><![CDATA[Re: Output lag routing OBS through apulse]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59464#p59464</link>
			<description><![CDATA[<p>Thanks for sharing that data point. I just tried using apulse with Firefox ESR on a Debian installation. (The Firefox packaged with mainline Debian no longer supports ALSA directly.) I observed exactly what you describe. It seems apulse is the source of the high latency. What&#039;s odd is that, according to the documentation, apulse simply wraps the ALSA mixing tools dmix, dsnoop, and plug. Logically, then, it would seem these tools must be the source of the latency.</p><p>I actually did find some discussions by people who claimed to have latency issues with the ALSA userspace utilities. Perhaps there is a buffer setting in these tools I can adjust. If that doesn&#039;t work, though, I may just give in and install PipeWire, as it appears more and more applications are coming to rely on it.</p>]]></description>
			<author><![CDATA[dummy@example.com (stultumanto)]]></author>
			<pubDate>Tue, 11 Nov 2025 23:38:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59464#p59464</guid>
		</item>
		<item>
			<title><![CDATA[Re: Output lag routing OBS through apulse]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59462#p59462</link>
			<description><![CDATA[<p>I used apulse with firefox for a while and suffered with bad latency, I assumed it was firefox. After having a hissy fit and purging apulse after my headset refused to work I forgot I had done so and launched firefox to discover the latency was greatly reduced. Not conclusive, but if you can find a method to resize apuls&#039;es buffers it might be worth the effort to try it.</p>]]></description>
			<author><![CDATA[dummy@example.com (g4sra)]]></author>
			<pubDate>Tue, 11 Nov 2025 23:19:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59462#p59462</guid>
		</item>
		<item>
			<title><![CDATA[Output lag routing OBS through apulse]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59458#p59458</link>
			<description><![CDATA[<p>OBS Studio only supports PulseAudio for output monitoring, so I&#039;m using apulse to route its output to ALSA. It works OK, but there is an unusual amount of audio lag; it sounds like several hundred milliseconds. I&#039;ve tested looping back my microphone through ALSA using sox, and there&#039;s almost no latency at all. Either apulse or OBS is causing the lag, but I can&#039;t tell which. I was wondering if anyone else had any experience with latency issues using these two programs. My searches didn&#039;t turn up anything specific.</p>]]></description>
			<author><![CDATA[dummy@example.com (stultumanto)]]></author>
			<pubDate>Tue, 11 Nov 2025 23:06:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59458#p59458</guid>
		</item>
	</channel>
</rss>
