Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1 | /* |
| 2 | * DirectMusic Performance API |
| 3 | * |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 4 | * Copyright (C) 2003-2004 Rok Mandeljc |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU Library General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 19 | */ |
| 20 | |
| 21 | #ifndef __WINE_DMUSIC_PERFORMANCE_H |
| 22 | #define __WINE_DMUSIC_PERFORMANCE_H |
| 23 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 24 | #ifndef __WINESRC__ |
| 25 | #include <windows.h> |
| 26 | #else |
| 27 | #include <oleauto.h> /* VARIANT */ |
| 28 | #endif /* __WINESRC__ */ |
| 29 | |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 30 | #include <objbase.h> |
| 31 | #include <mmsystem.h> |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 32 | #include <dmusicc.h> |
| 33 | #include <dmplugin.h> |
| 34 | #include <pshpack8.h> |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 35 | |
| 36 | #ifdef __cplusplus |
| 37 | extern "C" { |
| 38 | #endif |
| 39 | |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 40 | /***************************************************************************** |
| 41 | * Predeclare the interfaces |
| 42 | */ |
Rok Mandeljc | 473c565 | 2003-07-21 22:10:14 +0000 | [diff] [blame] | 43 | /* CLSIDs */ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 44 | DEFINE_GUID(CLSID_DirectMusicAudioPathConfig, 0xee0b9ca0,0xa81e,0x11d3,0x9b,0xd1,0x00,0x80,0xc7,0x15,0x0a,0x74); |
| 45 | DEFINE_GUID(CLSID_DirectMusicBand, 0x79ba9e00,0xb6ee,0x11d1,0x86,0xbe,0x00,0xc0,0x4f,0xbf,0x8f,0xef); |
| 46 | DEFINE_GUID(CLSID_DirectMusicChordMap, 0xd2ac288f,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 47 | DEFINE_GUID(CLSID_DirectMusicComposer, 0xd2ac2890,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 48 | DEFINE_GUID(CLSID_DirectMusicContainer, 0x9301e380,0x1f22,0x11d3,0x82,0x26,0xd2,0xfa,0x76,0x25,0x5d,0x47); |
| 49 | DEFINE_GUID(CLSID_DirectMusicGraph, 0xd2ac2884,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 50 | DEFINE_GUID(CLSID_DirectMusicLoader, 0xd2ac2892,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 51 | DEFINE_GUID(CLSID_DirectMusicPatternTrack, 0xd2ac2897,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 52 | DEFINE_GUID(CLSID_DirectMusicPerformance, 0xd2ac2881,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 53 | DEFINE_GUID(CLSID_DirectMusicScript, 0x810b5013,0xe88d,0x11d2,0x8b,0xc1,0x00,0x60,0x08,0x93,0xb1,0xb6); |
| 54 | DEFINE_GUID(CLSID_DirectMusicSegment, 0xd2ac2882,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 55 | DEFINE_GUID(CLSID_DirectMusicSegmentState, 0xd2ac2883,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 56 | DEFINE_GUID(CLSID_DirectMusicStyle, 0xd2ac288a,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 57 | DEFINE_GUID(CLSID_DirectSoundWave, 0x8a667154,0xf9cb,0x11d2,0xad,0x8a,0x00,0x60,0xb0,0x57,0x5a,0xbc); |
| 58 | /* MS doesn't support this in DX 9.0 and newer... but there's no harm in keeping it around */ |
| 59 | DEFINE_GUID(CLSID_DirectMusicSong, 0xaed5f0a5,0xd972,0x483d,0xa3,0x84,0x64,0x9d,0xfe,0xb9,0xc1,0x81); |
| 60 | /* these CLSIDs aren't officially declared in any dmusic header, but are used by wine's regsvr implementations*/ |
| 61 | DEFINE_GUID(CLSID_DirectMusicSynthSink, 0xaec17ce3,0xa514,0x11d1,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6); |
| 62 | DEFINE_GUID(CLSID_DirectMusicSection, 0x3f037241,0x414e,0x11d1,0xa7,0xce,0x00,0xa0,0xc9,0x13,0xf7,0x3c); |
| 63 | DEFINE_GUID(CLSID_DirectMusicAuditionTrack, 0xd2ac2897,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 64 | DEFINE_GUID(CLSID_DirectMusicSegTriggerTrack, 0xbae4d665,0x4ea1,0x11d3,0x8b,0xda,0x00,0x60,0x08,0x93,0xb1,0xb6); |
| 65 | DEFINE_GUID(CLSID_DirectMusicAudioPath, 0xee0b9ca0,0xa81e,0x11d3,0x9b,0xd1,0x00,0x80,0xc7,0x15,0x0a,0x74); |
| 66 | DEFINE_GUID(CLSID_DirectMusicTemplate, 0xd30bcc65,0x60e8,0x11d1,0xa7,0xce,0x00,0xa0,0xc9,0x13,0xf7,0x3c); |
| 67 | DEFINE_GUID(CLSID_DirectMusicScriptAutoImpSegment, 0x4062c116,0x0270,0x11d3,0x8b,0xcb,0x00,0x60,0x08,0x93,0xb1,0xb6); |
| 68 | DEFINE_GUID(CLSID_AudioVBScript, 0x4ee17959,0x931e,0x49e4,0xa2,0xc6,0x97,0x7e,0xcf,0x36,0x28,0xf3); |
| 69 | DEFINE_GUID(CLSID_DirectMusicScriptAutoImpPerformance, 0xa861c6e2,0xfcfc,0x11d2,0x8b,0xc9,0x00,0x60,0x08,0x93,0xb1,0xb6); |
Rok Mandeljc | b26d65b | 2004-02-25 01:30:03 +0000 | [diff] [blame] | 70 | DEFINE_GUID(CLSID_DirectMusicScriptSourceCodeLoader, 0xc70eb77f,0xefd4,0x4678,0xa2,0x7b,0xbf,0x16,0x48,0xf3,0x0d,0x04); |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 71 | DEFINE_GUID(CLSID_DirectMusicScriptAutoImpSegmentState, 0xebf2320a,0x2502,0x11d3,0x8b,0xd1,0x00,0x60,0x08,0x93,0xb1,0xb6); |
| 72 | DEFINE_GUID(CLSID_DirectMusicScriptAutoImpAudioPathConfig, 0x1cebde3e,0x6b91,0x484a,0xaf,0x48,0x5e,0x4f,0x4e,0xd6,0xb1,0xe1); |
| 73 | DEFINE_GUID(CLSID_DirectMusicScriptAutoImpAudioPath, 0x2c5f9b72,0x7148,0x4d97,0xbf,0xc9,0x68,0xa0,0xe0,0x76,0xbe,0xbd); |
| 74 | DEFINE_GUID(CLSID_DirectMusicScriptAutoImpSong, 0xa16f1761,0xb6d8,0x42eb,0x8d,0x57,0x4a,0x44,0xfe,0xdd,0x3b,0xd2); |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 75 | |
Rok Mandeljc | 473c565 | 2003-07-21 22:10:14 +0000 | [diff] [blame] | 76 | /* IIDs */ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 77 | DEFINE_GUID(IID_IDirectMusicAudioPath, 0xc87631f5,0x23be,0x4986,0x88,0x36,0x05,0x83,0x2f,0xcc,0x48,0xf9); |
| 78 | DEFINE_GUID(IID_IDirectMusicBand, 0xd2ac28c0,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 79 | DEFINE_GUID(IID_IDirectMusicChordMap, 0xd2ac28be,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 80 | DEFINE_GUID(IID_IDirectMusicComposer, 0xd2ac28bf,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 81 | DEFINE_GUID(IID_IDirectMusicContainer, 0x9301e386,0x1f22,0x11d3,0x82,0x26,0xd2,0xfa,0x76,0x25,0x5d,0x47); |
| 82 | DEFINE_GUID(IID_IDirectMusicGetLoader, 0x68a04844,0xd13d,0x11d1,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6); |
| 83 | DEFINE_GUID(IID_IDirectMusicGraph, 0x2befc277,0x5497,0x11d2,0xbc,0xcb,0x00,0xa0,0xc9,0x22,0xe6,0xeb); |
| 84 | DEFINE_GUID(IID_IDirectMusicLoader, 0x2ffaaca2,0x5dca,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6); |
| 85 | DEFINE_GUID(IID_IDirectMusicLoader8, 0x19e7c08c,0x0a44,0x4e6a,0xa1,0x16,0x59,0x5a,0x7c,0xd5,0xde,0x8c); |
| 86 | DEFINE_GUID(IID_IDirectMusicObject, 0xd2ac28b5,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 87 | DEFINE_GUID(IID_IDirectMusicPatternTrack, 0x51c22e10,0xb49f,0x46fc,0xbe,0xc2,0xe6,0x28,0x8f,0xb9,0xed,0xe6); |
| 88 | DEFINE_GUID(IID_IDirectMusicPerformance, 0x07d43d03,0x6523,0x11d2,0x87,0x1d,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 89 | DEFINE_GUID(IID_IDirectMusicPerformance2, 0x6fc2cae0,0xbc78,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6); |
| 90 | DEFINE_GUID(IID_IDirectMusicPerformance8, 0x679c4137,0xc62e,0x4147,0xb2,0xb4,0x9d,0x56,0x9a,0xcb,0x25,0x4c); |
| 91 | DEFINE_GUID(IID_IDirectMusicScript, 0x2252373a,0x5814,0x489b,0x82,0x09,0x31,0xfe,0xde,0xba,0xf1,0x37); |
| 92 | DEFINE_GUID(IID_IDirectMusicSegment, 0xf96029a2,0x4282,0x11d2,0x87,0x17,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 93 | DEFINE_GUID(IID_IDirectMusicSegment2, 0xd38894d1,0xc052,0x11d2,0x87,0x2f,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 94 | DEFINE_GUID(IID_IDirectMusicSegment8, 0xc6784488,0x41a3,0x418f,0xaa,0x15,0xb3,0x50,0x93,0xba,0x42,0xd4); |
| 95 | DEFINE_GUID(IID_IDirectMusicSegmentState, 0xa3afdcc7,0xd3ee,0x11d1,0xbc,0x8d,0x00,0xa0,0xc9,0x22,0xe6,0xeb); |
| 96 | DEFINE_GUID(IID_IDirectMusicSegmentState8, 0xa50e4730,0x0ae4,0x48a7,0x98,0x39,0xbc,0x04,0xbf,0xe0,0x77,0x72); |
| 97 | DEFINE_GUID(IID_IDirectMusicStyle, 0xd2ac28bd,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 98 | DEFINE_GUID(IID_IDirectMusicStyle8, 0xfd24ad8a,0xa260,0x453d,0xbf,0x50,0x6f,0x93,0x84,0xf7,0x09,0x85); |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 99 | |
Rok Mandeljc | 473c565 | 2003-07-21 22:10:14 +0000 | [diff] [blame] | 100 | /* IIDs of unchanged interfaces */ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 101 | #define IID_IDirectMusicAudioPath8 IID_IDirectMusicAudioPath |
| 102 | #define IID_IDirectMusicBand8 IID_IDirectMusicBand |
| 103 | #define IID_IDirectMusicChordMap8 IID_IDirectMusicChordMap |
| 104 | #define IID_IDirectMusicComposer8 IID_IDirectMusicComposer |
| 105 | #define IID_IDirectMusicContainer8 IID_IDirectMusicContainer |
| 106 | #define IID_IDirectMusicGetLoader8 IID_IDirectMusicGetLoader |
| 107 | #define IID_IDirectMusicGraph8 IID_IDirectMusicGraph |
| 108 | #define IID_IDirectMusicObject8 IID_IDirectMusicObject |
Rok Mandeljc | 473c565 | 2003-07-21 22:10:14 +0000 | [diff] [blame] | 109 | #define IID_IDirectMusicPatternTrack8 IID_IDirectMusicPatternTrack |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 110 | #define IID_IDirectMusicScript8 IID_IDirectMusicScript |
Rok Mandeljc | 473c565 | 2003-07-21 22:10:14 +0000 | [diff] [blame] | 111 | |
| 112 | /* typedef definitions */ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 113 | typedef struct IDirectMusicBand IDirectMusicBand, *LPDIRECTMUSICBAND; |
| 114 | typedef struct IDirectMusicBand IDirectMusicBand8, *LPDIRECTMUSICBAND8; |
| 115 | typedef struct IDirectMusicObject IDirectMusicObject, *LPDIRECTMUSICOBJECT; |
| 116 | typedef struct IDirectMusicObject IDirectMusicObject8, *LPDIRECTMUSICOBJECT8; |
| 117 | typedef struct IDirectMusicLoader IDirectMusicLoader, *LPDIRECTMUSICLOADER; |
| 118 | typedef struct IDirectMusicLoader IDirectMusicLoader8, *LPDIRECTMUSICLOADER8; |
| 119 | typedef struct IDirectMusicGetLoader IDirectMusicGetLoader, *LPDIRECTMUSICGETLOADER; |
| 120 | typedef struct IDirectMusicGetLoader IDirectMusicGetLoader8, *LPDIRECTMUSICGETLOADER8; |
| 121 | typedef struct IDirectMusicAudioPath IDirectMusicAudioPath, *LPDIRECTMUSICAUDIOPATH; |
| 122 | typedef struct IDirectMusicAudioPath IDirectMusicAudioPath8, *LPDIRECTMUSICAUDIOPATH8; |
| 123 | typedef struct IDirectMusicStyle IDirectMusicStyle, *LPDIRECTMUSICSTYLE; |
| 124 | typedef struct IDirectMusicStyle8 IDirectMusicStyle8, *LPDIRECTMUSICSTYLE8; |
| 125 | typedef struct IDirectMusicChordMap IDirectMusicChordMap, *LPDIRECTMUSICCHORDMAP; |
| 126 | typedef struct IDirectMusicChordMap IDirectMusicChordMap8, *LPDIRECTMUSICCHORDMAP8; |
| 127 | typedef struct IDirectMusicComposer IDirectMusicComposer, *LPDIRECTMUSICCOMPOSER; |
| 128 | typedef struct IDirectMusicComposer IDirectMusicComposer8, *LPDIRECTMUSICCOMPOSER8; |
| 129 | typedef struct IDirectMusicPatternTrack IDirectMusicPatternTrack, *LPDIRECTMUSICPATTERNTRACK; |
| 130 | typedef struct IDirectMusicPatternTrack IDirectMusicPatternTrack8, *LPDIRECTMUSICPATTERNTRACK8; |
| 131 | typedef struct IDirectMusicScript IDirectMusicScript, *LPDIRECTMUSICSCRIPT; |
| 132 | typedef struct IDirectMusicScript IDirectMusicScript8, *LPDIRECTMUSICSCRIPT8; |
| 133 | typedef struct IDirectMusicContainer IDirectMusicContainer, *LPDIRECTMUSICCONTAINER; |
| 134 | typedef struct IDirectMusicContainer IDirectMusicContainer8, *LPDIRECTMUSICCONTAINER8; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 135 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 136 | /* RPC declarations */ |
| 137 | typedef struct IDirectMusicBand __RPC_FAR *LPDMUS_BAND; |
| 138 | typedef struct IDirectMusicLoader __RPC_FAR *LPDMUS_LOADER; |
| 139 | typedef struct IDirectMusicObject __RPC_FAR *LPDMUS_OBJECT; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 140 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 141 | /* GUIDs - all types loader */ |
| 142 | DEFINE_GUID(GUID_DirectMusicAllTypes, 0xd2ac2893,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 143 | /* GUIDs - notification */ |
| 144 | DEFINE_GUID(GUID_NOTIFICATION_CHORD, 0xd2ac289b,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 145 | DEFINE_GUID(GUID_NOTIFICATION_COMMAND, 0xd2ac289c,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 146 | DEFINE_GUID(GUID_NOTIFICATION_MEASUREANDBEAT, 0xd2ac289a,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 147 | DEFINE_GUID(GUID_NOTIFICATION_PERFORMANCE, 0x81f75bc5,0x4e5d,0x11d2,0xbc,0xc7,0x00,0xa0,0xc9,0x22,0xe6,0xeb); |
| 148 | DEFINE_GUID(GUID_NOTIFICATION_RECOMPOSE, 0xd348372b,0x945b,0x45ae,0xa5,0x22,0x45,0x0f,0x12,0x5b,0x84,0xa5); |
| 149 | DEFINE_GUID(GUID_NOTIFICATION_SEGMENT, 0xd2ac2899,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 150 | /* GUIDs - param types */ |
| 151 | DEFINE_GUID(GUID_BandParam, 0x02bb1938,0xcb8b,0x11d2,0x8b,0xb9,0x00,0x60,0x08,0x93,0xb1,0xb6); |
| 152 | DEFINE_GUID(GUID_ChordParam, 0xd2ac289e,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 153 | DEFINE_GUID(GUID_CommandParam, 0xd2ac289d,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 154 | DEFINE_GUID(GUID_CommandParam2, 0x28f97ef7,0x9538,0x11d2,0x97,0xa9,0x00,0xc0,0x4f,0xa3,0x6e,0x58); |
| 155 | DEFINE_GUID(GUID_CommandParamNext, 0x472afe7a,0x281b,0x11d3,0x81,0x7d,0x00,0xc0,0x4f,0xa3,0x6e,0x58); |
| 156 | DEFINE_GUID(GUID_IDirectMusicBand, 0xd2ac28ac,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 157 | DEFINE_GUID(GUID_IDirectMusicChordMap, 0xd2ac28ad,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 158 | DEFINE_GUID(GUID_IDirectMusicStyle, 0xd2ac28a1,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 159 | DEFINE_GUID(GUID_MuteParam, 0xd2ac28af,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 160 | DEFINE_GUID(GUID_Play_Marker, 0xd8761a41,0x801a,0x11d3,0x9b,0xd1,0xda,0xf7,0xe1,0xc3,0xd8,0x34); |
| 161 | DEFINE_GUID(GUID_RhythmParam, 0xd2ac289f,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 162 | DEFINE_GUID(GUID_TempoParam, 0xd2ac28a5,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 163 | DEFINE_GUID(GUID_TimeSignature, 0xd2ac28a4,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 164 | DEFINE_GUID(GUID_Valid_Start_Time, 0x7f6b1760,0x1fdb,0x11d3,0x82,0x26,0x44,0x45,0x53,0x54,0x00,0x00); |
| 165 | /* GUIDs - param setting */ |
| 166 | DEFINE_GUID(GUID_Clear_All_Bands, 0xd2ac28ab,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 167 | DEFINE_GUID(GUID_ConnectToDLSCollection, 0x1db1ae6b,0xe92e,0x11d1,0xa8,0xc5,0x00,0xc0,0x4f,0xa3,0x72,0x6e); |
| 168 | DEFINE_GUID(GUID_Disable_Auto_Download, 0xd2ac28aa,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 169 | DEFINE_GUID(GUID_DisableTempo, 0x45fc707d,0x1db4,0x11d2,0xbc,0xac,0x00,0xa0,0xc9,0x22,0xe6,0xeb); |
| 170 | DEFINE_GUID(GUID_DisableTimeSig, 0x45fc707b,0x1db4,0x11d2,0xbc,0xac,0x00,0xa0,0xc9,0x22,0xe6,0xeb); |
| 171 | DEFINE_GUID(GUID_Download, 0xd2ac28a7,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 172 | DEFINE_GUID(GUID_DownloadToAudioPath, 0x9f2c0341,0xc5c4,0x11d3,0x9b,0xd1,0x44,0x45,0x53,0x54,0x00,0x00); |
| 173 | DEFINE_GUID(GUID_Enable_Auto_Download, 0xd2ac28a9,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 174 | DEFINE_GUID(GUID_EnableTempo, 0x45fc707e,0x1db4,0x11d2,0xbc,0xac,0x00,0xa0,0xc9,0x22,0xe6,0xeb); |
| 175 | DEFINE_GUID(GUID_EnableTimeSig, 0x45fc707c,0x1db4,0x11d2,0xbc,0xac,0x00,0xa0,0xc9,0x22,0xe6,0xeb); |
| 176 | #define GUID_IgnoreBankSelectForGM GUID_StandardMIDIFile |
| 177 | DEFINE_GUID(GUID_SeedVariations, 0x65b76fa5,0xff37,0x11d2,0x81,0x4e,0x00,0xc0,0x4f,0xa3,0x6e,0x58); |
| 178 | DEFINE_GUID(GUID_StandardMIDIFile, 0x06621075,0xe92e,0x11d1,0xa8,0xc5,0x00,0xc0,0x4f,0xa3,0x72,0x6e); |
| 179 | DEFINE_GUID(GUID_Unload, 0xd2ac28a8,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 180 | DEFINE_GUID(GUID_UnloadFromAudioPath, 0x9f2c0342,0xc5c4,0x11d3,0x9b,0xd1,0x44,0x45,0x53,0x54,0x00,0x00); |
| 181 | DEFINE_GUID(GUID_Variations, 0x11f72cce,0x26e6,0x4ecd,0xaf,0x2e,0xd6,0x68,0xe6,0x67,0x07,0xd8); |
| 182 | /* GUIDs - global data */ |
| 183 | DEFINE_GUID(GUID_PerfMasterTempo, 0xd2ac28b0,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 184 | DEFINE_GUID(GUID_PerfMasterVolume, 0xd2ac28b1,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 185 | DEFINE_GUID(GUID_PerfMasterGrooveLevel, 0xd2ac28b2,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 186 | DEFINE_GUID(GUID_PerfAutoDownload, 0xfb09565b,0x3631,0x11d2,0xbc,0xb8,0x00,0xa0,0xc9,0x22,0xe6,0xeb); |
| 187 | /* GUID - default DLS collection */ |
| 188 | DEFINE_GUID(GUID_DefaultGMCollection, 0xf17e8673,0xc3b4,0x11d1,0x87,0x0b,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 189 | /* GUID - default synthesizer */ |
| 190 | DEFINE_GUID(GUID_Synth_Default, 0x26bb9432,0x45fe,0x48d3,0xa3,0x75,0x24,0x72,0xc5,0xe3,0xe7,0x86); |
| 191 | /* GUIDs - define default buffer configuration */ |
| 192 | DEFINE_GUID(GUID_Buffer_Reverb, 0x186cc541,0xdb29,0x11d3,0x9b,0xd1,0x00,0x80,0xc7,0x15,0x0a,0x74); |
| 193 | DEFINE_GUID(GUID_Buffer_EnvReverb, 0x186cc542,0xdb29,0x11d3,0x9b,0xd1,0x00,0x80,0xc7,0x15,0x0a,0x74); |
| 194 | DEFINE_GUID(GUID_Buffer_Stereo, 0x186cc545,0xdb29,0x11d3,0x9b,0xd1,0x00,0x80,0xc7,0x15,0x0a,0x74); |
| 195 | DEFINE_GUID(GUID_Buffer_3D_Dry, 0x186cc546,0xdb29,0x11d3,0x9b,0xd1,0x00,0x80,0xc7,0x15,0x0a,0x74); |
| 196 | DEFINE_GUID(GUID_Buffer_Mono, 0x186cc547,0xdb29,0x11d3,0x9b,0xd1,0x00,0x80,0xc7,0x15,0x0a,0x74); |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 197 | |
| 198 | |
| 199 | /***************************************************************************** |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 200 | * Typedef definitions |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 201 | */ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 202 | typedef WORD TRANSITION_TYPE, *LPTRANSITION_TYPE; |
| 203 | /* |
| 204 | * typedef __int64 REFERENCE_TIME, *LPREFERENCE_TIME; |
| 205 | * typedef long MUSIC_TIME, *LPMUSIC_TIME; |
| 206 | */ |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 207 | |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 208 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 209 | /***************************************************************************** |
| 210 | * Flags |
| 211 | */ |
| 212 | #define DMUS_APATH_SHARED_STEREOPLUSREVERB 0x1 |
| 213 | #define DMUS_APATH_DYNAMIC_3D 0x6 |
| 214 | #define DMUS_APATH_DYNAMIC_MONO 0x7 |
| 215 | #define DMUS_APATH_DYNAMIC_STEREO 0x8 |
| 216 | |
| 217 | #define DMUS_AUDIOF_3D 0x01 |
| 218 | #define DMUS_AUDIOF_ENVIRON 0x02 |
| 219 | #define DMUS_AUDIOF_EAX 0x04 |
| 220 | #define DMUS_AUDIOF_DMOS 0x08 |
| 221 | #define DMUS_AUDIOF_STREAMING 0x10 |
| 222 | #define DMUS_AUDIOF_BUFFERS 0x20 |
| 223 | #define DMUS_AUDIOF_ALL 0x3F |
| 224 | |
| 225 | #define DMUS_AUDIOPARAMS_FEATURES 0x1 |
| 226 | #define DMUS_AUDIOPARAMS_VOICES 0x2 |
| 227 | #define DMUS_AUDIOPARAMS_SAMPLERATE 0x4 |
| 228 | #define DMUS_AUDIOPARAMS_DEFAULTSYNTH 0x8 |
| 229 | |
| 230 | #define DMUS_CURVET_PBCURVE 0x03 |
| 231 | #define DMUS_CURVET_CCCURVE 0x04 |
| 232 | #define DMUS_CURVET_MATCURVE 0x05 |
| 233 | #define DMUS_CURVET_PATCURVE 0x06 |
| 234 | #define DMUS_CURVET_RPNCURVE 0x07 |
| 235 | #define DMUS_CURVET_NRPNCURVE 0x08 |
| 236 | |
| 237 | #define DMUS_MASTERTEMPO_MAX 100.0f |
| 238 | #define DMUS_MASTERTEMPO_MIN 0.01f |
| 239 | |
| 240 | #define DMUS_MAX_NAME 0x40 |
| 241 | #define DMUS_MAX_CATEGORY 0x40 |
| 242 | #define DMUS_MAX_FILENAME MAX_PATH |
| 243 | |
| 244 | #define DMUS_MAXSUBCHORD 0x8 |
| 245 | |
| 246 | #define DMUS_NOTIFICATION_SEGSTART 0x0 |
| 247 | #define DMUS_NOTIFICATION_SEGEND 0x1 |
| 248 | #define DMUS_NOTIFICATION_SEGALMOSTEND 0x2 |
| 249 | #define DMUS_NOTIFICATION_SEGLOOP 0x3 |
| 250 | #define DMUS_NOTIFICATION_SEGABORT 0x4 |
| 251 | #define DMUS_NOTIFICATION_MUSICSTARTED 0x0 |
| 252 | #define DMUS_NOTIFICATION_MUSICSTOPPED 0x1 |
| 253 | #define DMUS_NOTIFICATION_MUSICALMOSTEND 0x2 |
| 254 | #define DMUS_NOTIFICATION_MEASUREBEAT 0x0 |
| 255 | #define DMUS_NOTIFICATION_CHORD 0x0 |
| 256 | #define DMUS_NOTIFICATION_GROOVE 0x0 |
| 257 | #define DMUS_NOTIFICATION_EMBELLISHMENT 0x1 |
| 258 | #define DMUS_NOTIFICATION_RECOMPOSE 0x0 |
| 259 | |
| 260 | #define DMUS_OBJ_OBJECT 0x001 |
| 261 | #define DMUS_OBJ_CLASS 0x002 |
| 262 | #define DMUS_OBJ_NAME 0x004 |
| 263 | #define DMUS_OBJ_CATEGORY 0x008 |
| 264 | #define DMUS_OBJ_FILENAME 0x010 |
| 265 | #define DMUS_OBJ_FULLPATH 0x020 |
| 266 | #define DMUS_OBJ_URL 0x040 |
| 267 | #define DMUS_OBJ_VERSION 0x080 |
| 268 | #define DMUS_OBJ_DATE 0x100 |
| 269 | #define DMUS_OBJ_LOADED 0x200 |
| 270 | #define DMUS_OBJ_MEMORY 0x400 |
| 271 | #define DMUS_OBJ_STREAM 0x800 |
| 272 | |
| 273 | #define DMUS_PATH_SEGMENT 0x1000 |
| 274 | #define DMUS_PATH_SEGMENT_TRACK 0x1100 |
| 275 | #define DMUS_PATH_SEGMENT_GRAPH 0x1200 |
| 276 | #define DMUS_PATH_SEGMENT_TOOL 0x1300 |
| 277 | #define DMUS_PATH_AUDIOPATH 0x2000 |
| 278 | #define DMUS_PATH_AUDIOPATH_GRAPH 0x2200 |
| 279 | #define DMUS_PATH_AUDIOPATH_TOOL 0x2300 |
| 280 | #define DMUS_PATH_PERFORMANCE 0x3000 |
| 281 | #define DMUS_PATH_PERFORMANCE_GRAPH 0x3200 |
| 282 | #define DMUS_PATH_PERFORMANCE_TOOL 0x3300 |
| 283 | #define DMUS_PATH_PORT 0x4000 |
| 284 | #define DMUS_PATH_BUFFER 0x6000 |
| 285 | #define DMUS_PATH_BUFFER_DMO 0x6100 |
| 286 | #define DMUS_PATH_MIXIN_BUFFER 0x7000 |
| 287 | #define DMUS_PATH_MIXIN_BUFFER_DMO 0x7100 |
| 288 | #define DMUS_PATH_PRIMARY_BUFFER 0x8000 |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 289 | |
| 290 | #define DMUS_PCHANNEL_BROADCAST_PERFORMANCE 0xFFFFFFFF |
| 291 | #define DMUS_PCHANNEL_BROADCAST_AUDIOPATH 0xFFFFFFFE |
| 292 | #define DMUS_PCHANNEL_BROADCAST_SEGMENT 0xFFFFFFFD |
| 293 | #define DMUS_PCHANNEL_BROADCAST_GROUPS 0xFFFFFFFC |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 294 | #define DMUS_PCHANNEL_ALL 0xFFFFFFFB |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 295 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 296 | #define DMUS_PLAYMODE_FIXED 0x0 |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 297 | #define DMUS_PLAYMODE_FIXEDTOKEY DMUS_PLAYMODE_KEY_ROOT |
| 298 | #define DMUS_PLAYMODE_FIXEDTOCHORD DMUS_PLAYMODE_CHORD_ROOT |
| 299 | #define DMUS_PLAYMODE_PEDALPOINT (DMUS_PLAYMODE_KEY_ROOT | DMUS_PLAYMODE_SCALE_INTERVALS) |
| 300 | #define DMUS_PLAYMODE_MELODIC (DMUS_PLAYMODE_CHORD_ROOT | DMUS_PLAYMODE_SCALE_INTERVALS) |
| 301 | #define DMUS_PLAYMODE_NORMALCHORD (DMUS_PLAYMODE_CHORD_ROOT | DMUS_PLAYMODE_CHORD_INTERVALS) |
| 302 | #define DMUS_PLAYMODE_ALWAYSPLAY (DMUS_PLAYMODE_MELODIC | DMUS_PLAYMODE_NORMALCHORD) |
| 303 | #define DMUS_PLAYMODE_PEDALPOINTCHORD (DMUS_PLAYMODE_KEY_ROOT | DMUS_PLAYMODE_CHORD_INTERVALS) |
| 304 | #define DMUS_PLAYMODE_PEDALPOINTALWAYS (DMUS_PLAYMODE_PEDALPOINT | DMUS_PLAYMODE_PEDALPOINTCHORD) |
| 305 | #define DMUS_PLAYMODE_PURPLEIZED DMUS_PLAYMODE_ALWAYSPLAY |
| 306 | #define DMUS_PLAYMODE_SCALE_ROOT DMUS_PLAYMODE_KEY_ROOT |
| 307 | #define DMUS_PLAYMODE_FIXEDTOSCALE DMUS_PLAYMODE_FIXEDTOKEY |
| 308 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 309 | #define DMUS_PPQ 768 |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 310 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 311 | #define DMUS_SEG_REPEAT_INFINITE 0xFFFFFFFF |
| 312 | #define DMUS_SEG_ALLTRACKS 0x80000000 |
| 313 | #define DMUS_SEG_ANYTRACK 0x80000000 |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 314 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 315 | #define DMUS_TEMPO_MAX 1000 |
| 316 | #define DMUS_TEMPO_MIN 1 |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 317 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 318 | #define DMUS_TRACKCONFIG_OVERRIDE_ALL 0x00001 |
| 319 | #define DMUS_TRACKCONFIG_OVERRIDE_PRIMARY 0x00002 |
| 320 | #define DMUS_TRACKCONFIG_FALLBACK 0x00004 |
| 321 | #define DMUS_TRACKCONFIG_CONTROL_ENABLED 0x00008 |
| 322 | #define DMUS_TRACKCONFIG_PLAY_ENABLED 0x00010 |
| 323 | #define DMUS_TRACKCONFIG_NOTIFICATION_ENABLED 0x00020 |
| 324 | #define DMUS_TRACKCONFIG_PLAY_CLOCKTIME 0x00040 |
| 325 | #define DMUS_TRACKCONFIG_PLAY_COMPOSE 0x00080 |
| 326 | #define DMUS_TRACKCONFIG_LOOP_COMPOSE 0x00100 |
| 327 | #define DMUS_TRACKCONFIG_COMPOSING 0x00200 |
| 328 | #define DMUS_TRACKCONFIG_TRANS1_FROMSEGSTART 0x00400 |
| 329 | #define DMUS_TRACKCONFIG_TRANS1_FROMSEGCURRENT 0x00800 |
| 330 | #define DMUS_TRACKCONFIG_TRANS1_TOSEGSTART 0x01000 |
| 331 | #define DMUS_TRACKCONFIG_CONTROL_PLAY 0x10000 |
| 332 | #define DMUS_TRACKCONFIG_CONTROL_NOTIFICATION 0x20000 |
| 333 | #define DMUS_TRACKCONFIG_DEFAULT (DMUS_TRACKCONFIG_CONTROL_ENABLED | DMUS_TRACKCONFIG_PLAY_ENABLED | DMUS_TRACKCONFIG_NOTIFICATION_ENABLED) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 334 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 335 | #define DMUS_WAVEF_OFF 0x01 |
| 336 | #define DMUS_WAVEF_STREAMING 0x02 |
| 337 | #define DMUS_WAVEF_NOINVALIDATE 0x04 |
| 338 | #define DMUS_WAVEF_NOPREROLL 0x08 |
| 339 | #define DMUS_WAVEF_IGNORELOOPS 0x20 |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 340 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 341 | #define DMUSB_LOADED 0x1 |
| 342 | #define DMUSB_DEFAULT 0x2 |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 343 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 344 | #define MT_MIN 0x80000000 |
| 345 | #define MT_MAX 0x7FFFFFFF |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 346 | |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 347 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 348 | /***************************************************************************** |
| 349 | * Definitions |
| 350 | */ |
| 351 | #define DMUS_PMSG_PART \ |
| 352 | DWORD dwSize; \ |
| 353 | REFERENCE_TIME rtTime; \ |
| 354 | MUSIC_TIME mtTime; \ |
| 355 | DWORD dwFlags; \ |
| 356 | DWORD dwPChannel; \ |
| 357 | DWORD dwVirtualTrackID; \ |
| 358 | IDirectMusicTool* pTool; \ |
| 359 | IDirectMusicGraph* pGraph; \ |
| 360 | DWORD dwType; \ |
| 361 | DWORD dwVoiceID; \ |
| 362 | DWORD dwGroupID; \ |
| 363 | IUnknown* punkUser; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 364 | |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 365 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 366 | /***************************************************************************** |
| 367 | * Enumerations |
| 368 | */ |
| 369 | /* typedef definitions */ |
| 370 | typedef enum enumDMUS_STYLET_TYPES DMUS_STYLET_TYPES; |
| 371 | typedef enum enumDMUS_COMMANDT_TYPES DMUS_COMMANDT_TYPES; |
| 372 | typedef enum enumDMUS_SHAPET_TYPES DMUS_SHAPET_TYPES; |
| 373 | typedef enum enumDMUS_COMPOSEF_FLAGS DMUS_COMPOSEF_FLAGS; |
| 374 | typedef enum enumDMUS_PMSGF_FLAGS DMUS_PMSGF_FLAGS; |
| 375 | typedef enum enumDMUS_PMSGT_TYPES DMUS_PMSGT_TYPES; |
| 376 | typedef enum enumDMUS_SEGF_FLAGS DMUS_SEGF_FLAGS; |
| 377 | typedef enum enumDMUS_TIME_RESOLVE_FLAGS DMUS_TIME_RESOLVE_FLAGS; |
| 378 | typedef enum enumDMUS_CHORDKEYF_FLAGS DMUS_CHORDKEYF_FLAGS; |
| 379 | typedef enum enumDMUS_NOTEF_FLAGS DMUS_NOTEF_FLAGS; |
| 380 | typedef enum enumDMUS_PLAYMODE_FLAGS DMUS_PLAYMODE_FLAGS; |
| 381 | typedef enum enumDMUS_CURVE_FLAGS DMUS_CURVE_FLAGS; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 382 | |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 383 | |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 384 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 385 | /* actual enumerations */ |
| 386 | enum enumDMUS_STYLET_TYPES { |
| 387 | DMUS_STYLET_PATTERN = 0x0, |
| 388 | DMUS_STYLET_MOTIF = 0x1, |
| 389 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 390 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 391 | enum enumDMUS_COMMANDT_TYPES { |
| 392 | DMUS_COMMANDT_GROOVE = 0x0, |
| 393 | DMUS_COMMANDT_FILL = 0x1, |
| 394 | DMUS_COMMANDT_INTRO = 0x2, |
| 395 | DMUS_COMMANDT_BREAK = 0x3, |
| 396 | DMUS_COMMANDT_END = 0x4, |
| 397 | DMUS_COMMANDT_ENDANDINTRO = 0x5 |
| 398 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 399 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 400 | enum enumDMUS_SHAPET_TYPES { |
| 401 | DMUS_SHAPET_FALLING = 0x0, |
| 402 | DMUS_SHAPET_LEVEL = 0x1, |
| 403 | DMUS_SHAPET_LOOPABLE = 0x2, |
| 404 | DMUS_SHAPET_LOUD = 0x3, |
| 405 | DMUS_SHAPET_QUIET = 0x4, |
| 406 | DMUS_SHAPET_PEAKING = 0x5, |
| 407 | DMUS_SHAPET_RANDOM = 0x6, |
| 408 | DMUS_SHAPET_RISING = 0x7, |
| 409 | DMUS_SHAPET_SONG = 0x8 |
| 410 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 411 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 412 | enum enumDMUS_COMPOSEF_FLAGS { |
| 413 | DMUS_COMPOSEF_NONE = 0x000000, |
| 414 | DMUS_COMPOSEF_ALIGN = 0x000001, |
| 415 | DMUS_COMPOSEF_OVERLAP = 0x000002, |
| 416 | DMUS_COMPOSEF_IMMEDIATE = 0x000004, |
| 417 | DMUS_COMPOSEF_GRID = 0x000008, |
| 418 | DMUS_COMPOSEF_BEAT = 0x000010, |
| 419 | DMUS_COMPOSEF_MEASURE = 0x000020, |
| 420 | DMUS_COMPOSEF_AFTERPREPARETIME = 0x000040, |
| 421 | DMUS_COMPOSEF_VALID_START_BEAT = 0x000080, |
| 422 | DMUS_COMPOSEF_VALID_START_GRID = 0x000100, |
| 423 | DMUS_COMPOSEF_VALID_START_TICK = 0x000200, |
| 424 | DMUS_COMPOSEF_SEGMENTEND = 0x000400, |
| 425 | DMUS_COMPOSEF_MARKER = 0x000800, |
| 426 | DMUS_COMPOSEF_MODULATE = 0x001000, |
| 427 | DMUS_COMPOSEF_LONG = 0x002000, |
| 428 | DMUS_COMPOSEF_ENTIRE_TRANSITION = 0x004000, |
| 429 | DMUS_COMPOSEF_1BAR_TRANSITION = 0x008000, |
| 430 | DMUS_COMPOSEF_ENTIRE_ADDITION = 0x010000, |
| 431 | DMUS_COMPOSEF_1BAR_ADDITION = 0x020000, |
| 432 | DMUS_COMPOSEF_VALID_START_MEASURE = 0x040000, |
| 433 | DMUS_COMPOSEF_DEFAULT = 0x080000, |
| 434 | DMUS_COMPOSEF_NOINVALIDATE = 0x100000, |
| 435 | DMUS_COMPOSEF_USE_AUDIOPATH = 0x200000, |
| 436 | DMUS_COMPOSEF_INVALIDATE_PRI = 0x400000 |
| 437 | }; |
| 438 | |
| 439 | enum enumDMUS_PMSGF_FLAGS { |
| 440 | DMUS_PMSGF_REFTIME = 1, |
| 441 | DMUS_PMSGF_MUSICTIME = 2, |
| 442 | DMUS_PMSGF_TOOL_IMMEDIATE = 4, |
| 443 | DMUS_PMSGF_TOOL_QUEUE = 8, |
| 444 | DMUS_PMSGF_TOOL_ATTIME = 0x10, |
| 445 | DMUS_PMSGF_TOOL_FLUSH = 0x20, |
| 446 | DMUS_PMSGF_LOCKTOREFTIME = 0x40, |
| 447 | DMUS_PMSGF_DX8 = 0x80 |
| 448 | }; |
| 449 | |
| 450 | enum enumDMUS_PMSGT_TYPES { |
| 451 | DMUS_PMSGT_MIDI = 0x00, |
| 452 | DMUS_PMSGT_NOTE = 0x01, |
| 453 | DMUS_PMSGT_SYSEX = 0x02, |
| 454 | DMUS_PMSGT_NOTIFICATION = 0x03, |
| 455 | DMUS_PMSGT_TEMPO = 0x04, |
| 456 | DMUS_PMSGT_CURVE = 0x05, |
| 457 | DMUS_PMSGT_TIMESIG = 0x06, |
| 458 | DMUS_PMSGT_PATCH = 0x07, |
| 459 | DMUS_PMSGT_TRANSPOSE = 0x08, |
| 460 | DMUS_PMSGT_CHANNEL_PRIORITY = 0x09, |
| 461 | DMUS_PMSGT_STOP = 0x0A, |
| 462 | DMUS_PMSGT_DIRTY = 0x0B, |
| 463 | DMUS_PMSGT_WAVE = 0x0C, |
| 464 | DMUS_PMSGT_LYRIC = 0x0D, |
| 465 | DMUS_PMSGT_SCRIPTLYRIC = 0x0E, |
| 466 | DMUS_PMSGT_USER = 0xFF |
| 467 | }; |
| 468 | |
| 469 | enum enumDMUS_SEGF_FLAGS { |
| 470 | DMUS_SEGF_REFTIME = 0x000040, |
| 471 | DMUS_SEGF_SECONDARY = 0x000080, |
| 472 | DMUS_SEGF_QUEUE = 0x000100, |
| 473 | DMUS_SEGF_CONTROL = 0x000200, |
| 474 | DMUS_SEGF_AFTERPREPARETIME = 0x000400, |
| 475 | DMUS_SEGF_GRID = 0x000800, |
| 476 | DMUS_SEGF_BEAT = 0x001000, |
| 477 | DMUS_SEGF_MEASURE = 0x002000, |
| 478 | DMUS_SEGF_DEFAULT = 0x004000, |
| 479 | DMUS_SEGF_NOINVALIDATE = 0x008000, |
| 480 | DMUS_SEGF_ALIGN = 0x0010000, |
| 481 | DMUS_SEGF_VALID_START_BEAT = 0x0020000, |
| 482 | DMUS_SEGF_VALID_START_GRID = 0x0040000, |
| 483 | DMUS_SEGF_VALID_START_TICK = 0x0080000, |
| 484 | DMUS_SEGF_AUTOTRANSITION = 0x0100000, |
| 485 | DMUS_SEGF_AFTERQUEUETIME = 0x0200000, |
| 486 | DMUS_SEGF_AFTERLATENCYTIME = 0x0400000, |
| 487 | DMUS_SEGF_SEGMENTEND = 0x0800000, |
| 488 | DMUS_SEGF_MARKER = 0x01000000, |
| 489 | DMUS_SEGF_TIMESIG_ALWAYS = 0x02000000, |
| 490 | DMUS_SEGF_USE_AUDIOPATH = 0x04000000, |
| 491 | DMUS_SEGF_VALID_START_MEASURE = 0x08000000, |
| 492 | DMUS_SEGF_INVALIDATE_PRI = 0x10000000 |
| 493 | }; |
| 494 | |
| 495 | enum enumDMUS_TIME_RESOLVE_FLAGS { |
| 496 | DMUS_TIME_RESOLVE_AFTERPREPARETIME = DMUS_SEGF_AFTERPREPARETIME, |
| 497 | DMUS_TIME_RESOLVE_AFTERQUEUETIME = DMUS_SEGF_AFTERQUEUETIME, |
| 498 | DMUS_TIME_RESOLVE_AFTERLATENCYTIME = DMUS_SEGF_AFTERLATENCYTIME, |
| 499 | DMUS_TIME_RESOLVE_GRID = DMUS_SEGF_GRID, |
| 500 | DMUS_TIME_RESOLVE_BEAT = DMUS_SEGF_BEAT, |
| 501 | DMUS_TIME_RESOLVE_MEASURE = DMUS_SEGF_MEASURE, |
| 502 | DMUS_TIME_RESOLVE_MARKER = DMUS_SEGF_MARKER, |
| 503 | DMUS_TIME_RESOLVE_SEGMENTEND = DMUS_SEGF_SEGMENTEND, |
| 504 | }; |
| 505 | |
| 506 | enum enumDMUS_CHORDKEYF_FLAGS { |
| 507 | DMUS_CHORDKEYF_SILENT = 0x1, |
| 508 | }; |
| 509 | |
| 510 | enum enumDMUS_NOTEF_FLAGS { |
| 511 | DMUS_NOTEF_NOTEON = 0x01, |
| 512 | /* DX8 */ |
| 513 | DMUS_NOTEF_NOINVALIDATE = 0x02, |
| 514 | DMUS_NOTEF_NOINVALIDATE_INSCALE = 0x04, |
| 515 | DMUS_NOTEF_NOINVALIDATE_INCHORD = 0x08, |
| 516 | DMUS_NOTEF_REGENERATE = 0x10, |
| 517 | }; |
| 518 | |
| 519 | enum enumDMUS_PLAYMODE_FLAGS { |
| 520 | DMUS_PLAYMODE_KEY_ROOT = 0x01, |
| 521 | DMUS_PLAYMODE_CHORD_ROOT = 0x02, |
| 522 | DMUS_PLAYMODE_SCALE_INTERVALS = 0x04, |
| 523 | DMUS_PLAYMODE_CHORD_INTERVALS = 0x08, |
| 524 | DMUS_PLAYMODE_NONE = 0x10, |
| 525 | }; |
| 526 | |
| 527 | enum enumDMUS_CURVE_FLAGS { |
| 528 | DMUS_CURVE_RESET = 0x1, |
| 529 | DMUS_CURVE_START_FROM_CURRENT = 0x2 |
| 530 | }; |
| 531 | |
| 532 | enum { |
| 533 | DMUS_CURVES_LINEAR = 0x0, |
| 534 | DMUS_CURVES_INSTANT = 0x1, |
| 535 | DMUS_CURVES_EXP = 0x2, |
| 536 | DMUS_CURVES_LOG = 0x3, |
| 537 | DMUS_CURVES_SINE = 0x4 |
| 538 | }; |
| 539 | |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 540 | |
| 541 | /***************************************************************************** |
| 542 | * Structures |
| 543 | */ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 544 | /* typedef definitions */ |
| 545 | /*typedef struct _DMUS_PMSG DMUS_PMSG, *LPDMUS_PMSG; */ |
| 546 | typedef struct _DMUS_AUDIOPARAMS DMUS_AUDIOPARAMS, *LPDMUS_AUDIOPARAMS; |
| 547 | typedef struct _DMUS_SUBCHORD DMUS_SUBCHORD, *LPDMUS_SUBCHORD; |
| 548 | typedef struct _DMUS_CHORD_KEY DMUS_CHORD_KEY, *LPDMUS_CHORD_KEY; |
| 549 | typedef struct _DMUS_NOTE_PMSG DMUS_NOTE_PMSG, *LPDMUS_NOTE_PMSG; |
| 550 | typedef struct _DMUS_MIDI_PMSG DMUS_MIDI_PMSG, *LPDMUS_MIDI_PMSG; |
| 551 | typedef struct _DMUS_PATCH_PMSG DMUS_PATCH_PMSG, *LPDMUS_PATCH_PMSG; |
| 552 | typedef struct _DMUS_TRANSPOSE_PMSG DMUS_TRANSPOSE_PMSG, *LPDMUS_TRANSPOSE_PMSG; |
| 553 | typedef struct _DMUS_CHANNEL_PRIORITY_PMSG DMUS_CHANNEL_PRIORITY_PMSG, *LPDMUS_CHANNEL_PRIORITY_PMSG; |
| 554 | typedef struct _DMUS_TEMPO_PMSG DMUS_TEMPO_PMSG, *LPDMUS_TEMPO_PMSG; |
| 555 | typedef struct _DMUS_SYSEX_PMSG DMUS_SYSEX_PMSG, *LPDMUS_SYSEX_PMSG; |
| 556 | typedef struct _DMUS_CURVE_PMSG DMUS_CURVE_PMSG, *LPDMUS_CURVE_PMSG; |
| 557 | typedef struct _DMUS_TIMESIG_PMSG DMUS_TIMESIG_PMSG, *LPDMUS_TIMESIG_PMSG; |
| 558 | typedef struct _DMUS_NOTIFICATION_PMSG DMUS_NOTIFICATION_PMSG, *LPDMUS_NOTIFICATION_PMSG; |
| 559 | typedef struct _DMUS_WAVE_PMSG DMUS_WAVE_PMSG, *LPDMUS_WAVE_PMSG; |
| 560 | typedef struct _DMUS_LYRIC_PMSG DMUS_LYRIC_PMSG, *LPDMUS_LYRIC_PMSG; |
| 561 | typedef struct _DMUS_VERSION DMUS_VERSION, *LPDMUS_VERSION; |
| 562 | typedef struct _DMUS_TIMESIGNATURE DMUS_TIMESIGNATURE, *LPDMUS_TIMESIGNATURE; |
| 563 | typedef struct _DMUS_VALID_START_PARAM DMUS_VALID_START_PARAM, *LPDMUS_VALID_START_PARAM; |
| 564 | typedef struct _DMUS_PLAY_MARKER_PARAM DMUS_PLAY_MARKER_PARAM, *LPDMUS_PLAY_MARKER_PARAM; |
| 565 | typedef struct _DMUS_OBJECTDESC DMUS_OBJECTDESC, *LPDMUS_OBJECTDESC; |
| 566 | typedef struct _DMUS_SCRIPT_ERRORINFO DMUS_SCRIPT_ERRORINFO, *LPDMUS_SCRIPT_ERRORINFO; |
| 567 | typedef struct _DMUS_COMMAND_PARAM DMUS_COMMAND_PARAM, *LPDMUS_COMMAND_PARAM; |
| 568 | typedef struct _DMUS_COMMAND_PARAM_2 DMUS_COMMAND_PARAM_2, *LPDMUS_COMMAND_PARAM_2; |
| 569 | typedef struct _DMUS_BAND_PARAM DMUS_BAND_PARAM, *LPDMUS_BAND_PARAM; |
| 570 | typedef struct _DMUS_VARIATIONS_PARAM DMUS_VARIATIONS_PARAM, *LPDMUS_VARIATIONS_PARAM; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 571 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 572 | /* actual structures */ |
| 573 | struct _DMUS_PMSG { |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 574 | DMUS_PMSG_PART |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 575 | }; |
| 576 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 577 | struct _DMUS_AUDIOPARAMS { |
| 578 | DWORD dwSize; |
| 579 | BOOL fInitNow; |
| 580 | DWORD dwValidData; |
| 581 | DWORD dwFeatures; |
| 582 | DWORD dwVoices; |
| 583 | DWORD dwSampleRate; |
| 584 | CLSID clsidDefaultSynth; |
| 585 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 586 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 587 | struct _DMUS_SUBCHORD { |
| 588 | DWORD dwChordPattern; |
| 589 | DWORD dwScalePattern; |
| 590 | DWORD dwInversionPoints; |
| 591 | DWORD dwLevels; |
| 592 | BYTE bChordRoot; |
| 593 | BYTE bScaleRoot; |
| 594 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 595 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 596 | struct _DMUS_CHORD_KEY { |
| 597 | WCHAR wszName[16]; |
| 598 | WORD wMeasure; |
| 599 | BYTE bBeat; |
| 600 | BYTE bSubChordCount; |
| 601 | DMUS_SUBCHORD SubChordList[DMUS_MAXSUBCHORD]; |
| 602 | DWORD dwScale; |
| 603 | BYTE bKey; |
| 604 | BYTE bFlags; |
| 605 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 606 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 607 | struct _DMUS_NOTE_PMSG { |
| 608 | DMUS_PMSG_PART |
| 609 | MUSIC_TIME mtDuration; |
| 610 | WORD wMusicValue; |
| 611 | WORD wMeasure; |
| 612 | short nOffset; |
| 613 | BYTE bBeat; |
| 614 | BYTE bGrid; |
| 615 | BYTE bVelocity; |
| 616 | BYTE bFlags; |
| 617 | BYTE bTimeRange; |
| 618 | BYTE bDurRange; |
| 619 | BYTE bVelRange; |
| 620 | BYTE bPlayModeFlags; |
| 621 | BYTE bSubChordLevel; |
| 622 | BYTE bMidiValue; |
| 623 | char cTranspose; |
| 624 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 625 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 626 | struct _DMUS_MIDI_PMSG { |
| 627 | DMUS_PMSG_PART |
| 628 | BYTE bStatus; |
| 629 | BYTE bByte1; |
| 630 | BYTE bByte2; |
| 631 | BYTE bPad[1]; |
| 632 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 633 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 634 | struct _DMUS_PATCH_PMSG { |
| 635 | DMUS_PMSG_PART |
| 636 | BYTE byInstrument; |
| 637 | BYTE byMSB; |
| 638 | BYTE byLSB; |
| 639 | BYTE byPad[1]; |
| 640 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 641 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 642 | struct _DMUS_TRANSPOSE_PMSG { |
| 643 | DMUS_PMSG_PART |
| 644 | short nTranspose; |
| 645 | /* DX8 */ |
| 646 | WORD wMergeIndex; |
| 647 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 648 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 649 | struct _DMUS_CHANNEL_PRIORITY_PMSG { |
| 650 | DMUS_PMSG_PART |
| 651 | DWORD dwChannelPriority; |
| 652 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 653 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 654 | struct _DMUS_TEMPO_PMSG { |
| 655 | DMUS_PMSG_PART |
| 656 | double dblTempo; |
| 657 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 658 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 659 | struct _DMUS_SYSEX_PMSG { |
| 660 | DMUS_PMSG_PART |
| 661 | DWORD dwLen; |
| 662 | BYTE abData[1]; |
| 663 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 664 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 665 | struct _DMUS_CURVE_PMSG { |
| 666 | DMUS_PMSG_PART |
| 667 | MUSIC_TIME mtDuration; |
| 668 | MUSIC_TIME mtOriginalStart; |
| 669 | MUSIC_TIME mtResetDuration; |
| 670 | short nStartValue; |
| 671 | short nEndValue; |
| 672 | short nResetValue; |
| 673 | WORD wMeasure; |
| 674 | short nOffset; |
| 675 | BYTE bBeat; |
| 676 | BYTE bGrid; |
| 677 | BYTE bType; |
| 678 | BYTE bCurveShape; |
| 679 | BYTE bCCData; |
| 680 | BYTE bFlags; |
| 681 | /* DX8 */ |
| 682 | WORD wParamType; |
| 683 | WORD wMergeIndex; |
| 684 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 685 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 686 | struct _DMUS_TIMESIG_PMSG { |
| 687 | DMUS_PMSG_PART |
| 688 | BYTE bBeatsPerMeasure; |
| 689 | BYTE bBeat; |
| 690 | WORD wGridsPerBeat; |
| 691 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 692 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 693 | struct _DMUS_NOTIFICATION_PMSG { |
| 694 | DMUS_PMSG_PART |
| 695 | GUID guidNotificationType; |
| 696 | DWORD dwNotificationOption; |
| 697 | DWORD dwField1; |
| 698 | DWORD dwField2; |
| 699 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 700 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 701 | struct _DMUS_WAVE_PMSG { |
| 702 | DMUS_PMSG_PART |
| 703 | REFERENCE_TIME rtStartOffset; |
| 704 | REFERENCE_TIME rtDuration; |
| 705 | long lOffset; |
| 706 | long lVolume; |
| 707 | long lPitch; |
| 708 | BYTE bFlags; |
| 709 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 710 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 711 | struct _DMUS_LYRIC_PMSG { |
| 712 | DMUS_PMSG_PART |
| 713 | WCHAR wszString[1]; |
| 714 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 715 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 716 | struct _DMUS_VERSION { |
| 717 | DWORD dwVersionMS; |
| 718 | DWORD dwVersionLS; |
| 719 | }; |
| 720 | |
| 721 | struct _DMUS_TIMESIGNATURE { |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 722 | MUSIC_TIME mtTime; |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 723 | BYTE bBeatsPerMeasure; |
| 724 | BYTE bBeat; |
| 725 | WORD wGridsPerBeat; |
| 726 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 727 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 728 | struct _DMUS_VALID_START_PARAM { |
| 729 | MUSIC_TIME mtTime; |
| 730 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 731 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 732 | struct _DMUS_PLAY_MARKER_PARAM { |
| 733 | MUSIC_TIME mtTime; |
| 734 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 735 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 736 | struct _DMUS_OBJECTDESC { |
| 737 | DWORD dwSize; |
| 738 | DWORD dwValidData; |
| 739 | GUID guidObject; |
| 740 | GUID guidClass; |
| 741 | FILETIME ftDate; |
| 742 | DMUS_VERSION vVersion; |
| 743 | WCHAR wszName[DMUS_MAX_NAME]; |
| 744 | WCHAR wszCategory[DMUS_MAX_CATEGORY]; |
| 745 | WCHAR wszFileName[DMUS_MAX_FILENAME]; |
| 746 | LONGLONG llMemLength; |
| 747 | LPBYTE pbMemData; |
| 748 | IStream* pStream; |
| 749 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 750 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 751 | struct _DMUS_SCRIPT_ERRORINFO { |
| 752 | DWORD dwSize; |
| 753 | HRESULT hr; |
| 754 | ULONG ulLineNumber; |
| 755 | LONG ichCharPosition; |
| 756 | WCHAR wszSourceFile[DMUS_MAX_FILENAME]; |
| 757 | WCHAR wszSourceComponent[DMUS_MAX_FILENAME]; |
| 758 | WCHAR wszDescription[DMUS_MAX_FILENAME]; |
| 759 | WCHAR wszSourceLineText[DMUS_MAX_FILENAME]; |
| 760 | }; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 761 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 762 | struct _DMUS_COMMAND_PARAM { |
| 763 | BYTE bCommand; |
| 764 | BYTE bGrooveLevel; |
| 765 | BYTE bGrooveRange; |
| 766 | BYTE bRepeatMode; |
| 767 | }; |
| 768 | |
| 769 | struct _DMUS_COMMAND_PARAM_2 { |
| 770 | MUSIC_TIME mtTime; |
| 771 | BYTE bCommand; |
| 772 | BYTE bGrooveLevel; |
| 773 | BYTE bGrooveRange; |
| 774 | BYTE bRepeatMode; |
| 775 | }; |
| 776 | |
| 777 | struct _DMUS_BAND_PARAM { |
| 778 | MUSIC_TIME mtTimePhysical; |
| 779 | IDirectMusicBand *pBand; |
| 780 | }; |
| 781 | |
| 782 | struct _DMUS_VARIATIONS_PARAM { |
| 783 | DWORD dwPChannelsUsed; |
| 784 | DWORD* padwPChannels; |
| 785 | DWORD* padwVariations; |
| 786 | }; |
| 787 | |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 788 | |
| 789 | /***************************************************************************** |
| 790 | * IDirectMusicBand interface |
| 791 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 792 | #undef INTERFACE |
| 793 | #define INTERFACE IDirectMusicBand |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 794 | #define IDirectMusicBand_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 795 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 796 | STDMETHOD(CreateSegment)(THIS_ IDirectMusicSegment **ppSegment) PURE; \ |
| 797 | STDMETHOD(Download)(THIS_ IDirectMusicPerformance *pPerformance) PURE; \ |
| 798 | STDMETHOD(Unload)(THIS_ IDirectMusicPerformance *pPerformance) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 799 | ICOM_DEFINE(IDirectMusicBand,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 800 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 801 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 802 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 803 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 804 | #define IDirectMusicBand_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 805 | #define IDirectMusicBand_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 806 | #define IDirectMusicBand_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 807 | /*** IDirectMusicBand methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 808 | #define IDirectMusicBand_CreateSegment(p,a) (p)->lpVtbl->CreateSegment(p,a) |
| 809 | #define IDirectMusicBand_Download(p,a) (p)->lpVtbl->Download(p,a) |
| 810 | #define IDirectMusicBand_Unload(p,a) (p)->lpVtbl->Unload(p,a) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 811 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 812 | |
| 813 | |
| 814 | /***************************************************************************** |
| 815 | * IDirectMusicObject interface |
| 816 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 817 | #undef INTERFACE |
| 818 | #define INTERFACE IDirectMusicObject |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 819 | #define IDirectMusicObject_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 820 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 821 | STDMETHOD(GetDescriptor)(THIS_ LPDMUS_OBJECTDESC pDesc) PURE; \ |
| 822 | STDMETHOD(SetDescriptor)(THIS_ LPDMUS_OBJECTDESC pDesc) PURE; \ |
| 823 | STDMETHOD(ParseDescriptor)(THIS_ LPSTREAM pStream, LPDMUS_OBJECTDESC pDesc) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 824 | ICOM_DEFINE(IDirectMusicObject,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 825 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 826 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 827 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 828 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 829 | #define IDirectMusicObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 830 | #define IDirectMusicObject_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 831 | #define IDirectMusicObject_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 832 | /*** IDirectMusicObject methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 833 | #define IDirectMusicObject_GetDescriptor(p,a) (p)->lpVtbl->GetDescriptor(p,a) |
| 834 | #define IDirectMusicObject_SetDescriptor(p,a) (p)->lpVtbl->SetDescriptor(p,a) |
| 835 | #define IDirectMusicObject_ParseDescriptor(p,a,b) (p)->lpVtbl->ParseDescriptor(p,a,b) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 836 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 837 | |
| 838 | |
| 839 | /***************************************************************************** |
| 840 | * IDirectMusicLoader interface |
| 841 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 842 | #undef INTERFACE |
| 843 | #define INTERFACE IDirectMusicLoader |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 844 | #define IDirectMusicLoader_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 845 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 846 | STDMETHOD(_GetObject)(THIS_ LPDMUS_OBJECTDESC pDesc, REFIID riid, LPVOID *ppv) PURE; \ |
| 847 | STDMETHOD(SetObject)(THIS_ LPDMUS_OBJECTDESC pDesc) PURE; \ |
| 848 | STDMETHOD(SetSearchDirectory)(THIS_ REFGUID rguidClass, WCHAR *pwzPath, BOOL fClear) PURE; \ |
| 849 | STDMETHOD(ScanDirectory)(THIS_ REFGUID rguidClass, WCHAR *pwzFileExtension, WCHAR *pwzScanFileName) PURE; \ |
| 850 | STDMETHOD(CacheObject)(THIS_ IDirectMusicObject *pObject) PURE; \ |
| 851 | STDMETHOD(ReleaseObject)(THIS_ IDirectMusicObject *pObject) PURE; \ |
| 852 | STDMETHOD(ClearCache)(THIS_ REFGUID rguidClass) PURE; \ |
| 853 | STDMETHOD(EnableCache)(THIS_ REFGUID rguidClass, BOOL fEnable) PURE; \ |
| 854 | STDMETHOD(EnumObject)(THIS_ REFGUID rguidClass, DWORD dwIndex, LPDMUS_OBJECTDESC pDesc) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 855 | ICOM_DEFINE(IDirectMusicLoader,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 856 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 857 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 858 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 859 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 860 | #define IDirectMusicLoader_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 861 | #define IDirectMusicLoader_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 862 | #define IDirectMusicLoader_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 863 | /*** IDirectMusicLoader methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 864 | #define IDirectMusicLoader_GetObject(p,a,b,c) (p)->lpVtbl->_GetObject(p,a,b,c) |
| 865 | #define IDirectMusicLoader_SetObject(p,a) (p)->lpVtbl->SetObject(p,a) |
| 866 | #define IDirectMusicLoader_SetSearchDirectory(p,a,b,c) (p)->lpVtbl->SetSearchDirectory(p,a,b,c) |
| 867 | #define IDirectMusicLoader_ScanDirectory(p,a,b,c) (p)->lpVtbl->ScanDirectory(p,a,b,c) |
| 868 | #define IDirectMusicLoader_CacheObject(p,a) (p)->lpVtbl->CacheObject(p,a) |
| 869 | #define IDirectMusicLoader_ReleaseObject(p,a) (p)->lpVtbl->ReleaseObject(p,a) |
| 870 | #define IDirectMusicLoader_ClearCache(p,a) (p)->lpVtbl->ClearCache(p,a) |
| 871 | #define IDirectMusicLoader_EnableCache(p,a,b) (p)->lpVtbl->EnableCache(p,a,b) |
| 872 | #define IDirectMusicLoader_EnumObject(p,a,b,c) (p)->lpVtbl->EnumObject(p,a,b,c) |
| 873 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 874 | |
| 875 | |
| 876 | /***************************************************************************** |
| 877 | * IDirectMusicLoader8 interface |
| 878 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 879 | #undef INTERFACE |
| 880 | #define INTERFACE IDirectMusicLoader8 |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 881 | #define IDirectMusicLoader8_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 882 | IDirectMusicLoader_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 883 | STDMETHOD_(void,CollectGarbage)(THIS) PURE; \ |
| 884 | STDMETHOD(ReleaseObjectByUnknown)(THIS_ IUnknown *pObject) PURE; \ |
| 885 | STDMETHOD(LoadObjectFromFile)(THIS_ REFGUID rguidClassID, REFIID iidInterfaceID, WCHAR *pwzFilePath, void **ppObject) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 886 | ICOM_DEFINE(IDirectMusicLoader8,IDirectMusicLoader) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 887 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 888 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 889 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 890 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 891 | #define IDirectMusicLoader8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 892 | #define IDirectMusicLoader8_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 893 | #define IDirectMusicLoader8_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 894 | /*** IDirectMusicLoader methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 895 | #define IDirectMusicLoader8_GetObject(p,a,b,c) (p)->lpVtbl->_GetObject(p,a,b,c) |
| 896 | #define IDirectMusicLoader8_SetObject(p,a) (p)->lpVtbl->SetObject(p,a) |
| 897 | #define IDirectMusicLoader8_SetSearchDirectory(p,a,b,c) (p)->lpVtbl->SetSearchDirectory(p,a,b,c) |
| 898 | #define IDirectMusicLoader8_ScanDirectory(p,a,b,c) (p)->lpVtbl->ScanDirectory(p,a,b,c) |
| 899 | #define IDirectMusicLoader8_CacheObject(p,a) (p)->lpVtbl->CacheObject(p,a) |
| 900 | #define IDirectMusicLoader8_ReleaseObject(p,a) (p)->lpVtbl->ReleaseObject(p,a) |
| 901 | #define IDirectMusicLoader8_ClearCache(p,a) (p)->lpVtbl->ClearCache(p,a) |
| 902 | #define IDirectMusicLoader8_EnableCache(p,a,b) (p)->lpVtbl->EnableCache(p,a,b) |
| 903 | #define IDirectMusicLoader8_EnumObject(p,a,b,c) (p)->lpVtbl->EnumObject(p,a,b,c) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 904 | /*** IDirectMusicLoader8 methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 905 | #define IDirectMusicLoader8_CollectGarbage(p) (p)->lpVtbl->CollectGarbage(p) |
| 906 | #define IDirectMusicLoader8_ReleaseObjectByUnknown(p,a) (p)->lpVtbl->ReleaseObjectByUnknown(p,a) |
| 907 | #define IDirectMusicLoader8_LoadObjectFromFile(p,a,b,c,d) (p)->lpVtbl->LoadObjectFromFile(p,a,b,c,d) |
| 908 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 909 | |
| 910 | |
| 911 | /***************************************************************************** |
| 912 | * IDirectMusicGetLoader interface |
| 913 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 914 | #undef INTERFACE |
| 915 | #define INTERFACE IDirectMusicGetLoader |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 916 | #define IDirectMusicGetLoader_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 917 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 918 | STDMETHOD(GetLoader)(THIS_ IDirectMusicLoader **ppLoader) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 919 | ICOM_DEFINE(IDirectMusicGetLoader,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 920 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 921 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 922 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 923 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 924 | #define IDirectMusicGetLoader_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 925 | #define IDirectMusicGetLoader_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 926 | #define IDirectMusicGetLoader_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 927 | /*** IDirectMusicGetLoader methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 928 | #define IDirectMusicGetLoader_GetLoader(p,a) (p)->lpVtbl->GetLoader(p,a) |
| 929 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 930 | |
| 931 | |
| 932 | /***************************************************************************** |
| 933 | * IDirectMusicSegment interface |
| 934 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 935 | #undef INTERFACE |
| 936 | #define INTERFACE IDirectMusicSegment |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 937 | #define IDirectMusicSegment_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 938 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 939 | STDMETHOD(GetLength)(THIS_ MUSIC_TIME *pmtLength) PURE; \ |
| 940 | STDMETHOD(SetLength)(THIS_ MUSIC_TIME mtLength) PURE; \ |
| 941 | STDMETHOD(GetRepeats)(THIS_ DWORD *pdwRepeats) PURE; \ |
| 942 | STDMETHOD(SetRepeats)(THIS_ DWORD dwRepeats) PURE; \ |
| 943 | STDMETHOD(GetDefaultResolution)(THIS_ DWORD *pdwResolution) PURE; \ |
| 944 | STDMETHOD(SetDefaultResolution)(THIS_ DWORD dwResolution) PURE; \ |
| 945 | STDMETHOD(GetTrack)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, IDirectMusicTrack **ppTrack) PURE; \ |
| 946 | STDMETHOD(GetTrackGroup)(THIS_ IDirectMusicTrack *pTrack, DWORD *pdwGroupBits) PURE; \ |
| 947 | STDMETHOD(InsertTrack)(THIS_ IDirectMusicTrack *pTrack, DWORD dwGroupBits) PURE; \ |
| 948 | STDMETHOD(RemoveTrack)(THIS_ IDirectMusicTrack *pTrack) PURE; \ |
| 949 | STDMETHOD(InitPlay)(THIS_ IDirectMusicSegmentState **ppSegState, IDirectMusicPerformance *pPerformance, DWORD dwFlags) PURE; \ |
| 950 | STDMETHOD(GetGraph)(THIS_ IDirectMusicGraph **ppGraph) PURE; \ |
| 951 | STDMETHOD(SetGraph)(THIS_ IDirectMusicGraph *pGraph) PURE; \ |
| 952 | STDMETHOD(AddNotificationType)(THIS_ REFGUID rguidNotificationType) PURE; \ |
| 953 | STDMETHOD(RemoveNotificationType)(THIS_ REFGUID rguidNotificationType) PURE; \ |
| 954 | STDMETHOD(GetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE; \ |
| 955 | STDMETHOD(SetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, void *pParam) PURE; \ |
| 956 | STDMETHOD(Clone)(THIS_ MUSIC_TIME mtStart, MUSIC_TIME mtEnd, IDirectMusicSegment **ppSegment) PURE; \ |
| 957 | STDMETHOD(SetStartPoint)(THIS_ MUSIC_TIME mtStart) PURE; \ |
| 958 | STDMETHOD(GetStartPoint)(THIS_ MUSIC_TIME *pmtStart) PURE; \ |
| 959 | STDMETHOD(SetLoopPoints)(THIS_ MUSIC_TIME mtStart, MUSIC_TIME mtEnd) PURE; \ |
| 960 | STDMETHOD(GetLoopPoints)(THIS_ MUSIC_TIME *pmtStart, MUSIC_TIME *pmtEnd) PURE; \ |
| 961 | STDMETHOD(SetPChannelsUsed)(THIS_ DWORD dwNumPChannels, DWORD *paPChannels) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 962 | ICOM_DEFINE(IDirectMusicSegment,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 963 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 964 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 965 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 966 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 967 | #define IDirectMusicSegment_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 968 | #define IDirectMusicSegment_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 969 | #define IDirectMusicSegment_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 970 | /*** IDirectMusicSegment methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 971 | #define IDirectMusicSegment_GetLength(p,a) (p)->lpVtbl->GetLength(p,a) |
| 972 | #define IDirectMusicSegment_SetLength(p,a) (p)->lpVtbl->SetLength(p,a) |
| 973 | #define IDirectMusicSegment_GetRepeats(p,a) (p)->lpVtbl->GetRepeats(p,a) |
| 974 | #define IDirectMusicSegment_SetRepeats(p,a) (p)->lpVtbl->SetRepeats(p,a) |
| 975 | #define IDirectMusicSegment_GetDefaultResolution(p,a) (p)->lpVtbl->GetDefaultResolution(p,a) |
| 976 | #define IDirectMusicSegment_SetDefaultResolution(p,a) (p)->lpVtbl->SetDefaultResolution(p,a) |
| 977 | #define IDirectMusicSegment_GetTrack(p,a,b,c,d) (p)->lpVtbl->GetTrack(p,a,b,c,d) |
| 978 | #define IDirectMusicSegment_GetTrackGroup(p,a,b) (p)->lpVtbl->GetTrackGroup(p,a,b) |
| 979 | #define IDirectMusicSegment_InsertTrack(p,a,b) (p)->lpVtbl->InsertTrack(p,a,b) |
| 980 | #define IDirectMusicSegment_RemoveTrack(p,a) (p)->lpVtbl->RemoveTrack(p,a) |
| 981 | #define IDirectMusicSegment_InitPlay(p,a,b,c) (p)->lpVtbl->InitPlay(p,a,b,c) |
| 982 | #define IDirectMusicSegment_GetGraph(p,a) (p)->lpVtbl->GetGraph(p,a) |
| 983 | #define IDirectMusicSegment_SetGraph(p,a) (p)->lpVtbl->SetGraph(p,a) |
| 984 | #define IDirectMusicSegment_AddNotificationType(p,a) (p)->lpVtbl->AddNotificationType(p,a) |
| 985 | #define IDirectMusicSegment_RemoveNotificationType(p,a) (p)->lpVtbl->RemoveNotificationType(p,a) |
| 986 | #define IDirectMusicSegment_GetParam(p,a,b,c,d,e,f) (p)->lpVtbl->GetParam(p,a,b,c,d,e,f) |
| 987 | #define IDirectMusicSegment_SetParam(p,a,b,c,d,e) (p)->lpVtbl->SetParam(p,a,b,c,d,e) |
| 988 | #define IDirectMusicSegment_Clone(p,a,b,c) (p)->lpVtbl->Clone(p,a,b,c) |
| 989 | #define IDirectMusicSegment_SetStartPoint(p,a) (p)->lpVtbl->SetStartPoint(p,a) |
| 990 | #define IDirectMusicSegment_GetStartPoint(p,a) (p)->lpVtbl->GetStartPoint(p,a) |
| 991 | #define IDirectMusicSegment_SetLoopPoints(p,a,b) (p)->lpVtbl->SetLoopPoints(p,a,b) |
| 992 | #define IDirectMusicSegment_GetLoopPoints(p,a,b) (p)->lpVtbl->GetLoopPoints(p,a,b) |
| 993 | #define IDirectMusicSegment_SetPChannelsUsed(p,a,b) (p)->lpVtbl->SetPChannelsUsed(p,a,b) |
| 994 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 995 | |
| 996 | |
| 997 | /***************************************************************************** |
| 998 | * IDirectMusicSegment8 interface |
| 999 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1000 | #undef INTERFACE |
| 1001 | #define INTERFACE IDirectMusicSegment8 |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1002 | #define IDirectMusicSegment8_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 1003 | IDirectMusicSegment_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1004 | STDMETHOD(SetTrackConfig)(THIS_ REFGUID rguidTrackClassID, DWORD dwGroupBits, DWORD dwIndex, DWORD dwFlagsOn, DWORD dwFlagsOff) PURE; \ |
| 1005 | STDMETHOD(GetAudioPathConfig)(THIS_ IUnknown **ppAudioPathConfig) PURE; \ |
| 1006 | STDMETHOD(Compose)(THIS_ MUSIC_TIME mtTime, IDirectMusicSegment *pFromSegment, IDirectMusicSegment *pToSegment, IDirectMusicSegment **ppComposedSegment) PURE; \ |
| 1007 | STDMETHOD(Download)(THIS_ IUnknown *pAudioPath) PURE; \ |
| 1008 | STDMETHOD(Unload)(THIS_ IUnknown *pAudioPath) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1009 | ICOM_DEFINE(IDirectMusicSegment8,IDirectMusicSegment) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1010 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1011 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1012 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1013 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1014 | #define IDirectMusicSegment8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1015 | #define IDirectMusicSegment8_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1016 | #define IDirectMusicSegment8_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1017 | /*** IDirectMusicSegment methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1018 | #define IDirectMusicSegment8_GetLength(p,a) (p)->lpVtbl->GetLength(p,a) |
| 1019 | #define IDirectMusicSegment8_SetLength(p,a) (p)->lpVtbl->SetLength(p,a) |
| 1020 | #define IDirectMusicSegment8_GetRepeats(p,a) (p)->lpVtbl->GetRepeats(p,a) |
| 1021 | #define IDirectMusicSegment8_SetRepeats(p,a) (p)->lpVtbl->SetRepeats(p,a) |
| 1022 | #define IDirectMusicSegment8_GetDefaultResolution(p,a) (p)->lpVtbl->GetDefaultResolution(p,a) |
| 1023 | #define IDirectMusicSegment8_SetDefaultResolution(p,a) (p)->lpVtbl->SetDefaultResolution(p,a) |
| 1024 | #define IDirectMusicSegment8_GetTrack(p,a,b,c,d) (p)->lpVtbl->GetTrack(p,a,b,c,d) |
| 1025 | #define IDirectMusicSegment8_GetTrackGroup(p,a,b) (p)->lpVtbl->GetTrackGroup(p,a,b) |
| 1026 | #define IDirectMusicSegment8_InsertTrack(p,a,b) (p)->lpVtbl->InsertTrack(p,a,b) |
| 1027 | #define IDirectMusicSegment8_RemoveTrack(p,a) (p)->lpVtbl->RemoveTrack(p,a) |
| 1028 | #define IDirectMusicSegment8_InitPlay(p,a,b,c) (p)->lpVtbl->InitPlay(p,a,b,c) |
| 1029 | #define IDirectMusicSegment8_GetGraph(p,a) (p)->lpVtbl->GetGraph(p,a) |
| 1030 | #define IDirectMusicSegment8_SetGraph(p,a) (p)->lpVtbl->SetGraph(p,a) |
| 1031 | #define IDirectMusicSegment8_AddNotificationType(p,a) (p)->lpVtbl->AddNotificationType(p,a) |
| 1032 | #define IDirectMusicSegment8_RemoveNotificationType(p,a) (p)->lpVtbl->RemoveNotificationType(p,a) |
| 1033 | #define IDirectMusicSegment8_GetParam(p,a,b,c,d,e,f) (p)->lpVtbl->GetParam(p,a,b,c,d,e,f) |
| 1034 | #define IDirectMusicSegment8_SetParam(p,a,b,c,d,e) (p)->lpVtbl->SetParam(p,a,b,c,d,e) |
| 1035 | #define IDirectMusicSegment8_Clone(p,a,b,c) (p)->lpVtbl->Clone(p,a,b,c) |
| 1036 | #define IDirectMusicSegment8_SetStartPoint(p,a) (p)->lpVtbl->SetStartPoint(p,a) |
| 1037 | #define IDirectMusicSegment8_GetStartPoint(p,a) (p)->lpVtbl->GetStartPoint(p,a) |
| 1038 | #define IDirectMusicSegment8_SetLoopPoints(p,a,b) (p)->lpVtbl->SetLoopPoints(p,a,b) |
| 1039 | #define IDirectMusicSegment8_GetLoopPoints(p,a,b) (p)->lpVtbl->GetLoopPoints(p,a,b) |
| 1040 | #define IDirectMusicSegment8_SetPChannelsUsed(p,a,b) (p)->lpVtbl->SetPChannelsUsed(p,a,b) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1041 | /*** IDirectMusicSegment8 methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1042 | #define IDirectMusicSegment8_SetTrackConfig(p,a,b,c,d,e) (p)->lpVtbl->SetTrackConfig(p,a,b,c,d,e) |
| 1043 | #define IDirectMusicSegment8_GetAudioPathConfig(p,a) (p)->lpVtbl->GetAudioPathConfig(p,a) |
| 1044 | #define IDirectMusicSegment8_Compose(p,a,b,c,d) (p)->lpVtbl->Compose(p,a,b,c,d) |
| 1045 | #define IDirectMusicSegment8_Download(p,a) (p)->lpVtbl->Download(p,a) |
| 1046 | #define IDirectMusicSegment8_Unload(p,a) (p)->lpVtbl->Unload(p,a) |
| 1047 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1048 | |
| 1049 | |
| 1050 | /***************************************************************************** |
| 1051 | * IDirectMusicSegmentState interface |
| 1052 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1053 | #undef INTERFACE |
| 1054 | #define INTERFACE IDirectMusicSegmentState |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1055 | #define IDirectMusicSegmentState_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 1056 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1057 | STDMETHOD(GetRepeats)(THIS_ DWORD *pdwRepeats) PURE; \ |
| 1058 | STDMETHOD(GetSegment)(THIS_ IDirectMusicSegment **ppSegment) PURE; \ |
| 1059 | STDMETHOD(GetStartTime)(THIS_ MUSIC_TIME *pmtStart) PURE; \ |
| 1060 | STDMETHOD(GetSeek)(THIS_ MUSIC_TIME *pmtSeek) PURE; \ |
| 1061 | STDMETHOD(GetStartPoint)(THIS_ MUSIC_TIME *pmtStart) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1062 | ICOM_DEFINE(IDirectMusicSegmentState,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1063 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1064 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1065 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1066 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1067 | #define IDirectMusicSegmentState_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1068 | #define IDirectMusicSegmentState_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1069 | #define IDirectMusicSegmentState_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1070 | /*** IDirectMusicSegmentState methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1071 | #define IDirectMusicSegmentState_GetRepeats(p,a) (p)->lpVtbl->GetRepeats(p,a) |
| 1072 | #define IDirectMusicSegmentState_GetSegment(p,a) (p)->lpVtbl->GetSegment(p,a) |
| 1073 | #define IDirectMusicSegmentState_GetStartTime(p,a) (p)->lpVtbl->GetStartTime(p,a) |
| 1074 | #define IDirectMusicSegmentState_GetSeek(p,a) (p)->lpVtbl->GetSeek(p,a) |
| 1075 | #define IDirectMusicSegmentState_GetStartPoint(p,a) (p)->lpVtbl->GetStartPoint(p,a) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1076 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1077 | |
| 1078 | |
| 1079 | /***************************************************************************** |
| 1080 | * IDirectMusicSegmentState8 interface |
| 1081 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1082 | #undef INTERFACE |
| 1083 | #define INTERFACE IDirectMusicSegmentState8 |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1084 | #define IDirectMusicSegmentState8_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 1085 | IDirectMusicSegmentState_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1086 | STDMETHOD(SetTrackConfig)(THIS_ REFGUID rguidTrackClassID, DWORD dwGroupBits, DWORD dwIndex, DWORD dwFlagsOn, DWORD dwFlagsOff) PURE; \ |
| 1087 | STDMETHOD(GetObjectInPath)(THIS_ DWORD dwPChannel, DWORD dwStage, DWORD dwBuffer, REFGUID guidObject, DWORD dwIndex, REFGUID iidInterface, void **ppObject) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1088 | ICOM_DEFINE(IDirectMusicSegmentState8,IDirectMusicSegmentState) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1089 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1090 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1091 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1092 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1093 | #define IDirectMusicSegmentState8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1094 | #define IDirectMusicSegmentState8_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1095 | #define IDirectMusicSegmentState8_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1096 | /*** IDirectMusicSegmentState methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1097 | #define IDirectMusicSegmentState8_GetRepeats(p,a) (p)->lpVtbl->GetRepeats(p,a) |
| 1098 | #define IDirectMusicSegmentState8_GetSegment(p,a) (p)->lpVtbl->GetSegment(p,a) |
| 1099 | #define IDirectMusicSegmentState8_GetStartTime(p,a) (p)->lpVtbl->GetStartTime(p,a) |
| 1100 | #define IDirectMusicSegmentState8_GetSeek(p,a) (p)->lpVtbl->GetSeek(p,a) |
| 1101 | #define IDirectMusicSegmentState8_GetStartPoint(p,a) (p)->lpVtbl->GetStartPoint(p,a) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1102 | /*** IDirectMusicSegmentState8 methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1103 | #define IDirectMusicSegmentState8_SetTrackConfig(p,a,b,c,d,e) (p)->lpVtbl->SetTrackConfig(p,a,b,c,d,e) |
| 1104 | #define IDirectMusicSegmentState8_GetObjectInPath(p,a,b,c,d,e,f,g) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d,e,f,g) |
| 1105 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1106 | |
| 1107 | |
| 1108 | /***************************************************************************** |
| 1109 | * IDirectMusicAudioPath interface |
| 1110 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1111 | #undef INTERFACE |
| 1112 | #define INTERFACE IDirectMusicAudioPath |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1113 | #define IDirectMusicAudioPath_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 1114 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1115 | STDMETHOD(GetObjectInPath)(THIS_ DWORD dwPChannel, DWORD dwStage, DWORD dwBuffer, REFGUID guidObject, WORD dwIndex, REFGUID iidInterface, void **ppObject) PURE; \ |
| 1116 | STDMETHOD(Activate)(THIS_ BOOL fActivate) PURE; \ |
| 1117 | STDMETHOD(SetVolume)(THIS_ long lVolume, DWORD dwDuration) PURE; \ |
| 1118 | STDMETHOD(ConvertPChannel)(THIS_ DWORD dwPChannelIn, DWORD *pdwPChannelOut) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1119 | ICOM_DEFINE(IDirectMusicAudioPath,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1120 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1121 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1122 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1123 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1124 | #define IDirectMusicAudioPath_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1125 | #define IDirectMusicAudioPath_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1126 | #define IDirectMusicAudioPath_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1127 | /*** IDirectMusicAudioPath methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1128 | #define IDirectMusicAudioPath_GetObjectInPath(p,a,b,c,d,e,f,g) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d,e,f,g) |
| 1129 | #define IDirectMusicAudioPath_Activate(p,a) (p)->lpVtbl->Activate(p,a) |
| 1130 | #define IDirectMusicAudioPath_SetVolume(p,a,b) (p)->lpVtbl->SetVolume(p,a,b) |
| 1131 | #define IDirectMusicAudioPath_ConvertPChannel(p,a,b) (p)->lpVtbl->ConvertPChannel(p,a,b) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1132 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1133 | |
| 1134 | |
| 1135 | /***************************************************************************** |
| 1136 | * IDirectMusicPerformance interface |
| 1137 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1138 | #undef INTERFACE |
| 1139 | #define INTERFACE IDirectMusicPerformance |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1140 | #define IDirectMusicPerformance_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 1141 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1142 | STDMETHOD(Init)(THIS_ IDirectMusic **ppDirectMusic, LPDIRECTSOUND pDirectSound, HWND hWnd) PURE; \ |
| 1143 | STDMETHOD(PlaySegment)(THIS_ IDirectMusicSegment *pSegment, DWORD dwFlags, __int64 i64StartTime, IDirectMusicSegmentState **ppSegmentState) PURE; \ |
| 1144 | STDMETHOD(Stop)(THIS_ IDirectMusicSegment *pSegment, IDirectMusicSegmentState *pSegmentState, MUSIC_TIME mtTime, DWORD dwFlags) PURE; \ |
| 1145 | STDMETHOD(GetSegmentState)(THIS_ IDirectMusicSegmentState **ppSegmentState, MUSIC_TIME mtTime) PURE; \ |
| 1146 | STDMETHOD(SetPrepareTime)(THIS_ DWORD dwMilliSeconds) PURE; \ |
| 1147 | STDMETHOD(GetPrepareTime)(THIS_ DWORD *pdwMilliSeconds) PURE; \ |
| 1148 | STDMETHOD(SetBumperLength)(THIS_ DWORD dwMilliSeconds) PURE; \ |
| 1149 | STDMETHOD(GetBumperLength)(THIS_ DWORD *pdwMilliSeconds) PURE; \ |
| 1150 | STDMETHOD(SendPMsg)(THIS_ DMUS_PMSG *pPMSG) PURE; \ |
| 1151 | STDMETHOD(MusicToReferenceTime)(THIS_ MUSIC_TIME mtTime, REFERENCE_TIME *prtTime) PURE; \ |
| 1152 | STDMETHOD(ReferenceToMusicTime)(THIS_ REFERENCE_TIME rtTime, MUSIC_TIME *pmtTime) PURE; \ |
| 1153 | STDMETHOD(IsPlaying)(THIS_ IDirectMusicSegment *pSegment, IDirectMusicSegmentState *pSegState) PURE; \ |
| 1154 | STDMETHOD(GetTime)(THIS_ REFERENCE_TIME *prtNow, MUSIC_TIME *pmtNow) PURE; \ |
| 1155 | STDMETHOD(AllocPMsg)(THIS_ ULONG cb, DMUS_PMSG **ppPMSG) PURE; \ |
| 1156 | STDMETHOD(FreePMsg)(THIS_ DMUS_PMSG *pPMSG) PURE; \ |
| 1157 | STDMETHOD(GetGraph)(THIS_ IDirectMusicGraph **ppGraph) PURE; \ |
| 1158 | STDMETHOD(SetGraph)(THIS_ IDirectMusicGraph *pGraph) PURE; \ |
| 1159 | STDMETHOD(SetNotificationHandle)(THIS_ HANDLE hNotification, REFERENCE_TIME rtMinimum) PURE; \ |
| 1160 | STDMETHOD(GetNotificationPMsg)(THIS_ DMUS_NOTIFICATION_PMSG **ppNotificationPMsg) PURE; \ |
| 1161 | STDMETHOD(AddNotificationType)(THIS_ REFGUID rguidNotificationType) PURE; \ |
| 1162 | STDMETHOD(RemoveNotificationType)(THIS_ REFGUID rguidNotificationType) PURE; \ |
| 1163 | STDMETHOD(AddPort)(THIS_ IDirectMusicPort *pPort) PURE; \ |
| 1164 | STDMETHOD(RemovePort)(THIS_ IDirectMusicPort *pPort) PURE; \ |
| 1165 | STDMETHOD(AssignPChannelBlock)(THIS_ DWORD dwBlockNum, IDirectMusicPort *pPort, DWORD dwGroup) PURE; \ |
| 1166 | STDMETHOD(AssignPChannel)(THIS_ DWORD dwPChannel, IDirectMusicPort *pPort, DWORD dwGroup, DWORD dwMChannel) PURE; \ |
| 1167 | STDMETHOD(PChannelInfo)(THIS_ DWORD dwPChannel, IDirectMusicPort **ppPort, DWORD *pdwGroup, DWORD *pdwMChannel) PURE; \ |
| 1168 | STDMETHOD(DownloadInstrument)(THIS_ IDirectMusicInstrument *pInst, DWORD dwPChannel, IDirectMusicDownloadedInstrument **ppDownInst, DMUS_NOTERANGE *pNoteRanges, DWORD dwNumNoteRanges, IDirectMusicPort **ppPort, DWORD *pdwGroup, DWORD *pdwMChannel) PURE; \ |
| 1169 | STDMETHOD(Invalidate)(THIS_ MUSIC_TIME mtTime, DWORD dwFlags) PURE; \ |
| 1170 | STDMETHOD(GetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE; \ |
| 1171 | STDMETHOD(SetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, void *pParam) PURE; \ |
| 1172 | STDMETHOD(GetGlobalParam)(THIS_ REFGUID rguidType, void *pParam, DWORD dwSize) PURE; \ |
| 1173 | STDMETHOD(SetGlobalParam)(THIS_ REFGUID rguidType, void *pParam, DWORD dwSize) PURE; \ |
| 1174 | STDMETHOD(GetLatencyTime)(THIS_ REFERENCE_TIME *prtTime) PURE; \ |
| 1175 | STDMETHOD(GetQueueTime)(THIS_ REFERENCE_TIME *prtTime) PURE; \ |
| 1176 | STDMETHOD(AdjustTime)(THIS_ REFERENCE_TIME rtAmount) PURE; \ |
| 1177 | STDMETHOD(CloseDown)(THIS) PURE; \ |
| 1178 | STDMETHOD(GetResolvedTime)(THIS_ REFERENCE_TIME rtTime, REFERENCE_TIME *prtResolved, DWORD dwTimeResolveFlags) PURE; \ |
| 1179 | STDMETHOD(MIDIToMusic)(THIS_ BYTE bMIDIValue, DMUS_CHORD_KEY *pChord, BYTE bPlayMode, BYTE bChordLevel, WORD *pwMusicValue) PURE; \ |
| 1180 | STDMETHOD(MusicToMIDI)(THIS_ WORD wMusicValue, DMUS_CHORD_KEY *pChord, BYTE bPlayMode, BYTE bChordLevel, BYTE *pbMIDIValue) PURE; \ |
| 1181 | STDMETHOD(TimeToRhythm)(THIS_ MUSIC_TIME mtTime, DMUS_TIMESIGNATURE *pTimeSig, WORD *pwMeasure, BYTE *pbBeat, BYTE *pbGrid, short *pnOffset) PURE; \ |
| 1182 | STDMETHOD(RhythmToTime)(THIS_ WORD wMeasure, BYTE bBeat, BYTE bGrid, short nOffset, DMUS_TIMESIGNATURE *pTimeSig, MUSIC_TIME *pmtTime) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1183 | ICOM_DEFINE(IDirectMusicPerformance,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1184 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1185 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1186 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1187 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1188 | #define IDirectMusicPerformance_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1189 | #define IDirectMusicPerformance_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1190 | #define IDirectMusicPerformance_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1191 | /*** IDirectMusicPerformance methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1192 | #define IDirectMusicPerformance_Init(p,a,b,c) (p)->lpVtbl->Init(p,a,b,c) |
| 1193 | #define IDirectMusicPerformance_PlaySegment(p,a,b,c,d) (p)->lpVtbl->PlaySegment(p,a,b,c,d) |
| 1194 | #define IDirectMusicPerformance_Stop(p,a,b,c,d) (p)->lpVtbl->Stop(p,a,b,c,d) |
| 1195 | #define IDirectMusicPerformance_GetSegmentState(p,a,b) (p)->lpVtbl->GetSegmentState(p,a,b) |
| 1196 | #define IDirectMusicPerformance_SetPrepareTime(p,a) (p)->lpVtbl->SetPrepareTime(p,a) |
| 1197 | #define IDirectMusicPerformance_GetPrepareTime(p,a) (p)->lpVtbl->GetPrepareTime(p,a) |
| 1198 | #define IDirectMusicPerformance_SetBumperLength(p,a) (p)->lpVtbl->SetBumperLength(p,a) |
| 1199 | #define IDirectMusicPerformance_GetBumperLength(p,a) (p)->lpVtbl->GetBumperLength(p,a) |
| 1200 | #define IDirectMusicPerformance_SendPMsg(p,a) (p)->lpVtbl->SendPMsg(p,a) |
| 1201 | #define IDirectMusicPerformance_MusicToReferenceTime(p,a,b) (p)->lpVtbl->MusicToReferenceTime(p,a,b) |
| 1202 | #define IDirectMusicPerformance_ReferenceToMusicTime(p,a,b) (p)->lpVtbl->ReferenceToMusicTime(p,a,b) |
| 1203 | #define IDirectMusicPerformance_IsPlaying(p,a,b) (p)->lpVtbl->IsPlaying(p,a,b) |
| 1204 | #define IDirectMusicPerformance_GetTime(p,a,b) (p)->lpVtbl->GetTime(p,a,b) |
| 1205 | #define IDirectMusicPerformance_AllocPMsg(p,a,b) (p)->lpVtbl->AllocPMsg(p,a,b) |
| 1206 | #define IDirectMusicPerformance_FreePMsg(p,a) (p)->lpVtbl->FreePMsg(p,a) |
| 1207 | #define IDirectMusicPerformance_GetGraph(p,a) (p)->lpVtbl->GetGraph(p,a) |
| 1208 | #define IDirectMusicPerformance_SetGraph(p,a) (p)->lpVtbl->SetGraph(p,a) |
| 1209 | #define IDirectMusicPerformance_SetNotificationHandle(p,a,b) (p)->lpVtbl->SetNotificationHandle(p,a,b) |
| 1210 | #define IDirectMusicPerformance_GetNotificationPMsg(p,a) (p)->lpVtbl->GetNotificationPMsg(p,a) |
| 1211 | #define IDirectMusicPerformance_AddNotificationType(p,a) (p)->lpVtbl->AddNotificationType(p,a) |
| 1212 | #define IDirectMusicPerformance_RemoveNotificationType(p,a) (p)->lpVtbl->RemoveNotificationType(p,a) |
| 1213 | #define IDirectMusicPerformance_AddPort(p,a) (p)->lpVtbl->AddPort(p,a) |
| 1214 | #define IDirectMusicPerformance_RemovePort(p,a) (p)->lpVtbl->RemovePort(p,a) |
| 1215 | #define IDirectMusicPerformance_AssignPChannelBlock(p,a,b,c) (p)->lpVtbl->AssignPChannelBlock(p,a,b,c) |
| 1216 | #define IDirectMusicPerformance_AssignPChannel(p,a,b,c,d) (p)->lpVtbl->AssignPChannel(p,a,b,c,d) |
| 1217 | #define IDirectMusicPerformance_PChannelInfo(p,a,b,c,d) (p)->lpVtbl->PChannelInfo(p,a,b,c,d) |
| 1218 | #define IDirectMusicPerformance_DownloadInstrument(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DownloadInstrument(p,a,b,c,d,e,f,g,h) |
| 1219 | #define IDirectMusicPerformance_Invalidate(p,a,b) (p)->lpVtbl->Invalidate(p,a,b) |
| 1220 | #define IDirectMusicPerformance_GetParam(p,a,b,c,d,e,f) (p)->lpVtbl->GetParam(p,a,b,c,d,e,f) |
| 1221 | #define IDirectMusicPerformance_SetParam(p,a,b,c,d,e) (p)->lpVtbl->SetParam(p,a,b,c,d,e) |
| 1222 | #define IDirectMusicPerformance_GetGlobalParam(p,a,b,c) (p)->lpVtbl->GetGlobalParam(p,a,b,c) |
| 1223 | #define IDirectMusicPerformance_SetGlobalParam(p,a,b,c) (p)->lpVtbl->SetGlobalParam(p,a,b,c) |
| 1224 | #define IDirectMusicPerformance_GetLatencyTime(p,a) (p)->lpVtbl->GetLatencyTime(p,a) |
| 1225 | #define IDirectMusicPerformance_GetQueueTime(p,a) (p)->lpVtbl->GetQueueTime(p,a) |
| 1226 | #define IDirectMusicPerformance_AdjustTime(p,a) (p)->lpVtbl->AdjustTime(p,a) |
| 1227 | #define IDirectMusicPerformance_CloseDown(p) (p)->lpVtbl->CloseDown(p) |
| 1228 | #define IDirectMusicPerformance_GetResolvedTime(p,a,b,c) (p)->lpVtbl->GetResolvedTime(p,a,b,c) |
| 1229 | #define IDirectMusicPerformance_MIDIToMusic(p,a,b,c,d,e) (p)->lpVtbl->MIDIToMusic(p,a,b,c,d,e) |
| 1230 | #define IDirectMusicPerformance_MusicToMIDI(p,a,b,c,d,e) (p)->lpVtbl->MusicToMIDI(p,a,b,c,d,e) |
| 1231 | #define IDirectMusicPerformance_TimeToRhythm(p,a,b,c,d,e,f) (p)->lpVtbl->TimeToRhythm(p,a,b,c,d,e,f) |
| 1232 | #define IDirectMusicPerformance_RhythmToTime(p,a,b,c,d,e,f) (p)->lpVtbl->RhythmToTime(p,a,b,c,d,e,f) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1233 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1234 | |
| 1235 | |
| 1236 | /***************************************************************************** |
| 1237 | * IDirectMusicPerformance8 interface |
| 1238 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1239 | #undef INTERFACE |
| 1240 | #define INTERFACE IDirectMusicPerformance8 |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1241 | #define IDirectMusicPerformance8_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 1242 | IDirectMusicPerformance_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1243 | STDMETHOD(InitAudio)(THIS_ IDirectMusic **ppDirectMusic, IDirectSound **ppDirectSound, HWND hWnd, DWORD dwDefaultPathType, DWORD dwPChannelCount, DWORD dwFlags, DMUS_AUDIOPARAMS *pParams) PURE; \ |
| 1244 | STDMETHOD(PlaySegmentEx)(THIS_ IUnknown *pSource, WCHAR *pwzSegmentName, IUnknown *pTransition, DWORD dwFlags, __int64 i64StartTime, IDirectMusicSegmentState **ppSegmentState, IUnknown *pFrom, IUnknown *pAudioPath) PURE; \ |
| 1245 | STDMETHOD(StopEx)(THIS_ IUnknown *pObjectToStop, __int64 i64StopTime, DWORD dwFlags) PURE; \ |
| 1246 | STDMETHOD(ClonePMsg)(THIS_ DMUS_PMSG *pSourcePMSG, DMUS_PMSG **ppCopyPMSG) PURE; \ |
| 1247 | STDMETHOD(CreateAudioPath)(THIS_ IUnknown *pSourceConfig, BOOL fActivate, IDirectMusicAudioPath **ppNewPath) PURE; \ |
| 1248 | STDMETHOD(CreateStandardAudioPath)(THIS_ DWORD dwType, DWORD dwPChannelCount, BOOL fActivate, IDirectMusicAudioPath **ppNewPath) PURE; \ |
| 1249 | STDMETHOD(SetDefaultAudioPath)(THIS_ IDirectMusicAudioPath *pAudioPath) PURE; \ |
| 1250 | STDMETHOD(GetDefaultAudioPath)(THIS_ IDirectMusicAudioPath **ppAudioPath) PURE; \ |
| 1251 | STDMETHOD(GetParamEx)(THIS_ REFGUID rguidType, DWORD dwTrackID, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1252 | ICOM_DEFINE(IDirectMusicPerformance8,IDirectMusicPerformance) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1253 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1254 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1255 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1256 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1257 | #define IDirectMusicPerformance8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1258 | #define IDirectMusicPerformance8_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1259 | #define IDirectMusicPerformance8_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1260 | /*** IDirectMusicPerformance methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1261 | #define IDirectMusicPerformance8_Init(p,a,b,c) (p)->lpVtbl->Init(p,a,b,c) |
| 1262 | #define IDirectMusicPerformance8_PlaySegment(p,a,b,c,d) (p)->lpVtbl->PlaySegment(p,a,b,c,d) |
| 1263 | #define IDirectMusicPerformance8_Stop(p,a,b,c,d) (p)->lpVtbl->Stop(p,a,b,c,d) |
| 1264 | #define IDirectMusicPerformance8_GetSegmentState(p,a,b) (p)->lpVtbl->GetSegmentState(p,a,b) |
| 1265 | #define IDirectMusicPerformance8_SetPrepareTime(p,a) (p)->lpVtbl->SetPrepareTime(p,a) |
| 1266 | #define IDirectMusicPerformance8_GetPrepareTime(p,a) (p)->lpVtbl->GetPrepareTime(p,a) |
| 1267 | #define IDirectMusicPerformance8_SetBumperLength(p,a) (p)->lpVtbl->SetBumperLength(p,a) |
| 1268 | #define IDirectMusicPerformance8_GetBumperLength(p,a) (p)->lpVtbl->GetBumperLength(p,a) |
| 1269 | #define IDirectMusicPerformance8_SendPMsg(p,a) (p)->lpVtbl->SendPMsg(p,a) |
| 1270 | #define IDirectMusicPerformance8_MusicToReferenceTime(p,a,b) (p)->lpVtbl->MusicToReferenceTime(p,a,b) |
| 1271 | #define IDirectMusicPerformance8_ReferenceToMusicTime(p,a,b) (p)->lpVtbl->ReferenceToMusicTime(p,a,b) |
| 1272 | #define IDirectMusicPerformance8_IsPlaying(p,a,b) (p)->lpVtbl->IsPlaying(p,a,b) |
| 1273 | #define IDirectMusicPerformance8_GetTime(p,a,b) (p)->lpVtbl->GetTime(p,a,b) |
| 1274 | #define IDirectMusicPerformance8_AllocPMsg(p,a,b) (p)->lpVtbl->AllocPMsg(p,a,b) |
| 1275 | #define IDirectMusicPerformance8_FreePMsg(p,a) (p)->lpVtbl->FreePMsg(p,a) |
| 1276 | #define IDirectMusicPerformance8_GetGraph(p,a) (p)->lpVtbl->GetGraph(p,a) |
| 1277 | #define IDirectMusicPerformance8_SetGraph(p,a) (p)->lpVtbl->SetGraph(p,a) |
| 1278 | #define IDirectMusicPerformance8_SetNotificationHandle(p,a,b) (p)->lpVtbl->SetNotificationHandle(p,a,b) |
| 1279 | #define IDirectMusicPerformance8_GetNotificationPMsg(p,a) (p)->lpVtbl->GetNotificationPMsg(p,a) |
| 1280 | #define IDirectMusicPerformance8_AddNotificationType(p,a) (p)->lpVtbl->AddNotificationType(p,a) |
| 1281 | #define IDirectMusicPerformance8_RemoveNotificationType(p,a) (p)->lpVtbl->RemoveNotificationType(p,a) |
| 1282 | #define IDirectMusicPerformance8_AddPort(p,a) (p)->lpVtbl->AddPort(p,a) |
| 1283 | #define IDirectMusicPerformance8_RemovePort(p,a) (p)->lpVtbl->RemovePort(p,a) |
| 1284 | #define IDirectMusicPerformance8_AssignPChannelBlock(p,a,b,c) (p)->lpVtbl->AssignPChannelBlock(p,a,b,c) |
| 1285 | #define IDirectMusicPerformance8_AssignPChannel(p,a,b,c,d) (p)->lpVtbl->AssignPChannel(p,a,b,c,d) |
| 1286 | #define IDirectMusicPerformance8_PChannelInfo(p,a,b,c,d) (p)->lpVtbl->PChannelInfo(p,a,b,c,d) |
| 1287 | #define IDirectMusicPerformance8_DownloadInstrument(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DownloadInstrument(p,a,b,c,d,e,f,g,h) |
| 1288 | #define IDirectMusicPerformance8_Invalidate(p,a,b) (p)->lpVtbl->Invalidate(p,a,b) |
| 1289 | #define IDirectMusicPerformance8_GetParam(p,a,b,c,d,e,f) (p)->lpVtbl->GetParam(p,a,b,c,d,e,f) |
| 1290 | #define IDirectMusicPerformance8_SetParam(p,a,b,c,d,e) (p)->lpVtbl->SetParam(p,a,b,c,d,e) |
| 1291 | #define IDirectMusicPerformance8_GetGlobalParam(p,a,b,c) (p)->lpVtbl->GetGlobalParam(p,a,b,c) |
| 1292 | #define IDirectMusicPerformance8_SetGlobalParam(p,a,b,c) (p)->lpVtbl->SetGlobalParam(p,a,b,c) |
| 1293 | #define IDirectMusicPerformance8_GetLatencyTime(p,a) (p)->lpVtbl->GetLatencyTime(p,a) |
| 1294 | #define IDirectMusicPerformance8_GetQueueTime(p,a) (p)->lpVtbl->GetQueueTime(p,a) |
| 1295 | #define IDirectMusicPerformance8_AdjustTime(p,a) (p)->lpVtbl->AdjustTime(p,a) |
| 1296 | #define IDirectMusicPerformance8_CloseDown(p) (p)->lpVtbl->CloseDown(p) |
| 1297 | #define IDirectMusicPerformance8_GetResolvedTime(p,a,b,c) (p)->lpVtbl->GetResolvedTime(p,a,b,c) |
| 1298 | #define IDirectMusicPerformance8_MIDIToMusic(p,a,b,c,d,e) (p)->lpVtbl->MIDIToMusic(p,a,b,c,d,e) |
| 1299 | #define IDirectMusicPerformance8_MusicToMIDI(p,a,b,c,d,e) (p)->lpVtbl->MusicToMIDI(p,a,b,c,d,e) |
| 1300 | #define IDirectMusicPerformance8_TimeToRhythm(p,a,b,c,d,e,f) (p)->lpVtbl->TimeToRhythm(p,a,b,c,d,e,f) |
| 1301 | #define IDirectMusicPerformance8_RhythmToTime(p,a,b,c,d,e,f) (p)->lpVtbl->RhythmToTime(p,a,b,c,d,e,f) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1302 | /* IDirectMusicPerformance8 methods*/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1303 | #define IDirectMusicPerformance8_InitAudio(p,a,b,c,d,e,f,g) (p)->lpVtbl->InitAudio(p,a,b,c,d,e,f,g) |
| 1304 | #define IDirectMusicPerformance8_PlaySegmentEx(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->PlaySegmentEx(p,a,b,c,d,e,f,g,h) |
| 1305 | #define IDirectMusicPerformance8_StopEx(p,a,b,c) (p)->lpVtbl->StopEx(p,a,b,c) |
| 1306 | #define IDirectMusicPerformance8_ClonePMsg(p,a,b) (p)->lpVtbl->ClonePMsg(p,a,b) |
| 1307 | #define IDirectMusicPerformance8_CreateAudioPath(p,a,b,c) (p)->lpVtbl->CreateAudioPath(p,a,b,c) |
| 1308 | #define IDirectMusicPerformance8_CreateStandardAudioPath(p,a,b,c,d) (p)->lpVtbl->CreateStandardAudioPath(p,a,b,c,d) |
| 1309 | #define IDirectMusicPerformance8_SetDefaultAudioPath(p,a) (p)->lpVtbl->SetDefaultAudioPath(p,a) |
| 1310 | #define IDirectMusicPerformance8_GetDefaultAudioPath(p,a) (p)->lpVtbl->GetDefaultAudioPath(p,a) |
| 1311 | #define IDirectMusicPerformance8_GetParamEx(p,a,b,c,d,e,f,g) (p)->lpVtbl->GetParamEx(p,a,b,c,d,e,f,g) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1312 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1313 | |
| 1314 | |
| 1315 | /***************************************************************************** |
| 1316 | * IDirectMusicGraph interface |
| 1317 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1318 | #undef INTERFACE |
| 1319 | #define INTERFACE IDirectMusicGraph |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1320 | #define IDirectMusicGraph_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 1321 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1322 | STDMETHOD(StampPMsg)(THIS_ DMUS_PMSG *pPMSG) PURE; \ |
| 1323 | STDMETHOD(InsertTool)(THIS_ IDirectMusicTool *pTool, DWORD *pdwPChannels, DWORD cPChannels, LONG lIndex) PURE; \ |
| 1324 | STDMETHOD(GetTool)(THIS_ DWORD dwIndex, IDirectMusicTool **ppTool) PURE; \ |
| 1325 | STDMETHOD(RemoveTool)(THIS_ IDirectMusicTool *pTool) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1326 | ICOM_DEFINE(IDirectMusicGraph,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1327 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1328 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1329 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1330 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1331 | #define IDirectMusicGraph_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1332 | #define IDirectMusicGraph_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1333 | #define IDirectMusicGraph_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1334 | /*** IDirectMusicGraph methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1335 | #define IDirectMusicGraph_StampPMsg(p,a) (p)->lpVtbl->StampPMsg(p,a) |
| 1336 | #define IDirectMusicGraph_InsertTool(p,a,b,c,d) (p)->lpVtbl->InsertTool(p,a,b,c,d) |
| 1337 | #define IDirectMusicGraph_GetTool(p,a,b) (p)->lpVtbl->GetTool(p,a,b) |
| 1338 | #define IDirectMusicGraph_RemoveTool(p,a) (p)->lpVtbl->RemoveTool(p,a) |
| 1339 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1340 | |
| 1341 | |
| 1342 | /***************************************************************************** |
| 1343 | * IDirectMusicStyle interface |
| 1344 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1345 | #undef INTERFACE |
| 1346 | #define INTERFACE IDirectMusicStyle |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1347 | #define IDirectMusicStyle_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 1348 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1349 | STDMETHOD(GetBand)(THIS_ WCHAR *pwszName, IDirectMusicBand **ppBand) PURE; \ |
| 1350 | STDMETHOD(EnumBand)(THIS_ DWORD dwIndex, WCHAR *pwszName) PURE; \ |
| 1351 | STDMETHOD(GetDefaultBand)(THIS_ IDirectMusicBand **ppBand) PURE; \ |
| 1352 | STDMETHOD(EnumMotif)(THIS_ DWORD dwIndex, WCHAR *pwszName) PURE; \ |
| 1353 | STDMETHOD(GetMotif)(THIS_ WCHAR *pwszName, IDirectMusicSegment **ppSegment) PURE; \ |
| 1354 | STDMETHOD(GetDefaultChordMap)(THIS_ IDirectMusicChordMap **ppChordMap) PURE; \ |
| 1355 | STDMETHOD(EnumChordMap)(THIS_ DWORD dwIndex, WCHAR *pwszName) PURE; \ |
| 1356 | STDMETHOD(GetChordMap)(THIS_ WCHAR *pwszName, IDirectMusicChordMap **ppChordMap) PURE; \ |
| 1357 | STDMETHOD(GetTimeSignature)(THIS_ DMUS_TIMESIGNATURE *pTimeSig) PURE; \ |
| 1358 | STDMETHOD(GetEmbellishmentLength)(THIS_ DWORD dwType, DWORD dwLevel, DWORD *pdwMin, DWORD *pdwMax) PURE; \ |
| 1359 | STDMETHOD(GetTempo)(THIS_ double *pTempo) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1360 | ICOM_DEFINE(IDirectMusicStyle,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1361 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1362 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1363 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1364 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1365 | #define IDirectMusicStyle_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1366 | #define IDirectMusicStyle_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1367 | #define IDirectMusicStyle_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1368 | /*** IDirectMusicStyle methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1369 | #define IDirectMusicStyle_GetBand(p,a,b) (p)->lpVtbl->GetBand(p,a,b) |
| 1370 | #define IDirectMusicStyle_EnumBand(p,a,b) (p)->lpVtbl->EnumBand(p,a,b) |
| 1371 | #define IDirectMusicStyle_GetDefaultBand(p,a) (p)->lpVtbl->GetDefaultBand(p,a) |
| 1372 | #define IDirectMusicStyle_EnumMotif(p,a,b) (p)->lpVtbl->EnumMotif(p,a,b) |
| 1373 | #define IDirectMusicStyle_GetMotif(p,a,b) (p)->lpVtbl->GetMotif(p,a,b) |
| 1374 | #define IDirectMusicStyle_GetDefaultChordMap(p,a) (p)->lpVtbl->GetDefaultChordMap(p,a) |
| 1375 | #define IDirectMusicStyle_EnumChordMap(p,a,b) (p)->lpVtbl->EnumChordMap(p,a,b) |
| 1376 | #define IDirectMusicStyle_GetChordMap(p,a,b) (p)->lpVtbl->GetChordMap(p,a,b) |
| 1377 | #define IDirectMusicStyle_GetTimeSignature(p,a) (p)->lpVtbl->GetTimeSignature(p,a) |
| 1378 | #define IDirectMusicStyle_GetEmbellishmentLength(p,a,b,c,d) (p)->lpVtbl->GetEmbellishmentLength(p,a,b,c,d) |
| 1379 | #define IDirectMusicStyle_GetTempo(p,a) (p)->lpVtbl->GetTempo(p,a) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1380 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1381 | |
| 1382 | |
| 1383 | /***************************************************************************** |
| 1384 | * IDirectMusicStyle8 interface |
| 1385 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1386 | #undef INTERFACE |
| 1387 | #define INTERFACE IDirectMusicStyle8 |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1388 | #define IDirectMusicStyle8_METHODS \ |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1389 | IDirectMusicStyle_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 1390 | STDMETHOD(EnumPattern)(THIS_ DWORD dwIndex, DWORD dwPatternType, WCHAR *pwszName) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1391 | ICOM_DEFINE(IDirectMusicStyle8,IDirectMusicStyle) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1392 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1393 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1394 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1395 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1396 | #define IDirectMusicStyle8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1397 | #define IDirectMusicStyle8_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1398 | #define IDirectMusicStyle8_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1399 | /*** IDirectMusicStyle methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1400 | #define IDirectMusicStyle8_GetBand(p,a,b) (p)->lpVtbl->GetBand(p,a,b) |
| 1401 | #define IDirectMusicStyle8_EnumBand(p,a,b) (p)->lpVtbl->EnumBand(p,a,b) |
| 1402 | #define IDirectMusicStyle8_GetDefaultBand(p,a) (p)->lpVtbl->GetDefaultBand(p,a) |
| 1403 | #define IDirectMusicStyle8_EnumMotif(p,a,b) (p)->lpVtbl->EnumMotif(p,a,b) |
| 1404 | #define IDirectMusicStyle8_GetMotif(p,a,b) (p)->lpVtbl->GetMotif(p,a,b) |
| 1405 | #define IDirectMusicStyle8_GetDefaultChordMap(p,a) (p)->lpVtbl->GetDefaultChordMap(p,a) |
| 1406 | #define IDirectMusicStyle8_EnumChordMap(p,a,b) (p)->lpVtbl->EnumChordMap(p,a,b) |
| 1407 | #define IDirectMusicStyle8_GetChordMap(p,a,b) (p)->lpVtbl->GetChordMap(p,a,b) |
| 1408 | #define IDirectMusicStyle8_GetTimeSignature(p,a) (p)->lpVtbl->GetTimeSignature(p,a) |
| 1409 | #define IDirectMusicStyle8_GetEmbellishmentLength(p,a,b,c,d) (p)->lpVtbl->GetEmbellishmentLength(p,a,b,c,d) |
| 1410 | #define IDirectMusicStyle8_GetTempo(p,a) (p)->lpVtbl->GetTempo(p,a) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1411 | /*** IDirectMusicStyle8 methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1412 | #define IDirectMusicStyle8_EnumPattern(p,a,b,c) (p)->lpVtbl->EnumPattern(p,a,b,c) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1413 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1414 | |
| 1415 | |
| 1416 | /***************************************************************************** |
| 1417 | * IDirectMusicChordMap interface |
| 1418 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1419 | #undef INTERFACE |
| 1420 | #define INTERFACE IDirectMusicChordMap |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1421 | #define IDirectMusicChordMap_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 1422 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1423 | STDMETHOD(GetScale)(THIS_ DWORD *pdwScale) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1424 | ICOM_DEFINE(IDirectMusicChordMap,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1425 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1426 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1427 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1428 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1429 | #define IDirectMusicChordMap_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1430 | #define IDirectMusicChordMap_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1431 | #define IDirectMusicChordMap_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1432 | /*** IDirectMusicChordMap methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1433 | #define IDirectMusicChordMap_GetScale(p,a) (p)->lpVtbl->GetScale(p,a) |
| 1434 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1435 | |
| 1436 | |
| 1437 | /***************************************************************************** |
| 1438 | * IDirectMusicComposer interface |
| 1439 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1440 | #undef INTERFACE |
| 1441 | #define INTERFACE IDirectMusicComposer |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1442 | #define IDirectMusicComposer_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 1443 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1444 | STDMETHOD(ComposeSegmentFromTemplate)(THIS_ IDirectMusicStyle *pStyle, IDirectMusicSegment *pTemplate, WORD wActivity, IDirectMusicChordMap *pChordMap, IDirectMusicSegment **ppSegment) PURE; \ |
| 1445 | STDMETHOD(ComposeSegmentFromShape)(THIS_ IDirectMusicStyle *pStyle, WORD wNumMeasures, WORD wShape, WORD wActivity, BOOL fIntro, BOOL fEnd, IDirectMusicChordMap *pChordMap, IDirectMusicSegment **ppSegment) PURE; \ |
| 1446 | STDMETHOD(ComposeTransition)(THIS_ IDirectMusicSegment *pFromSeg, IDirectMusicSegment *pToSeg, MUSIC_TIME mtTime, WORD wCommand, DWORD dwFlags, IDirectMusicChordMap *pChordMap, IDirectMusicSegment **ppTransSeg) PURE; \ |
| 1447 | STDMETHOD(AutoTransition)(THIS_ IDirectMusicPerformance *pPerformance, IDirectMusicSegment *pToSeg, WORD wCommand, DWORD dwFlags, IDirectMusicChordMap *pChordMap, IDirectMusicSegment **ppTransSeg, IDirectMusicSegmentState **ppToSegState, IDirectMusicSegmentState **ppTransSegState) PURE; \ |
| 1448 | STDMETHOD(ComposeTemplateFromShape)(THIS_ WORD wNumMeasures, WORD wShape, BOOL fIntro, BOOL fEnd, WORD wEndLength, IDirectMusicSegment **ppTemplate) PURE; \ |
| 1449 | STDMETHOD(ChangeChordMap)(THIS_ IDirectMusicSegment *pSegment, BOOL fTrackScale, IDirectMusicChordMap *pChordMap) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1450 | ICOM_DEFINE(IDirectMusicComposer,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1451 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1452 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1453 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1454 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1455 | #define IDirectMusicComposer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1456 | #define IDirectMusicComposer_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1457 | #define IDirectMusicComposer_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1458 | /*** IDirectMusicComposer methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1459 | #define IDirectMusicComposer_ComposeSegmentFromTemplate(p,a,b,c,d,e) (p)->lpVtbl->ComposeSegmentFromTemplate(p,a,b,c,d,e) |
| 1460 | #define IDirectMusicComposer_ComposeSegmentFromShape(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->ComposeSegmentFromShape(p,a,b,c,d,e,f,g,h) |
| 1461 | #define IDirectMusicComposer_ComposeTransition(p,a,b,c,d,e,f,g) (p)->lpVtbl->ComposeTransition(p,a,b,c,d,e,f,g) |
| 1462 | #define IDirectMusicComposer_AutoTransition(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->AutoTransition(p,a,b,c,d,e,f,g,h) |
| 1463 | #define IDirectMusicComposer_ComposeTemplateFromShape(p,a,b,c,d,e,f) (p)->lpVtbl->ComposeTemplateFromShape(p,a,b,c,d,e,f) |
| 1464 | #define IDirectMusicComposer_ChangeChordMap(p,a,b,c) (p)->lpVtbl->ChangeChordMap(p,a,b,c) |
| 1465 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1466 | |
| 1467 | |
| 1468 | /***************************************************************************** |
| 1469 | * IDirectMusicPatternTrack interface |
| 1470 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1471 | #undef INTERFACE |
| 1472 | #define INTERFACE IDirectMusicPatternTrack |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1473 | #define IDirectMusicPatternTrack_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 1474 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1475 | STDMETHOD(CreateSegment)(THIS_ IDirectMusicStyle *pStyle, IDirectMusicSegment **ppSegment) PURE; \ |
| 1476 | STDMETHOD(SetVariation)(THIS_ IDirectMusicSegmentState *pSegState, DWORD dwVariationFlags, DWORD dwPart) PURE; \ |
| 1477 | STDMETHOD(SetPatternByName)(THIS_ IDirectMusicSegmentState *pSegState, WCHAR *wszName, IDirectMusicStyle *pStyle, DWORD dwPatternType, DWORD *pdwLength) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1478 | ICOM_DEFINE(IDirectMusicPatternTrack,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1479 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1480 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1481 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1482 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1483 | #define IDirectMusicPatternTrack_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1484 | #define IDirectMusicPatternTrack_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1485 | #define IDirectMusicPatternTrack_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1486 | /*** IDirectMusicPatternTrack methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1487 | #define IDirectMusicPatternTrack_CreateSegment(p,a,b) (p)->lpVtbl->CreateSegment(p,a,b) |
| 1488 | #define IDirectMusicPatternTrack_SetVariation(p,a,b,c) (p)->lpVtbl->SetVariation(p,a,b,c) |
| 1489 | #define IDirectMusicPatternTrack_SetPatternByName(p,a,b,c,d,e) (p)->lpVtbl->SetPatternByName(p,a,b,c,d,e) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1490 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1491 | |
| 1492 | |
| 1493 | /***************************************************************************** |
| 1494 | * IDirectMusicScript interface |
| 1495 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1496 | #undef INTERFACE |
| 1497 | #define INTERFACE IDirectMusicScript |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1498 | #define IDirectMusicScript_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 1499 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1500 | STDMETHOD(Init)(THIS_ IDirectMusicPerformance *pPerformance, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \ |
| 1501 | STDMETHOD(CallRoutine)(THIS_ WCHAR *pwszRoutineName, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \ |
| 1502 | STDMETHOD(SetVariableVariant)(THIS_ WCHAR *pwszVariableName, VARIANT varValue, BOOL fSetRef, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \ |
| 1503 | STDMETHOD(GetVariableVariant)(THIS_ WCHAR *pwszVariableName, VARIANT *pvarValue, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \ |
| 1504 | STDMETHOD(SetVariableNumber)(THIS_ WCHAR *pwszVariableName, LONG lValue, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \ |
| 1505 | STDMETHOD(GetVariableNumber)(THIS_ WCHAR *pwszVariableName, LONG *plValue, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \ |
| 1506 | STDMETHOD(SetVariableObject)(THIS_ WCHAR *pwszVariableName, IUnknown *punkValue, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \ |
| 1507 | STDMETHOD(GetVariableObject)(THIS_ WCHAR *pwszVariableName, REFIID riid, LPVOID *ppv, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; \ |
| 1508 | STDMETHOD(EnumRoutine)(THIS_ DWORD dwIndex, WCHAR *pwszName) PURE; \ |
| 1509 | STDMETHOD(EnumVariable)(THIS_ DWORD dwIndex, WCHAR *pwszName) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1510 | ICOM_DEFINE(IDirectMusicScript,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1511 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1512 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1513 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1514 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1515 | #define IDirectMusicScript_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1516 | #define IDirectMusicScript_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1517 | #define IDirectMusicScript_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1518 | /*** IDirectMusicScript methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1519 | #define IDirectMusicPatternTrack_Init(p,a,b) (p)->lpVtbl->Init(p,a,b) |
| 1520 | #define IDirectMusicPatternTrack_CallRoutine(p,a,b) (p)->lpVtbl->CallRoutine(p,a,b) |
| 1521 | #define IDirectMusicPatternTrack_SetVariableVariant(p,a,b,c,d) (p)->lpVtbl->SetVariableVariant(p,a,b,c,d) |
| 1522 | #define IDirectMusicPatternTrack_GetVariableVariant(p,a,b,c) (p)->lpVtbl->GetVariableVariant(p,a,b,c) |
| 1523 | #define IDirectMusicPatternTrack_SetVariableNumber(p,a,b,c) (p)->lpVtbl->SetVariableNumber(p,a,b,c) |
| 1524 | #define IDirectMusicPatternTrack_GetVariableNumber(p,a,b,c) (p)->lpVtbl->GetVariableNumber(p,a,b,c) |
| 1525 | #define IDirectMusicPatternTrack_SetVariableObject(p,a,b,c) (p)->lpVtbl->SetVariableObject(p,a,b,c) |
| 1526 | #define IDirectMusicPatternTrack_GetVariableObject(p,a,b,c,d) (p)->lpVtbl->GetVariableObject(p,a,b,c,d) |
| 1527 | #define IDirectMusicPatternTrack_EnumRoutine(p,a,b) (p)->lpVtbl->EnumRoutine(p,a,b) |
| 1528 | #define IDirectMusicPatternTrack_EnumVariable(p,a,b) (p)->lpVtbl->EnumVariable(p,a,b) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1529 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1530 | |
| 1531 | |
| 1532 | /***************************************************************************** |
| 1533 | * IDirectMusicContainer interface |
| 1534 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1535 | #undef INTERFACE |
| 1536 | #define INTERFACE IDirectMusicContainer |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1537 | #define IDirectMusicContainer_METHODS \ |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 1538 | IUnknown_METHODS \ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1539 | STDMETHOD(EnumObject)(THIS_ REFGUID rguidClass, DWORD dwIndex, LPDMUS_OBJECTDESC pDesc, WCHAR *pwszAlias) PURE; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1540 | ICOM_DEFINE(IDirectMusicContainer,IUnknown) |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 1541 | #undef INTERFACE |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1542 | |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1543 | #ifdef COBJMACROS |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1544 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1545 | #define IDirectMusicContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1546 | #define IDirectMusicContainer_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1547 | #define IDirectMusicContainer_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1548 | /*** IDirectMusicContainer methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1549 | #define IDirectMusicContainer_EnumObject(p,a,b,c,d) (p)->lpVtbl->EnumObject(p,a,b,c,d) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 1550 | #endif |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1551 | |
| 1552 | |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1553 | #ifdef __cplusplus |
| 1554 | } |
| 1555 | #endif |
| 1556 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 1557 | #include <poppack.h> |
| 1558 | |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 1559 | #endif /* __WINE_DMUSIC_PERFORMANCE_H */ |