Repository navigation
Conversation
PipeWire only allowed 48 kHz, so every 44.1 kHz track and 88.2/96 kHz recording was resampled. A drop-in allows 44.1, 48, 88.2 and 96 kHz, so PipeWire switches an idle device to the rate of the stream that starts on it when the hardware supports it, and plays it bit-perfect. Rates a device can't do still resample. New installs get the drop-in from config/. Existing installs get it from a migration that also applies the rates to the running graph, since PipeWire only reads conf.d at startup, and that leaves a user's own copy of the file alone. Refs omacom#13832 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
manuaudio
marked this pull request as ready for review
October 1, 2026 19:28
Contributor
|
…ser in the test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tays off the host Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Closing this to keep my open PRs to a handful. Thanks for looking, and I'm happy to reopen it if it's still useful. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 2 of the pro-audio proposal in #13832. Nothing changes for 48 kHz sources; 44.1, 88.2 and 96 kHz sources play at their own rate when the hardware supports it, and other rates are still resampled.
Problem
PipeWire's
clock.allowed-ratesis[ 48000 ]on a stock install, so every 44.1 kHz track and 88.2/96 kHz recording is resampled on its way to the device. On macOS, CoreAudio follows the source's rate.Change
config/pipewire/pipewire.conf.d/10-sample-rates.confsetsdefault.clock.allowed-rates = [ 44100 48000 88200 96000 ]. When a stream starts on an idle device, PipeWire switches the device to that stream's rate if the hardware supports it. Otherwise it resamples exactly as it does today. New installs get the file throughconfig/.1790745839installs the drop-in for existing users withomarchy-refresh-config. It also applies the same rates to the running graph withpw-metadata, since PipeWire only readsconf.dat startup. So the change takes effect on update without restarting PipeWire or interrupting playback. If the user already has the file, the migration leaves it and the running rates alone.#11092 pins screen recording audio at 48 kHz, which is a separate setting. Recordings keep that fixed rate either way.
Testing
Live on Omarchy 4.0.0.alpha, PipeWire 1.6.8. I played a 44.1 kHz file and read the graph rate from
pw-top:allowed-rates[ 48000 ](today)[ 44100 48000 88200 96000 ]The test machine's only output was PipeWire's null sink (its monitor was off). So this shows the graph switching rate, not a specific DAC. A check on real hardware from anyone with a USB DAC or audio interface would be welcome.
New
test/shell.d/pipewire-sample-rates-test.sh:pw-configmerges the shipped drop-in and reportsdefault.clock.allowed-rates: [ 44100 48000 88200 96000 ].pw-metadata../test/cli: the only failure,vscode generated theme references current theme file, is the same onquattro.🤖 Generated with Claude Code