1 | /* $Id: midistrm.cpp,v 1.4 1999-08-19 18:46:04 phaller 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 |
|
---|
28 | ODINDEBUGCHANNEL(WINMM-MIDISTRM)
|
---|
29 |
|
---|
30 |
|
---|
31 | /******************************************************************************/
|
---|
32 | ODINFUNCTION1(MMRESULT, midiStreamClose,
|
---|
33 | HMIDISTRM, hms)
|
---|
34 | {
|
---|
35 | dprintf(("WINMM:midiStreamClose - stub\n" ));
|
---|
36 | MMRESULT rc;
|
---|
37 | rc = MMSYSERR_INVALHANDLE;
|
---|
38 | return rc;
|
---|
39 | }
|
---|
40 |
|
---|
41 | /******************************************************************************/
|
---|
42 | ODINFUNCTION6(MMRESULT, midiStreamOpen,
|
---|
43 | LPHMIDISTRM, phms,
|
---|
44 | LPUINT, puDeviceID,
|
---|
45 | DWORD, cMidi,
|
---|
46 | DWORD, dwCallback,
|
---|
47 | DWORD, dwInstance,
|
---|
48 | DWORD, fdwOpen)
|
---|
49 | {
|
---|
50 | dprintf(("WINMM:midiStreamOpen - stub\n" ));
|
---|
51 | MMRESULT rc;
|
---|
52 | rc = MMSYSERR_BADDEVICEID;
|
---|
53 | return rc;
|
---|
54 | }
|
---|
55 |
|
---|
56 | /******************************************************************************/
|
---|
57 | ODINFUNCTION3(MMRESULT, midiStreamProperty,
|
---|
58 | HMIDISTRM, hms,
|
---|
59 | LPBYTE, lppropdata,
|
---|
60 | DWORD, dwProperty)
|
---|
61 | {
|
---|
62 | dprintf(("WINMM:midiStreamProperty - stub\n" ));
|
---|
63 | MMRESULT rc;
|
---|
64 | rc = MMSYSERR_INVALHANDLE;
|
---|
65 | return rc;
|
---|
66 | }
|
---|
67 |
|
---|
68 | /******************************************************************************/
|
---|
69 | ODINFUNCTION3(MMRESULT, midiStreamPosition,
|
---|
70 | HMIDISTRM, hms,
|
---|
71 | LPMMTIME, lpmmt,
|
---|
72 | UINT, cbmmt)
|
---|
73 | {
|
---|
74 | dprintf(("WINMM:midiStreamPosition - stub\n" ));
|
---|
75 | MMRESULT rc;
|
---|
76 | rc = MMSYSERR_INVALHANDLE;
|
---|
77 | return rc;
|
---|
78 | }
|
---|
79 |
|
---|
80 | /******************************************************************************/
|
---|
81 | ODINFUNCTION3(MMRESULT, midiStreamOut,
|
---|
82 | HMIDISTRM, hms,
|
---|
83 | LPMIDIHDR, pmh,
|
---|
84 | UINT, cbmh)
|
---|
85 | {
|
---|
86 | dprintf(("WINMM:midiStreamOut - stub\n" ));
|
---|
87 | MMRESULT rc;
|
---|
88 | rc = MMSYSERR_INVALHANDLE;
|
---|
89 | return rc;
|
---|
90 | }
|
---|
91 |
|
---|
92 | /******************************************************************************/
|
---|
93 | ODINFUNCTION1(MMRESULT, midiStreamPause,
|
---|
94 | HMIDISTRM, hms)
|
---|
95 | {
|
---|
96 | dprintf(("WINMM:midiStreamPause - stub\n" ));
|
---|
97 | MMRESULT rc;
|
---|
98 | rc = MMSYSERR_INVALHANDLE;
|
---|
99 | return rc;
|
---|
100 | }
|
---|
101 |
|
---|
102 | /******************************************************************************/
|
---|
103 | ODINFUNCTION1(MMRESULT, midiStreamRestart,
|
---|
104 | HMIDISTRM, hms)
|
---|
105 | {
|
---|
106 | dprintf(("WINMM:midiStreamRestart - stub\n" ));
|
---|
107 | MMRESULT rc;
|
---|
108 | rc = MMSYSERR_INVALHANDLE;
|
---|
109 | return rc;
|
---|
110 | }
|
---|
111 |
|
---|
112 | /******************************************************************************/
|
---|
113 | ODINFUNCTION1(MMRESULT, midiStreamStop,
|
---|
114 | HMIDISTRM, hms)
|
---|
115 | {
|
---|
116 | dprintf(("WINMM:midiStreamStop - stub\n" ));
|
---|
117 | MMRESULT rc;
|
---|
118 | rc = MMSYSERR_INVALHANDLE;
|
---|
119 | return rc;
|
---|
120 | }
|
---|
121 |
|
---|