From 2f6939a18d2c935ea49d2962c6b9b48b24469c93 Mon Sep 17 00:00:00 2001 From: jason Date: Mon, 7 Jun 1999 22:28:13 +0000 Subject: [PATCH] allow commandline selection of output device; file & patch forwarded to author. --- audio/mpg123/files/audio_openbsd.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/audio/mpg123/files/audio_openbsd.c b/audio/mpg123/files/audio_openbsd.c index 3db6460f98f..16e8bb29995 100644 --- a/audio/mpg123/files/audio_openbsd.c +++ b/audio/mpg123/files/audio_openbsd.c @@ -94,6 +94,15 @@ int audio_open(struct audio_info_struct *ai) return -1; } + if(ai->output > 0) + ainfo.play.port = 0; + if(ai->output & AUDIO_OUT_INTERNAL_SPEAKER) + ainfo.play.port |= AUDIO_SPEAKER; + if(ai->output & AUDIO_OUT_HEADPHONES) + ainfo.play.port |= AUDIO_HEADPHONE; + if(ai->output & AUDIO_OUT_LINE_OUT) + ainfo.play.port |= AUDIO_LINE_OUT; + return ai->fn; }