Fix suspend&resume of pulseaudio bridge

This commit is contained in:
falkTX 2015-04-16 14:02:00 +02:00
parent 5edd5ee84e
commit f94b2d762a
5 changed files with 27 additions and 5 deletions

View File

@ -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!"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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