diff --git a/data/cadence-pulse2jack b/data/cadence-pulse2jack index d555390..5266cb9 100755 --- a/data/cadence-pulse2jack +++ b/data/cadence-pulse2jack @@ -118,7 +118,7 @@ if (IsPulseAudioRunning); then } else { - if (`pulseaudio --daemonize --high-priority --realtime --disallow-module-loading --exit-idle-time=-1 --file=$FILE -n`); then + if (`pulseaudio --daemonize --high-priority --realtime --exit-idle-time=-1 --file=$FILE -n`); then echo "Initiated PulseAudio successfully!" else echo "Failed to initialize PulseAudio!" diff --git a/data/pulse2jack/play+rec.pa b/data/pulse2jack/play+rec.pa index 64bf209..781baf9 100644 --- a/data/pulse2jack/play+rec.pa +++ b/data/pulse2jack/play+rec.pa @@ -28,12 +28,18 @@ load-module module-stream-restore load-module module-card-restore ### Load Jack modules -load-module module-jack-sink load-module module-jack-source +load-module module-jack-sink ### Load unix protocol load-module module-native-protocol-unix +### Automatically restore the default sink/source when changed by the user +### during runtime +### NOTE: This should be loaded as early as possible so that subsequent modules +### that look up the default sink/source get the right value +load-module module-default-device-restore + ### Automatically move streams to the default sink if the sink they are ### connected to dies, similar for sources load-module module-rescue-streams @@ -42,5 +48,5 @@ load-module module-rescue-streams load-module module-always-sink ### Make Jack default -set-default-sink jack_out set-default-source jack_in +set-default-sink jack_out diff --git a/data/pulse2jack/play.pa b/data/pulse2jack/play.pa index dffaaaa..3fc04dd 100644 --- a/data/pulse2jack/play.pa +++ b/data/pulse2jack/play.pa @@ -29,11 +29,16 @@ load-module module-card-restore ### Load Jack modules load-module module-jack-sink -# load-module module-jack-source ### Load unix protocol load-module module-native-protocol-unix +### Automatically restore the default sink/source when changed by the user +### during runtime +### NOTE: This should be loaded as early as possible so that subsequent modules +### that look up the default sink/source get the right value +load-module module-default-device-restore + ### Automatically move streams to the default sink if the sink they are ### connected to dies, similar for sources load-module module-rescue-streams @@ -43,4 +48,3 @@ load-module module-always-sink ### Make Jack default set-default-sink jack_out -# set-default-source jack_in diff --git a/data/pulse2loopback/play+rec.pa b/data/pulse2loopback/play+rec.pa index d00ba0d..99b1e0d 100644 --- a/data/pulse2loopback/play+rec.pa +++ b/data/pulse2loopback/play+rec.pa @@ -30,6 +30,12 @@ load-module module-card-restore ### Load unix protocol load-module module-native-protocol-unix +### Automatically restore the default sink/source when changed by the user +### during runtime +### NOTE: This should be loaded as early as possible so that subsequent modules +### that look up the default sink/source get the right value +load-module module-default-device-restore + ### Automatically move streams to the default sink if the sink they are ### connected to dies, similar for sources load-module module-rescue-streams diff --git a/data/pulse2loopback/play.pa b/data/pulse2loopback/play.pa index 252d76f..58b8864 100644 --- a/data/pulse2loopback/play.pa +++ b/data/pulse2loopback/play.pa @@ -30,6 +30,12 @@ load-module module-card-restore ### Load unix protocol load-module module-native-protocol-unix +### Automatically restore the default sink/source when changed by the user +### during runtime +### NOTE: This should be loaded as early as possible so that subsequent modules +### that look up the default sink/source get the right value +load-module module-default-device-restore + ### Automatically move streams to the default sink if the sink they are ### connected to dies, similar for sources load-module module-rescue-streams