I need to switch the pulseaudio server of a currently playing audio stream.
Pulseaudio server is set up with IP 192.168.1.105
$>cat /etc/pulse/default.pa
...
load-module module-esound-protocol-tcp auth-anonymous=1
load-module module-native-protocol-tcp auth-anonymous=1
load-module module-zeroconf-publish
...
On the source side VLC media player is playing a song.
I created a new tunnel sink with pulseaudio on source side.
pacmd load-module module-tunnel-sink server=192.168.1.105
pacmd set-default-sink 1
But while playing audio the server couldn't be changed immediately. Only after stopping the player and replay, it's ok.
From "gnome-volume-control" or "gnome-control-center sound" switching of output devices is applied immediately.
How can I apply switching the output sink immediately from command line during playback of a sound file?