NetBSD Problem Report #32694

From www@netbsd.org  Thu Feb  2 00:15:06 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id A8A9063B876; Thu,  2 Feb 2006 00:15:06 +0000 (UTC)
Message-Id: <20060202001506.A8A9063B876@narn.netbsd.org>
Date: Thu,  2 Feb 2006 00:15:06 +0000 (UTC)
From: nbgnats@anastigmatix.net
Reply-To: nbgnats@anastigmatix.net
To: gnats-bugs@netbsd.org
Subject: MIDI: "Use the native interface" - there isn't one
X-Send-Pr-Version: www-1.0

>Number:         32694
>Category:       kern
>Synopsis:       MIDI: "Use the native interface" - there isn't one
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    chap
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 02 00:20:00 +0000 2006
>Closed-Date:    Thu Sep 14 17:04:42 +0000 2006
>Last-Modified:  Thu Sep 14 17:04:42 +0000 2006
>Originator:     Chapman Flack
>Release:        2.0 (there isn't one in current, either)
>Organization:
>Environment:
NetBSD lundestad.anastigmatix.net 2.0 NetBSD 2.0 (lundestad) #118: Sat Jan 28 19:46:11 EST 2006  xxx@xxx:/usr/src/sys/arch/i386/compile/lundestad i386
>Description:
As has been earlier reported (http://mail-index.netbsd.org/tech-userlevel/2003/07/11/0000.html),
the MIDI/sequencer API is purportedly OSS-compatible at the level of
message structures, but does not have any of the OSS macros for
generating those structures; the documentation says to "use the
native API" and there isn't one of those either. So now there is
(attached). It also contains some documentation for obscure points
in OSS operation that seem hard to find documented elsewhere.

I've successfully built a version of audio/rosegarden that sequences
MIDI output using this API.

sys/soundcard.h (the OSS compatibility header) could be extended to
supply the OSS event-constructor macros, defining them in terms of
these.

I have not changed sequencer.c and midiplay.c to use these
structures and macros in the code, but that would be a sensible
thing to do.
>How-To-Repeat:
man 4 midi. Follow the See Also to man 3 ossaudio. Read "Use the
native interface." Try to find one.
>Fix:
http://www.anastigmatix.net/cvsweb.cgi/NetBSD/midiapi.pat

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->chap
Responsible-Changed-By: chap@netbsd.org
Responsible-Changed-When: Thu, 14 Sep 2006 17:04:42 +0000
Responsible-Changed-Why:
Made the changes.


State-Changed-From-To: open->closed
State-Changed-By: chap@netbsd.org
State-Changed-When: Thu, 14 Sep 2006 17:04:42 +0000
State-Changed-Why:
Addressed in chap-midi branch merged in June.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.