1 | /* $Id: midistrm.cpp,v 1.5 2000-02-17 14:09:31 sandervl Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * RTMIDI code
|
---|
5 | *
|
---|
6 | * Copyright 1998 Joel Troster
|
---|
7 | *
|
---|
8 | *
|
---|
9 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
10 | *
|
---|
11 | */
|
---|
12 |
|
---|
13 |
|
---|
14 | /****************************************************************************
|
---|
15 | * Includes *
|
---|
16 | ****************************************************************************/
|
---|
17 |
|
---|
18 | #include <os2win.h>
|
---|
19 | #include <mmsystem.h>
|
---|
20 | #include <odinwrap.h>
|
---|
21 | #include "midi.hpp"
|
---|
22 | #include <process.h>
|
---|
23 | #include <stdio.h>
|
---|
24 | #include <string.h>
|
---|
25 | #include <unicode.h>
|
---|
26 |
|
---|
27 | #define DBG_LOCALLOG DBG_midistrm
|
---|
28 | #include "dbglocal.h"
|
---|
29 |
|
---|
30 |
|
---|
31 | ODINDEBUGCHANNEL(WINMM-MIDISTRM)
|
---|
32 |
|
---|
33 |
|
---|
34 | /******************************************************************************/
|
---|
35 | ODINFUNCTION1(MMRESULT, midiStreamClose,
|
---|
36 | HMIDISTRM, hms)
|
---|
37 | {
|
---|
38 | dprintf(("WINMM:midiStreamClose - stub\n" ));
|
---|
39 | MMRESULT rc;
|
---|
40 | rc = MMSYSERR_INVALHANDLE;
|
---|
41 | return rc;
|
---|
42 | }
|
---|
43 |
|
---|
44 | /******************************************************************************/
|
---|
45 | ODINFUNCTION6(MMRESULT, midiStreamOpen,
|
---|
46 | LPHMIDISTRM, phms,
|
---|
47 | LPUINT, puDeviceID,
|
---|
48 | DWORD, cMidi,
|
---|
49 | DWORD, dwCallback,
|
---|
50 | DWORD, dwInstance,
|
---|
51 | DWORD, fdwOpen)
|
---|
52 | {
|
---|
53 | dprintf(("WINMM:midiStreamOpen - stub\n" ));
|
---|
54 | MMRESULT rc;
|
---|
55 | rc = MMSYSERR_BADDEVICEID;
|
---|
56 | return rc;
|
---|
57 | }
|
---|
58 |
|
---|
59 | /******************************************************************************/
|
---|
60 | ODINFUNCTION3(MMRESULT, midiStreamProperty,
|
---|
61 | HMIDISTRM, hms,
|
---|
62 | LPBYTE, lppropdata,
|
---|
63 | DWORD, dwProperty)
|
---|
64 | {
|
---|
65 | dprintf(("WINMM:midiStreamProperty - stub\n" ));
|
---|
66 | MMRESULT rc;
|
---|
67 | rc = MMSYSERR_INVALHANDLE;
|
---|
68 | return rc;
|
---|
69 | }
|
---|
70 |
|
---|
71 | /******************************************************************************/
|
---|
72 | ODINFUNCTION3(MMRESULT, midiStreamPosition,
|
---|
73 | HMIDISTRM, hms,
|
---|
74 | LPMMTIME, lpmmt,
|
---|
75 | UINT, cbmmt)
|
---|
76 | {
|
---|
77 | dprintf(("WINMM:midiStreamPosition - stub\n" ));
|
---|
78 | MMRESULT rc;
|
---|
79 | rc = MMSYSERR_INVALHANDLE;
|
---|
80 | return rc;
|
---|
81 | }
|
---|
82 |
|
---|
83 | /******************************************************************************/
|
---|
84 | ODINFUNCTION3(MMRESULT, midiStreamOut,
|
---|
85 | HMIDISTRM, hms,
|
---|
86 | LPMIDIHDR, pmh,
|
---|
87 | UINT, cbmh)
|
---|
88 | {
|
---|
89 | dprintf(("WINMM:midiStreamOut - stub\n" ));
|
---|
90 | MMRESULT rc;
|
---|
91 | rc = MMSYSERR_INVALHANDLE;
|
---|
92 | return rc;
|
---|
93 | }
|
---|
94 |
|
---|
95 | /******************************************************************************/
|
---|
96 | ODINFUNCTION1(MMRESULT, midiStreamPause,
|
---|
97 | HMIDISTRM, hms)
|
---|
98 | {
|
---|
99 | dprintf(("WINMM:midiStreamPause - stub\n" ));
|
---|
100 | MMRESULT rc;
|
---|
101 | rc = MMSYSERR_INVALHANDLE;
|
---|
102 | return rc;
|
---|
103 | }
|
---|
104 |
|
---|
105 | /******************************************************************************/
|
---|
106 | ODINFUNCTION1(MMRESULT, midiStreamRestart,
|
---|
107 | HMIDISTRM, hms)
|
---|
108 | {
|
---|
109 | dprintf(("WINMM:midiStreamRestart - stub\n" ));
|
---|
110 | MMRESULT rc;
|
---|
111 | rc = MMSYSERR_INVALHANDLE;
|
---|
112 | return rc;
|
---|
113 | }
|
---|
114 |
|
---|
115 | /******************************************************************************/
|
---|
116 | ODINFUNCTION1(MMRESULT, midiStreamStop,
|
---|
117 | HMIDISTRM, hms)
|
---|
118 | {
|
---|
119 | dprintf(("WINMM:midiStreamStop - stub\n" ));
|
---|
120 | MMRESULT rc;
|
---|
121 | rc = MMSYSERR_INVALHANDLE;
|
---|
122 | return rc;
|
---|
123 | }
|
---|
124 |
|
---|