From d1165095dc82bdc455756b5ec5a25e32797ba969 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 27 Oct 1998 15:22:26 +0000 Subject: [PATCH] Stub for midiOpenStream (helps hexen2demo). --- include/wintypes.h | 1 + multimedia/mmsystem.c | 8 ++++++++ relay32/winmm.spec | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/include/wintypes.h b/include/wintypes.h index 64e7d6c3c59..6d5649f0da8 100644 --- a/include/wintypes.h +++ b/include/wintypes.h @@ -155,6 +155,7 @@ DECLARE_HANDLE(HMETAFILE); DECLARE_HANDLE(HMIDI); DECLARE_HANDLE(HMIDIIN); DECLARE_HANDLE(HMIDIOUT); +DECLARE_HANDLE(HMIDISTRM); DECLARE_HANDLE(HMIXER); DECLARE_HANDLE(HMIXEROBJ); DECLARE_HANDLE(HMMIO); diff --git a/multimedia/mmsystem.c b/multimedia/mmsystem.c index 62b1459fd77..c1711468474 100644 --- a/multimedia/mmsystem.c +++ b/multimedia/mmsystem.c @@ -3090,6 +3090,14 @@ DWORD WINAPI midiInMessage16(HMIDIIN16 hMidiIn, UINT16 uMessage, return midMessage(0, uMessage, lpDesc->dwInstance, dwParam1, dwParam2); } +/************************************************************************** + * midiStreamOpen [MMSYSTEM.91] + */ +MMRESULT32 WINAPI midiStreamOpen32(HMIDISTRM32 *phms,LPUINT32 devid,DWORD cMidi,DWORD dwCallback,DWORD dwInstance,DWORD fdwOpen) { + FIXME(midi,"(%p,%p,%d,%p,%p,0x%08lx),stub!\n",phms,devid,cMidi,dwCallback,dwInstance,fdwOpen); + return MMSYSERR_NOTSUPPORTED; +} + /************************************************************************** * waveOutGetNumDevs [MMSYSTEM.401] diff --git a/relay32/winmm.spec b/relay32/winmm.spec index 35c7f8ce707..e0cf05cfc35 100644 --- a/relay32/winmm.spec +++ b/relay32/winmm.spec @@ -91,7 +91,7 @@ type win32 88 stdcall midiOutShortMsg(long long) midiOutShortMsg32 89 stdcall midiOutUnprepareHeader(long ptr long) midiOutUnprepareHeader32 90 stub midiStreamClose - 91 stub midiStreamOpen + 91 stdcall midiStreamOpen(ptr ptr long long long long) midiStreamOpen32 92 stub midiStreamOut 93 stub midiStreamPause 94 stub midiStreamPosition