$OpenBSD: patch-src_sun_audio_c,v 1.2 2009/01/25 02:07:06 fgsch Exp $ --- src/sun/audio.c.orig Fri May 23 23:44:20 2008 +++ src/sun/audio.c Wed Jan 21 08:29:52 2009 @@ -121,14 +121,12 @@ static void sun_setformat(AFormat fmt, int rate, int n sun = sun_format(fmt); - effect.format.sun = sun; effect.format.xmms = fmt; effect.frequency = rate; effect.channels = nch; effect.bps = sun_bps(sun, rate, nch); output.format.sun = sun; - output.format.xmms = fmt; output.frequency = rate; output.channels = nch; sun_setparams(); @@ -473,7 +471,7 @@ int sun_open(AFormat fmt, int rate, int nch) if ((audio.fd = open(audio.devaudio, O_RDWR)) < 0) { - g_error("%s: %s", audio.devaudio, strerror(errno)); + g_warning("%s: %s", audio.devaudio, strerror(errno)); return 0; }