Browse Source

Fix suspend&resume of pulseaudio bridge

tags/v0.9.0
falkTX 9 years ago
parent
commit
f94b2d762a
5 changed files with 27 additions and 5 deletions
  1. +1
    -1
      data/cadence-pulse2jack
  2. +8
    -2
      data/pulse2jack/play+rec.pa
  3. +6
    -2
      data/pulse2jack/play.pa
  4. +6
    -0
      data/pulse2loopback/play+rec.pa
  5. +6
    -0
      data/pulse2loopback/play.pa

+ 1
- 1
data/cadence-pulse2jack 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!"


+ 8
- 2
data/pulse2jack/play+rec.pa 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

+ 6
- 2
data/pulse2jack/play.pa 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

+ 6
- 0
data/pulse2loopback/play+rec.pa 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


+ 6
- 0
data/pulse2loopback/play.pa 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


Loading…
Cancel
Save