dmusici.h 94 KB

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