🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #1282

Need small example for MIDIHDR

#1282
From: Martin Getrost
Date: Tue, 08 May 2001 12:28
28 lines
1589 bytes
Hello,

I want to open the seriall midi port.

  // Get number of MIDI output devices
  uiAnzahlMidiOuts = midiOutGetNumDevs();   // is working fine

  // Get type, name of MIDI output device
  mmResult = midiOutGetDevCaps( ui, lpMidiOutCaps, sizeof(MidiOutCaps)
);  // is working fine

  // open MIDI port
  dwErr = midiOutOpen( lphMidiout, iSelectedMidiOut, 0, 0, CALLBACK_NULL
); // is working fine

  // then I want to use the function "midiOutLongMsg()", but before
this, you have to call the function
  mmResult = midiOutPrepareHeader( hMidiout, lpMidiOutHdr, Sizeof(
MIDIHDR ) );

the struct MIDIHDR must be filled. What to do with   MidiOutHdr.lpData =
?????;

any idea??
any example??

thanks
Martin
Technical Details
Message-ID: <3AF7E688.6720561@braehler.com>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!209.50.235.254!europa.netcrusader.net!192.148.253.68!netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,5b45797c1c97bbb,start
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2001-05-08 05:36:37 PST
Message-ID: <3AF7E688.6720561@braehler.com>
Date: Tue, 08 May 2001 14:28:56 +0200
From: Martin Getrost <mgt@braehler.com>
X-Mailer: Mozilla 4.6 [de] (Win98; I)
X-Accept-Language: de,en,en-GB,en-US
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Need small example for MIDIHDR
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 195.94.71.254
X-Trace: dnews 989324947 195.94.71.254 (8 May 2001 05:29:07 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!209.50.235.254!europa.netcrusader.net!192.148.253.68!netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews