fix(dac-wizard): use DAC name in PipeWire config filename

This commit is contained in:
vicrodh committed 2026-02-03 02:31:57 -06:00
1 parent fb85ee2de4
commit c3ae0a2e6a
1 file changed
+2 -1
+2 -1
View File
@@ -153,10 +153,11 @@
function generatePipewireConfig(): string[] {
const rates = Array.from(selectedSampleRates).sort((a, b) => a - b);
const ratesStr = rates.length > 0 ? rates.join(' ') : '44100 48000 88200 96000 176400 192000';
const fileName = dacNodeName ? `99-qbz-dac-${dacShortName()}.conf` : '99-qbz-dac.conf';
return [
'mkdir -p ~/.config/pipewire/pipewire.conf.d',
`cat > ~/.config/pipewire/pipewire.conf.d/99-qbz-dac.conf << 'EOF'`,
`cat > ~/.config/pipewire/pipewire.conf.d/${fileName} << 'EOF'`,
'# QBZ DAC Setup - Sample Rate Switching',
'context.properties = {',
` default.clock.allowed-rates = [ ${ratesStr} ]`,