[pulseaudio-discuss] Sound transfer

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


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 (
  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=; 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 (
  1. export PULSE_SERVER=
  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 !


More information about the pulseaudio-discuss mailing list