Thread View: borland.public.cppbuilder.multimedia
2 messages
2 total messages
Started by Martin Getrost
Tue, 08 May 2001 12:28
Need small example for MIDIHDR
Author: Martin Getrost
Date: Tue, 08 May 2001 12:28
Date: Tue, 08 May 2001 12:28
28 lines
1589 bytes
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
Re: Need small example for MIDIHDR
Author: Rene
Date: Fri, 11 May 2001 21:42
Date: Fri, 11 May 2001 21:42
19 lines
1360 bytes
1360 bytes
Martin Getrost <mgt@braehler.com> schrieb in im Newsbeitrag:
3AF7E688.6720561@braehler.com...
> Hello,
>
> the struct MIDIHDR must be filled. What to do with MidiOutHdr.lpData =
> ?????;
Hi, Martin!
lpData is (for convenience) the char array (char*) that has to be thrown out
(e.g. for SysExDumps).
If you want some *excellent* MIDI-documentation concerning Windows see:
http://www.borg.com/~jglatt
HTH,
Rene
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads