Subject: pkg/19332: The amp mp3 player fails if /dev/audio cannot be read
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ben@wongs.net>
List: netbsd-bugs
Date: 12/09/2002 07:27:34
>Number:         19332
>Category:       pkg
>Synopsis:       The amp mp3 player fails if /dev/audio cannot be read
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 09 04:28:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ben Wong
>Release:        NetBSD 1.6
>Organization:
Georgia Institute of Technology
>Environment:
	
	
System: NetBSD hrududu.wongs.net 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep 8 19:43:40 UTC 2002 autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
The amp mp3 player fails if /dev/audio cannot be read although it
never actually reads any data (it only writes). This can cause amp to
unnecessarily break when used with a NetBSD sound driver (such as
emuxki(4)) which does not yet support recording.

>How-To-Repeat:
Install amp on a machine with a SoundBlaster Live 5.1 (or similar).
It will fail claiming that it cannot open the audio device.

>Fix:
Simply change the open() in audioIO_SunOS.c to use O_WRONLY instead of
O_RDWR. 

Note that patch-ac already changes audioIO_SunOS.c, so you'll have to
edit that as well. 

To save you the trouble of making this patch, you may download an
entire updated package for amp from:

	http://www.cc.gatech.edu/~bbb/2002/amp.tar.gz

>Release-Note:
>Audit-Trail:
>Unformatted: