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