[pulseaudio-discuss] Sound transfer

Loris Boillet lb at 2m.dk
Fri Feb 2 04:18:30 PST 2007


Hello,

I am currently trying to use pulseaudio in order to transfer sound from
machine A to machine B. So what I would like is:
if sound.wav is played on A (ex: aplay sound.wav)
then we can hear sound.wav on B speakers.

Both machines are Debian Etch (testing), with alsa, alsa-plugins, ...
(libasound2, libasound2-plugins)
here is what I 've tried:

Machine A (192.168.20.1):
  1. "redirection" of alsa device to pulse:
     $ cat .asoundrc
     pcm.!default {
     type pulse
     }
     ctl.!default {
     type pulse
     }
  2. pulseaudio -nC
        load-module module-null-sink sink_name=rtp
        load-module module-rtp-send source=rtp.monitor
        load-module module-native-protocol-tcp
auth-ip-acl=127.0.0.1;192.168.0.0/16 auth-anonymous=1

        set-sink-volume rtp 0x10000
        set-sink-mute rtp 0
        set-source-volume rtp.monitor 0x10000
        set-source-mute rtp.monitor 0

        set-default-sink rtp
        set-default-source rtp.monitor


Machine B (192.168.21.0):
  1. export PULSE_SERVER=192.168.20.1
  2. pulseaudio -nC
        load-module module-alsa-sink sink_name=alsa
        load-module module-rtp-recv sink=alsa
        set-sink-volume alsa 0x10000
        set-sink-mute alsa 0

Then different tries on A:
  aplay sound.wav
  paplay sound.wav
  alsaplayer sound.wav

But I don't get any sound on B. if I try:
play-file /path/to/somesound.wav in B's pulse tty, I have sound, so B's
sink is OK I guess.

What am I missing? Any help would be much appreciated !

Thanks






More information about the pulseaudio-discuss mailing list