Subject: bin/8448: midiplay(1) waits too long between files
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itohy@netbsd.org>
List: netbsd-bugs
Date: 09/20/1999 01:20:57
>Number:         8448
>Category:       bin
>Synopsis:       midiplay(1) waits too long between files
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 20 01:20:00 1999
>Last-Modified:
>Originator:     ITOH Yasufumi
>Organization:
	
>Release:        1.4K (Sept. 16, 1999)
>Environment:
System: NetBSD pino.my.domain 1.4K NetBSD 1.4K (PINO) #123: Sun Sep 19 15:29:33 JST 1999 itohy@pino.my.domain:/usr/src/sys/arch/i386/compile/PINO i386


>Description:
	If multiple files are given to midiplay(1),
	it inserts long waits between files.
	The wait time becomes the longer for the later files.

	While waiting, midiplay is in ioctl(SEQUENCER_SYNC).

	I've tested this with opl (at ym (the driver is not imported yet:))
	and pcppi MIDI devices and both of them have this problem.

>How-To-Repeat:
	uudecode this (actually any MIDI file will do).
	This is a part of midiplay(1), you know.

begin 644 g.mid
M351H9`````8``0`!``A-5')K````;`&0/'\$@#P``9`\?P2`/``!D#Q_!(`\
M``&00'\$@$```9`^?P2`/@`!D#Y_!(`^``&0/G\$@#X``9!!?P2`00`!D$!_
H!(!```&00'\$@$```9`^?P2`/@`!D#Y_!(`^``&0/'\(@#P``/\O```!
`
end

	Then, try and compare

	 a. % midiplay g.mid g.mid g.mid g.mid

	and

	 b. % midiplay g.mid; midiplay g.mid; midiplay g.mid; midiplay g.mid

	The example a. waits too long time between files, and the wait
	becomes the longer for the later files.

>Fix:
	ENOCLUE ((c) garbled:)
>Audit-Trail:
>Unformatted: