|
|
| version 1.10, 2006/12/23 09:48:11 | version 1.12, 2011/03/07 09:54:11 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | /** |
| #include "np2.h" | * @file cmmidi.cpp |
| #include "mimpidef.h" | * @brief Communication port manager (MIDI) |
| #include "commng.h" | * |
| * @author $Author$ | |
| * @date $Date$ | |
| */ | |
| #include "compiler.h" | |
| #include "np2.h" | |
| #include "mimpidef.h" | |
| #include "commng.h" | |
| #if defined(VERMOUTH_LIB) || defined(MT32SOUND_DLL) | #if defined(VERMOUTH_LIB) || defined(MT32SOUND_DLL) |
| #include "sound.h" | #include "sound.h" |
| #endif | #endif |
| #if defined(VERMOUTH_LIB) | #if defined(VERMOUTH_LIB) |
| #include "vermouth.h" | #include "vermouth.h" |
| #endif | #endif |
| #if defined(MT32SOUND_DLL) | #if defined(MT32SOUND_DLL) |
| #include "mt32snd.h" | #include "mt32snd.h" |
| #endif | #endif |
| #include "keydisp.h" | #include "keydisp.h" |
| #if !defined(__GNUC__) | |
| #pragma comment(lib, "winmm.lib") | |
| #endif // !defined(__GNUC__) | |
| #if defined(VERMOUTH_LIB) | #if defined(VERMOUTH_LIB) |
| extern MIDIMOD vermouth_module; | extern MIDIMOD vermouth_module; |
| Line 772 COMMNG cmmidi_create(const OEMCHAR *midi | Line 783 COMMNG cmmidi_create(const OEMCHAR *midi |
| } | } |
| } | } |
| if (getmidiinid(midiin, &id) == SUCCESS) { | if (getmidiinid(midiin, &id) == SUCCESS) { |
| if (midiInOpen(&hmidiin, id, (DWORD)hWndMain, 0, CALLBACK_WINDOW) | if (midiInOpen(&hmidiin, id, (DWORD)g_hWndMain, 0, CALLBACK_WINDOW) |
| == MMSYSERR_NOERROR) { | == MMSYSERR_NOERROR) { |
| midiInReset(hmidiin); | midiInReset(hmidiin); |
| opened |= CMMIDI_MIDIIN; | opened |= CMMIDI_MIDIIN; |