<?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=7523&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / How to purge pulseaudio from libasound2-plugins]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7523</link>
		<description><![CDATA[The most recent posts in How to purge pulseaudio from libasound2-plugins.]]></description>
		<lastBuildDate>Tue, 04 Nov 2025 22:03:41 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: How to purge pulseaudio from libasound2-plugins]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59104#p59104</link>
			<description><![CDATA[<p>If, for example, you enable &quot;bit perfect&quot; in Audacious and trying to play a DXD wave 352.8 kHz, Audacious will configure the software mixer of macOS (Audio Midi setup) to 88.2kHz&#160; (352.8/4 = 88.2). As a result DXD will be downsampled by macOS resampler to 88.2kHz. But stupid mpv &quot;bit perfect&quot; will set the system mixer to 90kHz (then DXD will be downsampled by mpv with crappy resamplers). It means that both users and developers of mpv are ignorant of Arithmetic (and, perhaps, demented).</p><p>On macOS, you better try IINA, it supports both exclusive mode and bit perfect in a rather stupid way.</p>]]></description>
			<author><![CDATA[dummy@example.com (igorzwx)]]></author>
			<pubDate>Tue, 04 Nov 2025 22:03:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59104#p59104</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to purge pulseaudio from libasound2-plugins]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59103#p59103</link>
			<description><![CDATA[<p>nada; read before about it , maybe today, but it gone already. is it like 1bit dac on CD player=good sound?<br />but ia m experienced mac os x user, quite, ,ay say so.</p><p>however, i installed once &quot;firmware-oss&quot; or something, afterwards had no longer sound, and could not restore alsa; had to re-install operating system <img src="https://dev1galaxy.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><p>my mpv is with vapoursynth, with greeting from Russia?<br /><a href="https://www.svp-team.com/get/" rel="nofollow">https://www.svp-team.com/get/</a></p><div class="codebox"><pre class="vscroll"><code>cat ~/.config/mpv/mpv.conf 
# Sample mpv configuration
#

# this is required for SVP to &quot;catch&quot; the mpv
# scripts\mpvSockets.lua can override this to allow several mpv windows at the same time
input-ipc-server=/tmp/mpvsocket

# hardware video decoder
hwdec=auto-copy
hwdec-codecs=all

vo=gpu-next

# high quality video output, require rather fast video card
#profile=gpu-hq

# this is for HDR passthrough on supported displays (mpv 0.41? wayland only?)
target-colorspace-hint=auto

#gpu-api=vulkan

# miscellaneous options

# comment this one if you want mpv to remember the playback position
save-position-on-quit=no

# fixes audio desync
hr-seek-framedrop=no

#log-file=~/mpv.log</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (kapqa)]]></author>
			<pubDate>Tue, 04 Nov 2025 21:50:49 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59103#p59103</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to purge pulseaudio from libasound2-plugins]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59100#p59100</link>
			<description><![CDATA[<p>I compilted it with OSS4. <br />Your mpv is compiled in exactly the same way as Audacious.<br />You should try Audacious &quot;bit perfect&quot; on macOS</p><p>Do you know what is &quot;bit perfect&quot; on macOS?</p>]]></description>
			<author><![CDATA[dummy@example.com (igorzwx)]]></author>
			<pubDate>Tue, 04 Nov 2025 21:40:14 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59100#p59100</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to purge pulseaudio from libasound2-plugins]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59098#p59098</link>
			<description><![CDATA[<div class="codebox"><pre><code>~/Downloads$ audacious --version
Audacious 4.4.2 (Debian package)</code></pre></div><p>is it recommended to use Audacious from compile version?</p>]]></description>
			<author><![CDATA[dummy@example.com (kapqa)]]></author>
			<pubDate>Tue, 04 Nov 2025 21:26:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59098#p59098</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to purge pulseaudio from libasound2-plugins]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59095#p59095</link>
			<description><![CDATA[<p>You do not need it. </p><p>libjack-dev was installed as a build dependency for Audacious. It can be safely removed</p><p>What is your</p><div class="codebox"><pre><code>audacious --version</code></pre></div><p>libjack is a dependency for Audacious-plugins.</p><p>You may better remove almost all false dependencies from DEBIAN/control and correct version number of your Audacious</p><p>For example</p><div class="codebox"><pre><code>Depends: libc6 </code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (igorzwx)]]></author>
			<pubDate>Tue, 04 Nov 2025 21:14:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59095#p59095</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to purge pulseaudio from libasound2-plugins]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59093#p59093</link>
			<description><![CDATA[<p>have already uninstalled because like wine for 1-2 program.</p><p>is this jack needed for soundplayback?</p><p>when i try to install it</p><div class="codebox"><pre><code>Installing:
  libjack-dev

Installing dependencies:
  libjack0

Suggested packages:
  jackd1

REMOVING:
  libasound2-plugins:i386  libjack-jackd2-0:i386  wine-stable-i386:i386
  libjack-jackd2-0         wine-stable            winehq-stable

Summary:
  Upgrading: 0, Installing: 2, Removing: 6, Not Upgrading: 0</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (kapqa)]]></author>
			<pubDate>Tue, 04 Nov 2025 21:01:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59093#p59093</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to purge pulseaudio from libasound2-plugins]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59089#p59089</link>
			<description><![CDATA[<p>Run simulate without sudo</p><p>apt remove libjack-dev libjack0 --simulate</p>]]></description>
			<author><![CDATA[dummy@example.com (igorzwx)]]></author>
			<pubDate>Tue, 04 Nov 2025 20:47:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59089#p59089</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to purge pulseaudio from libasound2-plugins]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59083#p59083</link>
			<description><![CDATA[<p>Hello , i hae tried this, and it would function?</p><p>however, for some reason, when installing your freedom-hacks, it always seem to uninstall package &quot;wine&quot; which i let go;</p><p>but when afterwards try to re-install &quot;wine&quot;, there is again bit mismatch.</p><p>like here, in order to install wine-hq-stable</p><div class="quotebox"><blockquote><div><p>REMOVING</p><p>libjack-dev libjack0</p></div></blockquote></div><p>is it safe to let remove those packages?</p><p>thanks!</p><p>EDIT: and Discover app would already propose update libpulse2-plugins.</p><p><a href="https://ibb.co/60gdYKKg" rel="nofollow">https://ibb.co/60gdYKKg</a></p><p>EDIT2: this libasound2-plugins route probably not so much needed with your firefox-nightly-tutorial.</p>]]></description>
			<author><![CDATA[dummy@example.com (kapqa)]]></author>
			<pubDate>Tue, 04 Nov 2025 19:56:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59083#p59083</guid>
		</item>
		<item>
			<title><![CDATA[How to purge pulseaudio from libasound2-plugins]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59051#p59051</link>
			<description><![CDATA[<div class="codebox"><pre><code>source: alsa-plugins
https://tracker.debian.org/pkg/alsa-plugins
https://packages.debian.org/source/stable/alsa-plugins
http://deb.debian.org/debian/pool/main/a/alsa-plugins/alsa-plugins_1.2.12-2.dsc</code></pre></div><p><strong>NOTE:</strong> If needed, use <span class="bbc">dget --extract --allow-unauthenticated </span></p><p>Install build dependencies</p><div class="codebox"><pre><code>sudo apt build-dep libasound2-plugins</code></pre></div><p>Simulate</p><div class="codebox"><pre><code>$ apt source libasound2-plugins --simulate
Reading package lists... Done
Picking &#039;alsa-plugins&#039; as source package instead of &#039;libasound2-plugins&#039;
NOTICE: &#039;alsa-plugins&#039; packaging is maintained in the &#039;Git&#039; version control system at:
https://salsa.debian.org/alsa-team/alsa-plugins.git
Please use:
git clone https://salsa.debian.org/alsa-team/alsa-plugins.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 422 kB of source archives.
Fetch source alsa-plugins</code></pre></div><p>Download source code:</p><div class="codebox"><pre><code>$ dget --extract http://deb.debian.org/debian/pool/main/a/alsa-plugins/alsa-plugins_1.2.12-2.dsc
...
dpkg-source: info: extracting alsa-plugins in alsa-plugins-1.2.12
dpkg-source: info: unpacking alsa-plugins_1.2.12.orig.tar.bz2
dpkg-source: info: unpacking alsa-plugins_1.2.12-2.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying arcam-av_uses_pthreads.patch</code></pre></div><div class="codebox"><pre><code>$ ls -1
alsa-plugins-1.2.12
alsa-plugins_1.2.12-2.debian.tar.xz
alsa-plugins_1.2.12-2.dsc
alsa-plugins_1.2.12.orig.tar.bz2
alsa-plugins_1.2.12.orig.tar.bz2.asc</code></pre></div><p>Disable pulseaudio in <span class="bbc">debian/rules</span></p><div class="codebox"><pre><code>$ cat alsa-plugins*/debian/rules | grep disable -B3
override_dh_auto_configure:
	dh_auto_configure -- \
		--with-plugindir=/usr/lib/$(DEB_HOST_MULTIARCH)/alsa-lib \
		--disable-static --disable-pulseaudio</code></pre></div><p>Set <span class="bbc">DH_VERBOSE</span></p><div class="codebox"><pre><code>$ cat alsa-plugins*/debian/rules | grep export
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs
export DH_VERBOSE=1</code></pre></div><p>cd sourcedir</p><div class="codebox"><pre><code>cd alsa-plugins-*</code></pre></div><p>Build Debian binary package (deb)</p><div class="codebox"><pre><code>$ dpkg-buildpackage -us -uc -b
...
Plugin directory: /usr/lib/x86_64-linux-gnu/alsa-lib
ALSA_CFLAGS: 
ALSA_LIBS: -lasound 
JACK plugin:        yes
  JACK_CFLAGS: 
  JACK_LIBS: -ljack -lpthread 
Pulseaudio plugin:  
Samplerate plugin:  yes
  samplerate_CFLAGS: 
  samplerate_LIBS: -lsamplerate 
Maemo plugin:       no
  Using Osso resource manager: no
Libav/ffmpeg config:
  LIBAV_CFLAGS:   -I/usr/include/x86_64-linux-gnu 
  LIBAV_LIBS:     -lavcodec -lavutil -lswresample  /  / 
Libav A52 plugin:   yes
Libav rate plugin:  yes
Speex rate plugin:  lib
Speex preprocess plugin:  yes
AAF plugin:         no
...
dpkg-deb: building package &#039;libasound2-plugins&#039; in &#039;../libasound2-plugins_1.2.12-2_amd64.deb&#039;.</code></pre></div><div class="codebox"><pre><code>$ ls -1 ../*.deb
../libasound2-plugins_1.2.12-2_amd64.deb
../libasound2-plugins-dbgsym_1.2.12-2_amd64.deb</code></pre></div><p>Check debdir: <span class="bbc">debian/libasound2-plugins<br /></span><br />Simulate</p><div class="codebox"><pre><code>$ apt purge libasound2-plugins --simulate
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don&#039;t depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  alsa-config-utils* libasound2-plugin-fftrate* libasound2-plugins*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
Purg alsa-config-utils [1.6.3]
Purg libasound2-plugin-fftrate [1.6.3]
Purg libasound2-plugins [1.2.7.1-1]</code></pre></div><p>The fftrate ALSA plugin packages will be removed</p><div class="codebox"><pre><code>alsa-config-utils* libasound2-plugin-fftrate*</code></pre></div><p>Before removal, create Debian packages from the installed ones </p><div class="codebox"><pre><code>cd ..</code></pre></div><div class="codebox"><pre><code>sudo apt install fakeroot</code></pre></div><div class="codebox"><pre><code>$ fakeroot -u dpkg-repack alsa-config-utils libasound2-plugin-fftrate
dpkg-deb: building package &#039;alsa-config-utils&#039; in &#039;./alsa-config-utils_1.6.3_amd64.deb&#039;.
dpkg-deb: building package &#039;libasound2-plugin-fftrate&#039; in &#039;./libasound2-plugin-fftrate_1.6.3_amd64.deb&#039;.</code></pre></div><div class="codebox"><pre><code>$ ls -1 *.deb
alsa-config-utils_1.6.3_amd64.deb
libasound2-plugin-fftrate_1.6.3_amd64.deb
libasound2-plugins_1.2.12-2_amd64.deb
libasound2-plugins-dbgsym_1.2.12-2_amd64.deb</code></pre></div><p>Purge ALSA plugins</p><div class="codebox"><pre><code>sudo apt purge libasound2-plugins</code></pre></div><p>Install <span class="bbc">libasound2-plugins</span> and fftrate packages:</p><div class="codebox"><pre><code>sudo dpkg -i alsa-config-utils_1.6.3_amd64.deb libasound2-plugin-fftrate_1.6.3_amd64.deb libasound2-plugins_1.2.12-2_amd64.deb</code></pre></div><p>Notice that <span class="bbc">fftrate.conf</span> was restored together with Debian packages</p><div class="codebox"><pre><code>$ cat /etc/fftrate.conf | grep &quot;Transform type&quot; -A3
# Transform type
# Available: dct, fft (default: dct)
#transform = dct
transform = fft</code></pre></div><p>Restart Firefox and test sound quality</p><div class="quotebox"><blockquote><div><p><strong>Hi-Res Music 32 Bit - Greatest Audiophile Collection - Natural Beat Records</strong><br />_https://rutube.ru/video/b54c962301787eb1f2758ac8ba97f5bf/</p><p><strong>Gregorian Chant - Crux Fidelis, 2L audiophile reference recordings</strong><br />_https://www.youtube.com/watch?v=Qnp3zjB52F0<br />_https://youtu.be/Qnp3zjB52F0</p><p><strong>The Mesmerising sound of the OUD</strong><br />_https://youtu.be/ZLbQcs3W0Bs</p></div></blockquote></div><div class="codebox"><pre><code>$ MOZ_LOG=&quot;cubeb:3&quot; firefox 2&gt;&amp;1 rutube.ru/video/b54c962301787eb1f2758ac8ba97f5bf | grep &quot;output stream rate&quot;
[Child 29814: MediaDecoderStateMachine #1]: I/cubeb CubebStreamInit output stream rate 44100</code></pre></div><div class="codebox"><pre><code>$ MOZ_LOG=&quot;cubeb:3&quot; firefox 2&gt;&amp;1 youtu.be/Qnp3zjB52F0 | grep &quot;output stream rate&quot;
[Child 30746: MediaDecoderStateMachine #1]: I/cubeb CubebStreamInit output stream rate 48000</code></pre></div><p><strong>Note on Exclusive Mode Limitations:</strong> Firefox uses 32-bit floating-point audio format by default. If your sound card does not natively support this format, exclusive mode (direct hw: device access) will not work. You must use the ALSA plug plugin for format conversion. Configure your ALSA default device to use type plug with <span class="bbc">slave.pcm &quot;hw:X,Y&quot;</span> for automatic format conversion.</p><p>If you do not know what &quot;plug plugin&quot; is, install fftrate packages and configure ALSA with <span class="bbc">arateconf</span> (interactive mode). It will fix all problems.</p><h5>Why Rebuild libasound2-plugins After Removing PulseAudio</h5><p>You&#039;ve already removed the PulseAudio server from your Debian system. However, the PulseAudio ALSA plugin is still installed as part of the <span class="bbc">libasound2-plugins</span> package. This leftover plugin causes problems even though the PulseAudio server is gone.</p><p>Exclusive mode is a critical feature for professional audio applications and low-latency audio work. It allows an application to take direct control of the audio hardware, preventing other applications from playing audio simultaneously and eliminating software mixing layers that add latency and potential quality degradation.</p><p>As long as the PulseAudio ALSA plugin is installed, any sort of exclusive mode or direct hardware access is impossible with ALSA. Even though you&#039;ve removed the PulseAudio server, the plugin still intercepts all ALSA audio calls and tries to route them through the non-existent PulseAudio server.</p><p>This means:</p><p>1. No exclusive hardware access: Applications cannot open audio devices with <span class="bbc">hw:X,Y</span> for direct hardware control.<br />2. No true low-latency mode: The plugin layer adds overhead even when it fails.<br />3. Audio initialization failures: Applications like Firefox fail to open ALSA devices because the plugin tries to connect to a PulseAudio server that doesn&#039;t exist (<span class="bbc">src/cubeb_alsa.c:718-720</span>)</p><p>Why This Matters for Audio Applications</p><p>The leftover plugin blocks exclusive mode access and causes audio failures, making it impossible to achieve the low-latency, direct hardware access that removing PulseAudio was meant to enable. Applications using the cubeb audio library (like Firefox) detect the PulseAudio ALSA plugin and apply special workarounds: (<span class="bbc">src/cubeb_alsa.c:911-916</span>)</p><p>These workarounds assume the PulseAudio server is running. When the server is removed but the plugin remains, applications experience:</p><p>- Format compatibility issues: Certain audio formats (especially 32-bit Float) fail to initialize (<span class="bbc">src/cubeb_alsa.c:1012-1016</span>)<br />- Forced latency hacks: Applications apply minimum latency workarounds for a PulseAudio server that doesn&#039;t exist (<span class="bbc">src/cubeb_alsa.c:1063-1069</span>).<br />- Complete audio failure: The plugin tries to route audio through PulseAudio, fails, and doesn&#039;t fall back to direct ALSA access.</p><p>What Rebuilding <span class="bbc">libasound2-plugins</span> Does</p><p>By rebuilding <span class="bbc">libasound2-plugins</span> with <span class="bbc">--disable-pulseaudio</span> option, you:</p><p>1. Enable a sort of exclusive mode: Applications can now use <span class="bbc">hw:X,Y</span> device names for direct hardware access without the PulseAudio plugin intercepting the calls.<br />2. Remove the broken plugin: The PulseAudio ALSA plugin won&#039;t be built or installed.<br />3. Enable direct ALSA access: Applications will use ALSA directly without trying to route through the non-existent PulseAudio server.<br />4. Fix audio playback: Applications like Firefox will work properly with all audio formats, including 32-bit Float.<br />5. Achieve lower latency: Without the plugin layer, audio has a more direct path to hardware.</p><p>Cubeb is the audio library that Firefox and other Mozilla applications use to play sound (<span class="bbc">include/cubeb/cubeb.h:16-22</span>). Think of it as Firefox&#039;s &quot;audio engine&quot;. When cubeb detects the PulseAudio ALSA plugin, it cannot provide exclusive mode access and must work around PulseAudio&#039;s limitations (<span class="bbc">src/cubeb_alsa.c:653-657</span>).</p><p>With the plugin removed, cubeb can finally access ALSA directly, enabling exclusive mode capabilities and eliminating the workarounds that were necessary for the broken PulseAudio plugin.</p><p><strong>Important:</strong> This affects ALL audio applications on your system, not just web browsers. Any application that uses ALSA for audio output will be impacted by the PulseAudio ALSA plugin:</p><p>&#160; &#160; All web browsers - Firefox, Chrome, Chromium, Opera, Brave, Edge, and any other browser<br />&#160; &#160; Media players - VLC, MPV, MPlayer, and other video/audio players<br />&#160; &#160; Games - Both native Linux games and games running through Wine/Proton<br />&#160; &#160; Audio production software - Audacity, Ardour, and other DAWs<br />&#160; &#160; Communication apps - Discord, Zoom, Skype, and other VoIP applications<br />&#160; &#160; Any other software that plays or records audio</p><p>The PulseAudio ALSA plugin sits at the ALSA library level, intercepting all audio calls system-wide. This means every application that tries to use ALSA will encounter the broken plugin trying to route audio through the non-existent PulseAudio server.</p><p>Rebuilding <span class="bbc">libasound2-plugins</span> without PulseAudio fixes audio for your entire system, not just one application.</p>]]></description>
			<author><![CDATA[dummy@example.com (igorzwx)]]></author>
			<pubDate>Tue, 04 Nov 2025 12:38:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59051#p59051</guid>
		</item>
	</channel>
</rss>
