#!/bin/sh
#
# Tell ALSA to forward to pulseaudio on thin clients.  Environment
# variable ALSA_DEFAULT_PCM is passed on and refered in
# /etc/asound.conf.  Based on idea from
# http://alsa.opensrc.org/index.php/Default_device_from_environment_variable

if [ "$LTSP_CLIENT" ] ; then
    if [ "$PULSE_SERVER" ] ; then
        # Pulseaudio
	ALSA_DEFAULT_PCM=pulse
	export ALSA_DEFAULT_PCM
    fi
fi
