Skip to content

Instantly share code, notes, and snippets.

@WhiteCat6142
Last active April 27, 2023 09:41
Show Gist options
  • Save WhiteCat6142/98145dc881ba141aa20d08019cb3b044 to your computer and use it in GitHub Desktop.
Save WhiteCat6142/98145dc881ba141aa20d08019cb3b044 to your computer and use it in GitHub Desktop.
My PulseAudio config (Archives)
nice-level = -15
resample-method = speex-float-7
default-sample-format = s32le
default-sample-rate = 96000
default-sample-channels = 2
default-fragments = 6
default-fragment-size-msec = 16
# https://wiki.archlinux.jp/index.php/PulseAudio/%E3%83%88%E3%83%A9%E3%83%96%E3%83%AB%E3%82%B7%E3%83%A5%E3%83%BC%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0
# https://wiki.archlinux.jp/index.php/PulseAudio/%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.0/8;192.168.0.0/24
load-module module-remap-sink sink_name=mono master=bluez_sink.XX_XX.a2dp_sink channels=2 channel_map=mono,mono
context.spa-libs = {
audio.convert.* = audioconvert/libspa-audioconvert
support.* = support/libspa-support
}
context.modules = [
{ name = libpipewire-module-rtkit
args = {
nice.level = -15
}
flags = [ ifexists nofail ]
}
{ name = libpipewire-module-protocol-native }
{ name = libpipewire-module-client-node }
{ name = libpipewire-module-adapter }
{ name = libpipewire-module-metadata }
{ name = libpipewire-module-protocol-pulse
args = {
# the addresses this server listens on
server.address = [
"unix:native"
#"tcp:4713" # IPv4 and IPv6 on all addresses
]
pulse.default.req = 1024/48000
pulse.min.quantum = 512/48000
pulse.default.format = F32
pulse.default.position = [ FL FR ]
}
}
]
# Extra modules can be loaded here. Setup in default.pa can be moved here
context.exec = [
#{ path = "pactl" args = "module-switch-on-connect" }
#{ path = "/usr/bin/sh" args = "~/.config/pipewire/default.pw" }
]
stream.properties = {
resample.quality = 7
channelmix.upmix = true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment