add $AUDIODEV support to oss-driver

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@750 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Michael Gernoth 2004-08-13 09:43:31 +00:00
parent c609793f7f
commit cd8b3b6e3e

View File

@ -45,7 +45,12 @@ static unsigned int queue_hi, queue_lo;
BOOL
wave_out_open(void)
{
char *dsp_dev = "/dev/dsp";
char *dsp_dev = getenv("AUDIODEV");
if (dsp_dev == NULL)
{
dsp_dev = "/dev/dsp";
}
if ((g_dsp_fd = open(dsp_dev, O_WRONLY | O_NONBLOCK)) == -1)
{