[PATCH] Current ao_sun.c does not support network environments
Sun has established environment variables to be used in determining the appropriate audio device. These environment variables were not being checked by src/plugins/sun/ao_sun.c, which simply hardcoded /dev/audio as the device.
I'm attaching a context diff (as soon as I figure out how, or I'll mail it on request if I can't) which changes ao_sun.c so that it checks the environment. This updated ao_sun.c will:
- use the UTAUDIODEV environment variable (used by the SunRay thin client), if set
- try to use the AUDIODEV environment variable, if set
- fall back to the hard-coded /dev/audio device if neither of the above two environment variables are set.
Also, I'm compiling libao-0.8.6, which isn't in the version list.