xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Changes between Version 3 and Version 4 of Sound


Ignore:
Timestamp:
01/07/13 10:12:40 (8 years ago)
Author:
Antoine Martin
Comment:

re-order things

Legend:

Unmodified
Added
Removed
Modified
  • Sound

    v3 v4  
    33''Note: at the moment sound is disabled by default so all commands must be started with the environment variable {{{XPRA_SOUND}}} set to any non-zero value. ie:
    44{{{
    5 XPRA_SOUND=1 xpra start :10
     5export XPRA_SOUND=1
     6xpra start :10
    67}}}
    78''
     
    1314You will need:
    1415* a build/installation including gstreamer support for both client and server
    15 * a server with pulseaudio
    1616* a client with sound output of any kind (even virtual)
     17* a server with pulseaudio (for going beyond the simple test step)
    1718
    18 == Existing Desktop Test Setup ==
    19 The easiest way of testing that a system is capable of forwarding and receiving sound is on a Posix system (Linux, BSD, etc) with an existing desktop environment running, and including a pulseaudio server.
    20 Check that pulseaudio is running:
     19== Test Sound Source Setup ==
     20The easiest way of testing that a system is capable of forwarding and receiving sound is on a Posix system (Linux, BSD, etc).
     21Using the {{{XPRA_SOUND_TEST}}} environment variable, we can instruct the xpra server to use a fake sound source instead of hooking into a pulseaudio server:
     22{{{
     23XPRA_SOUND_TEST=1 xpra start :10
     24}}}
     25Then we can attach the client and start the speaker from the tray:
     26{{{
     27xpra attach
     28}}}
     29Getting this far ensures that sound forwarding does work on this system, albeit from a fake source instead of pulseaudio.
     30
     31
     32== Using an existing pulseaudio server ==
     33Next, we want to add pulseaudio, but without starting it ourselves, so we can simply re-use the existing server that gets started with most modern desktops.
     34[[BR]]
     35Check that pulseaudio is running in your Posix desktop:
    2136{{{
    2237pactl info
     
    3449identical pulseaudio server, refusing to create a sound loop - sound disabled
    3550}}}
    36 Getting this far should ensure that all the components are installed and enabled.
    37 
    38 == Test Sound Source Setup ==
    39 Instead of using an existing pulseaudio server, one can use a test sound source by specifying this environment variable:
    40 {{{
    41 XPRA_SOUND_TEST=1 xpra start ...
    42 }}}
    43 This allows you to actually start the sound forwarding from the same machine and the same user account, without needing to start a new pulseaudio server. The downside is that all you will hear is a test tone.
    44 Getting this far ensures that sound forwarding does work, albeit from a fake source instead of pulseaudio.
     51Getting this far should ensure that all the components are installed, enabled and that the xpra server found the pulseaudio device to connect to.
    4552
    4653== Test Remote Setup ==
     
    4956{{{pavucontrol}}} on the server should show an Xpra entry in the {{{Recording}}} tab.
    5057The client should show an Xpra entry in the {{{Playback}}} tab (or whatever mixer/sound tool you have installed)
    51