[pipewire] audio config

This commit is contained in:
Afonso Franco 2024-10-07 20:17:54 +01:00
parent 7810f71989
commit 29e1cd507d
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54
6 changed files with 109 additions and 0 deletions

View file

@ -0,0 +1,42 @@
context.objects = [
{ factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = "Browser"
media.class = Audio/Duplex
channel_map = stereo
monitor.passthrough = true
monitor.channel-volumes = true
}
},
{ factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = "Social"
media.class = Audio/Duplex
channel_map = stereo
monitor.passthrough = true
monitor.channel-volumes = true
}
},
{ factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = "Gaming"
media.class = Audio/Duplex
channel_map = stereo
monitor.passthrough = true
monitor.channel-volumes = true
}
},
{ factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = "Desktop Audio"
media.class = Audio/Sink
channel_map = stereo
monitor.passthrough = true
monitor.channel-volumes = true
}
},
]

View file

@ -0,0 +1,7 @@
context.properties = {
default.clock.rate = 96000
default.clock.allowed-rates = [ 96000 ]
default.clock.quantum = 128
default.clock.max-quantum = 128
default.clock.min-quantum = 128
}

View file

@ -0,0 +1,15 @@
"monitor.alsa.rules": [
{
"matches": [
{
"node.name": "alsa_output.pci-0000_2b_00.1.hdmi-stereo-extra1"
}
],
"actions": {
"update-props": {
"node.description": "Acer Monitor Speakers",
"node.nick": "Acer Monitor Speakers"
}
}
}
]

View file

@ -0,0 +1,15 @@
"monitor.alsa.rules": [
{
"matches": [
{
"node.name": "alsa_input.usb-Focusrite_Scarlett_Solo_USB_Y70DAWR074D97D-00.HiFi__scarlett2i_mono_in_USB_0_1__source"
}
],
"actions": {
"update-props": {
"node.description": "Scarlett Solo Instrument",
"node.nick": "Scarlett Solo Instrument"
}
}
}
]

View file

@ -0,0 +1,15 @@
"monitor.alsa.rules": [
{
"matches": [
{
"node.name": "alsa_input.usb-Focusrite_Scarlett_Solo_USB_Y70DAWR074D97D-00.HiFi__scarlett2i_mono_in_USB_0_0__source"
}
],
"actions": {
"update-props": {
"node.description": "Scarlett Solo Microphone",
"node.nick": "Scarlett Solo Microphone"
}
}
}
]

View file

@ -0,0 +1,15 @@
"monitor.alsa.rules": [
{
"matches": [
{
"node.name": "alsa_output.usb-Focusrite_Scarlett_Solo_USB_Y70DAWR074D97D-00.HiFi__hw_USB__sink"
}
],
"actions": {
"update-props": {
"node.description": "Scarlett Solo Headphones",
"node.nick": "Scarlett Solo Headphones"
}
}
}
]