From 4412aef47bf316ff5ad392038db5ad63d0a4706f Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 29 Nov 2003 15:41:37 +0000 Subject: AUDIODEV patch by Mitch@0Bits.COM CVS patchset: 5817 CVS date: 2003/11/29 15:41:37 --- src/audio_out/audio_sun_out.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/audio_out/audio_sun_out.c b/src/audio_out/audio_sun_out.c index 9e7587398..5de3841d9 100644 --- a/src/audio_out/audio_sun_out.c +++ b/src/audio_out/audio_sun_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_sun_out.c,v 1.31 2003/11/26 23:44:08 f1rmb Exp $ + * $Id: audio_sun_out.c,v 1.32 2003/11/29 15:41:37 miguelfreitas Exp $ */ #ifdef HAVE_CONFIG_H @@ -870,6 +870,7 @@ static ao_driver_t *ao_sun_open_plugin (audio_driver_class_t *class_gen, const v config_values_t *config = class->xine->config; sun_driver_t *this; char *devname; + char *audiodev; int audio_fd; int status; audio_info_t info; @@ -878,10 +879,12 @@ static ao_driver_t *ao_sun_open_plugin (audio_driver_class_t *class_gen, const v this->xine = class->xine; + audiodev = getenv("AUDIODEV"); + /* Fill the .xinerc file with options */ devname = config->register_string(config, "audio.sun_audio_device", - "/dev/audio", + audiodev && *audiodev ? audiodev : "/dev/audio", _("device used for audio output with the 'Sun' audio plugin"), NULL, 10, NULL, -- cgit v1.2.3