aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-03-03 13:36:49 +0100
committerdec05eba <dec05eba@protonmail.com>2025-03-03 13:36:49 +0100
commit0fff47cc58e50ff397aff56e842e15db2ea31e2f (patch)
tree6323dfcccb58ab6e8adb517883311e0533d0501a /src
parent902556b143342b8e03474fc62ab363c41c6d30a3 (diff)
Revert "Pulseaudio audio device capture: dont change default output when switching default output"
This reverts commit 902556b143342b8e03474fc62ab363c41c6d30a3.
Diffstat (limited to 'src')
-rw-r--r--src/sound.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sound.cpp b/src/sound.cpp
index b0924f7..aaf8ef5 100644
--- a/src/sound.cpp
+++ b/src/sound.cpp
@@ -234,11 +234,10 @@ static pa_handle* pa_sound_device_new(const char *server,
if(!startup_get_default_devices(p, device_name))
goto fail;
- // TODO: This has to be disabled because of bugs in pipewire (and kde plasma?)
- //pa_context_set_subscribe_callback(p->context, subscribe_cb, p);
- //pa = pa_context_subscribe(p->context, PA_SUBSCRIPTION_MASK_SERVER, NULL, NULL);
- //if(pa)
- // pa_operation_unref(pa);
+ pa_context_set_subscribe_callback(p->context, subscribe_cb, p);
+ pa = pa_context_subscribe(p->context, PA_SUBSCRIPTION_MASK_SERVER, NULL, NULL);
+ if(pa)
+ pa_operation_unref(pa);
return p;