This is a rather crazy idea.
I am planing to set up a configuration that would send audio being played on my laptop to my home server via local network so that the sound is played on the server connected to a hi-fi with good speakers.
It's supposed to serve the purpose of watching movies on the laptop with sound on the speakers without rearanging cables.
I suppose it can be done similarly to writing text to a file mounted via sftp, but with the /dev/audio or /dev/mixer
But I have no idea how to intercept the audio output.
Looking forward to tips from Pros 😉
Best Answer
As Gilles said, you're best of looking into updating your soundserver config.
You can use pulseaudio to listen to a TCP port. Be sure to check padevchooser, which is a GUI frontend to update your config.
You can find a tutorial on the archlinux wiki.