VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/dmusici.h@ 19982

Last change on this file since 19982 was 19678, checked in by vboxsync, 16 years ago

opengl: update wine to 1.1.21, add d3d9.dll to build list

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette