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:
parent
c609793f7f
commit
cd8b3b6e3e
@ -45,7 +45,12 @@ static unsigned int queue_hi, queue_lo;
|
|||||||
BOOL
|
BOOL
|
||||||
wave_out_open(void)
|
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)
|
if ((g_dsp_fd = open(dsp_dev, O_WRONLY | O_NONBLOCK)) == -1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user