| 1 | /* $Id: midistrm.cpp,v 1.6 2002-05-22 15:50:25 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 | /******************************************************************************/
|
|---|
| 32 | MMRESULT WINAPI midiStreamClose(HMIDISTRM hms)
|
|---|
| 33 | {
|
|---|
| 34 | dprintf(("WINMM:midiStreamClose - stub\n" ));
|
|---|
| 35 | MMRESULT rc;
|
|---|
| 36 | rc = MMSYSERR_INVALHANDLE;
|
|---|
| 37 | return rc;
|
|---|
| 38 | }
|
|---|
| 39 |
|
|---|
| 40 | /******************************************************************************/
|
|---|
| 41 | MMRESULT WINAPI midiStreamOpen(LPHMIDISTRM phms, LPUINT puDeviceID,
|
|---|
| 42 | DWORD cMidi, DWORD dwCallback,
|
|---|
| 43 | DWORD dwInstance, DWORD fdwOpen)
|
|---|
| 44 | {
|
|---|
| 45 | dprintf(("WINMM:midiStreamOpen - stub\n" ));
|
|---|
| 46 | MMRESULT rc;
|
|---|
| 47 | rc = MMSYSERR_BADDEVICEID;
|
|---|
| 48 | return rc;
|
|---|
| 49 | }
|
|---|
| 50 |
|
|---|
| 51 | /******************************************************************************/
|
|---|
| 52 | MMRESULT WINAPI midiStreamProperty(HMIDISTRM hms, LPBYTE lppropdata,
|
|---|
| 53 | DWORD dwProperty)
|
|---|
| 54 | {
|
|---|
| 55 | dprintf(("WINMM:midiStreamProperty - stub\n" ));
|
|---|
| 56 | MMRESULT rc;
|
|---|
| 57 | rc = MMSYSERR_INVALHANDLE;
|
|---|
| 58 | return rc;
|
|---|
| 59 | }
|
|---|
| 60 |
|
|---|
| 61 | /******************************************************************************/
|
|---|
| 62 | MMRESULT WINAPI midiStreamPosition(HMIDISTRM hms, LPMMTIME lpmmt,
|
|---|
| 63 | UINT cbmmt)
|
|---|
| 64 | {
|
|---|
| 65 | dprintf(("WINMM:midiStreamPosition - stub\n" ));
|
|---|
| 66 | MMRESULT rc;
|
|---|
| 67 | rc = MMSYSERR_INVALHANDLE;
|
|---|
| 68 | return rc;
|
|---|
| 69 | }
|
|---|
| 70 |
|
|---|
| 71 | /******************************************************************************/
|
|---|
| 72 | MMRESULT WINAPI midiStreamOut(HMIDISTRM hms, LPMIDIHDR pmh, UINT cbmh)
|
|---|
| 73 | {
|
|---|
| 74 | dprintf(("WINMM:midiStreamOut - stub\n" ));
|
|---|
| 75 | MMRESULT rc;
|
|---|
| 76 | rc = MMSYSERR_INVALHANDLE;
|
|---|
| 77 | return rc;
|
|---|
| 78 | }
|
|---|
| 79 |
|
|---|
| 80 | /******************************************************************************/
|
|---|
| 81 | MMRESULT WINAPI midiStreamPause(HMIDISTRM hms)
|
|---|
| 82 | {
|
|---|
| 83 | dprintf(("WINMM:midiStreamPause - stub\n" ));
|
|---|
| 84 | MMRESULT rc;
|
|---|
| 85 | rc = MMSYSERR_INVALHANDLE;
|
|---|
| 86 | return rc;
|
|---|
| 87 | }
|
|---|
| 88 |
|
|---|
| 89 | /******************************************************************************/
|
|---|
| 90 | MMRESULT WINAPI midiStreamRestart(HMIDISTRM hms)
|
|---|
| 91 | {
|
|---|
| 92 | dprintf(("WINMM:midiStreamRestart - stub\n" ));
|
|---|
| 93 | MMRESULT rc;
|
|---|
| 94 | rc = MMSYSERR_INVALHANDLE;
|
|---|
| 95 | return rc;
|
|---|
| 96 | }
|
|---|
| 97 |
|
|---|
| 98 | /******************************************************************************/
|
|---|
| 99 | MMRESULT WINAPI midiStreamStop(HMIDISTRM hms)
|
|---|
| 100 | {
|
|---|
| 101 | dprintf(("WINMM:midiStreamStop - stub\n" ));
|
|---|
| 102 | MMRESULT rc;
|
|---|
| 103 | rc = MMSYSERR_INVALHANDLE;
|
|---|
| 104 | return rc;
|
|---|
| 105 | }
|
|---|
| 106 |
|
|---|