alsa-monitor: Lower our device reservation priority

For now, let's lower our priority in device reservation below that of
PulseAudio (which currently uses a priority of 0), so that it takes
priority while contending for the same device.
This commit is contained in:
Arun Raghavan 2020-09-18 14:49:34 -04:00 committed by Wim Taymans
parent 4be4a0b250
commit 2acfa0ee10

View file

@ -787,7 +787,7 @@ static struct device *alsa_create_device(struct impl *impl, uint32_t id,
reserve = pw_properties_get(device->props, "api.dbus.ReserveDevice1"); reserve = pw_properties_get(device->props, "api.dbus.ReserveDevice1");
device->reserve = rd_device_new(impl->conn, reserve, device->reserve = rd_device_new(impl->conn, reserve,
"PipeWire", 10, "PipeWire", -10,
&reserve_callbacks, device); &reserve_callbacks, device);
if (device->reserve == NULL) { if (device->reserve == NULL) {