diff --git a/configure b/configure index af395651a2a..9f9925e7c6c 100755 --- a/configure +++ b/configure @@ -15932,7 +15932,7 @@ MAKE_TEST_RULES=dlls/Maketest.rules MAKE_PROG_RULES=programs/Makeprog.rules - ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmusic/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrtd/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile miscemu/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile" + ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrtd/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile miscemu/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile" cat >confcache <<\_ACEOF @@ -16487,9 +16487,18 @@ do "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;; + "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;; + "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;; + "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;; + "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;; + "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;; + "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;; + "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;; "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;; + "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;; "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; + "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;; "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;; "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; diff --git a/configure.ac b/configure.ac index 0030b1f8f0f..97255bd0982 100644 --- a/configure.ac +++ b/configure.ac @@ -1371,9 +1371,18 @@ dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile +dlls/dmband/Makefile +dlls/dmcompos/Makefile +dlls/dmime/Makefile +dlls/dmloader/Makefile +dlls/dmscript/Makefile +dlls/dmstyle/Makefile +dlls/dmsynth/Makefile dlls/dmusic/Makefile +dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile +dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile diff --git a/dlls/Makefile.in b/dlls/Makefile.in index 96b95991ed8..c72d37dfd7e 100644 --- a/dlls/Makefile.in +++ b/dlls/Makefile.in @@ -30,9 +30,18 @@ BASEDIRS = \ devenum \ dinput \ dinput8 \ + dmband \ + dmcompos \ + dmime \ + dmloader \ + dmscript \ + dmstyle \ + dmsynth \ dmusic \ + dmusic32 \ dplay \ dplayx \ + dpnhpast \ dsound \ gdi \ icmp \ @@ -199,9 +208,18 @@ all: \ devenum.dll$(DLLEXT) \ dinput.dll$(DLLEXT) \ dinput8.dll$(DLLEXT) \ + dmband.dll$(DLLEXT) \ + dmcompos.dll$(DLLEXT) \ + dmime.dll$(DLLEXT) \ + dmloader.dll$(DLLEXT) \ + dmscript.dll$(DLLEXT) \ + dmstyle.dll$(DLLEXT) \ + dmsynth.dll$(DLLEXT) \ dmusic.dll$(DLLEXT) \ + dmusic32.dll$(DLLEXT) \ dplay.dll$(DLLEXT) \ dplayx.dll$(DLLEXT) \ + dpnhpast.dll$(DLLEXT) \ dsound.dll$(DLLEXT) \ gdi32.dll$(DLLEXT) \ icmp.dll$(DLLEXT) \ @@ -339,15 +357,42 @@ dinput.dll$(DLLEXT): dinput/dinput.dll$(DLLEXT) dinput8.dll$(DLLEXT): dinput8/dinput8.dll$(DLLEXT) $(RM) $@ && $(LN_S) dinput8/dinput8.dll$(DLLEXT) $@ +dmband.dll$(DLLEXT): dmband/dmband.dll$(DLLEXT) + $(RM) $@ && $(LN_S) dmband/dmband.dll$(DLLEXT) $@ + +dmcompos.dll$(DLLEXT): dmcompos/dmcompos.dll$(DLLEXT) + $(RM) $@ && $(LN_S) dmcompos/dmcompos.dll$(DLLEXT) $@ + +dmime.dll$(DLLEXT): dmime/dmime.dll$(DLLEXT) + $(RM) $@ && $(LN_S) dmime/dmime.dll$(DLLEXT) $@ + +dmloader.dll$(DLLEXT): dmloader/dmloader.dll$(DLLEXT) + $(RM) $@ && $(LN_S) dmloader/dmloader.dll$(DLLEXT) $@ + +dmscript.dll$(DLLEXT): dmscript/dmscript.dll$(DLLEXT) + $(RM) $@ && $(LN_S) dmscript/dmscript.dll$(DLLEXT) $@ + +dmstyle.dll$(DLLEXT): dmstyle/dmstyle.dll$(DLLEXT) + $(RM) $@ && $(LN_S) dmstyle/dmstyle.dll$(DLLEXT) $@ + +dmsynth.dll$(DLLEXT): dmsynth/dmsynth.dll$(DLLEXT) + $(RM) $@ && $(LN_S) dmsynth/dmsynth.dll$(DLLEXT) $@ + dmusic.dll$(DLLEXT): dmusic/dmusic.dll$(DLLEXT) $(RM) $@ && $(LN_S) dmusic/dmusic.dll$(DLLEXT) $@ +dmusic32.dll$(DLLEXT): dmusic32/dmusic32.dll$(DLLEXT) + $(RM) $@ && $(LN_S) dmusic32/dmusic32.dll$(DLLEXT) $@ + dplay.dll$(DLLEXT): dplay/dplay.dll$(DLLEXT) $(RM) $@ && $(LN_S) dplay/dplay.dll$(DLLEXT) $@ dplayx.dll$(DLLEXT): dplayx/dplayx.dll$(DLLEXT) $(RM) $@ && $(LN_S) dplayx/dplayx.dll$(DLLEXT) $@ +dpnhpast.dll$(DLLEXT): dpnhpast/dpnhpast.dll$(DLLEXT) + $(RM) $@ && $(LN_S) dpnhpast/dpnhpast.dll$(DLLEXT) $@ + dsound.dll$(DLLEXT): dsound/dsound.dll$(DLLEXT) $(RM) $@ && $(LN_S) dsound/dsound.dll$(DLLEXT) $@ @@ -625,9 +670,18 @@ IMPORT_LIBS = \ libdevenum \ libdinput \ libdinput8 \ + libdmband \ + libdmcompos \ + libdmime \ + libdmloader \ + libdmscript \ + libdmstyle \ + libdmsynth \ libdmusic \ + libdmusic32 \ libdplay \ libdplayx \ + libdpnhpast \ libdsound \ libgdi32 \ libglu32 \ @@ -783,11 +837,51 @@ libdinput8.def: dinput8/dinput8.spec.def libdinput8.a: dinput8/dinput8.spec.def $(DLLTOOL) -k -l $@ -d dinput8/dinput8.spec.def +libdmband.def: dmband/dmband.spec.def + $(RM) $@ && $(LN_S) dmband/dmband.spec.def $@ +libdmband.a: dmband/dmband.spec.def + $(DLLTOOL) -k -l $@ -d dmband/dmband.spec.def + +libdmcompos.def: dmcompos/dmcompos.spec.def + $(RM) $@ && $(LN_S) dmcompos/dmcompos.spec.def $@ +libdmcompos.a: dmcompos/dmcompos.spec.def + $(DLLTOOL) -k -l $@ -d dmcompos/dmcompos.spec.def + +libdmime.def: dmime/dmime.spec.def + $(RM) $@ && $(LN_S) dmime/dmime.spec.def $@ +libdmime.a: dmime/dmime.spec.def + $(DLLTOOL) -k -l $@ -d dmime/dmime.spec.def + +libdmloader.def: dmloader/dmloader.spec.def + $(RM) $@ && $(LN_S) dmloader/dmloader.spec.def $@ +libdmloader.a: dmloader/dmloader.spec.def + $(DLLTOOL) -k -l $@ -d dmloader/dmloader.spec.def + +libdmscript.def: dmscript/dmscript.spec.def + $(RM) $@ && $(LN_S) dmscript/dmscript.spec.def $@ +libdmscript.a: dmscript/dmscript.spec.def + $(DLLTOOL) -k -l $@ -d dmscript/dmscript.spec.def + +libdmstyle.def: dmstyle/dmstyle.spec.def + $(RM) $@ && $(LN_S) dmstyle/dmstyle.spec.def $@ +libdmstyle.a: dmstyle/dmstyle.spec.def + $(DLLTOOL) -k -l $@ -d dmstyle/dmstyle.spec.def + +libdmsynth.def: dmsynth/dmsynth.spec.def + $(RM) $@ && $(LN_S) dmsynth/dmsynth.spec.def $@ +libdmsynth.a: dmsynth/dmsynth.spec.def + $(DLLTOOL) -k -l $@ -d dmsynth/dmsynth.spec.def + libdmusic.def: dmusic/dmusic.spec.def $(RM) $@ && $(LN_S) dmusic/dmusic.spec.def $@ libdmusic.a: dmusic/dmusic.spec.def $(DLLTOOL) -k -l $@ -d dmusic/dmusic.spec.def +libdmusic32.def: dmusic32/dmusic32.spec.def + $(RM) $@ && $(LN_S) dmusic32/dmusic32.spec.def $@ +libdmusic32.a: dmusic32/dmusic32.spec.def + $(DLLTOOL) -k -l $@ -d dmusic32/dmusic32.spec.def + libdplay.def: dplay/dplay.spec.def $(RM) $@ && $(LN_S) dplay/dplay.spec.def $@ libdplay.a: dplay/dplay.spec.def @@ -798,6 +892,11 @@ libdplayx.def: dplayx/dplayx.spec.def libdplayx.a: dplayx/dplayx.spec.def $(DLLTOOL) -k -l $@ -d dplayx/dplayx.spec.def +libdpnhpast.def: dpnhpast/dpnhpast.spec.def + $(RM) $@ && $(LN_S) dpnhpast/dpnhpast.spec.def $@ +libdpnhpast.a: dpnhpast/dpnhpast.spec.def + $(DLLTOOL) -k -l $@ -d dpnhpast/dpnhpast.spec.def + libdsound.def: dsound/dsound.spec.def $(RM) $@ && $(LN_S) dsound/dsound.spec.def $@ libdsound.a: dsound/dsound.spec.def @@ -1136,9 +1235,18 @@ ddraw/ddraw.spec.def: $(WINEBUILD) devenum/devenum.spec.def: $(WINEBUILD) dinput/dinput.spec.def: $(WINEBUILD) dinput8/dinput8.spec.def: $(WINEBUILD) +dmband/dmband.spec.def: $(WINEBUILD) +dmcompos/dmcompos.spec.def: $(WINEBUILD) +dmime/dmime.spec.def: $(WINEBUILD) +dmloader/dmloader.spec.def: $(WINEBUILD) +dmscript/dmscript.spec.def: $(WINEBUILD) +dmstyle/dmstyle.spec.def: $(WINEBUILD) +dmsynth/dmsynth.spec.def: $(WINEBUILD) dmusic/dmusic.spec.def: $(WINEBUILD) +dmusic32/dmusic32.spec.def: $(WINEBUILD) dplay/dplay.spec.def: $(WINEBUILD) dplayx/dplayx.spec.def: $(WINEBUILD) +dpnhpast/dpnhpast.spec.def: $(WINEBUILD) dsound/dsound.spec.def: $(WINEBUILD) gdi/gdi32.spec.def: $(WINEBUILD) glu32/glu32.spec.def: $(WINEBUILD) @@ -1227,9 +1335,18 @@ ddraw/ddraw.dll$(DLLEXT): ddraw devenum/devenum.dll$(DLLEXT): devenum dinput/dinput.dll$(DLLEXT): dinput dinput8/dinput8.dll$(DLLEXT): dinput8 +dmband/dmband.dll$(DLLEXT): dmband +dmcompos/dmcompos.dll$(DLLEXT): dmcompos +dmime/dmime.dll$(DLLEXT): dmime +dmloader/dmloader.dll$(DLLEXT): dmloader +dmscript/dmscript.dll$(DLLEXT): dmscript +dmstyle/dmstyle.dll$(DLLEXT): dmstyle +dmsynth/dmsynth.dll$(DLLEXT): dmsynth dmusic/dmusic.dll$(DLLEXT): dmusic +dmusic32/dmusic32.dll$(DLLEXT): dmusic32 dplay/dplay.dll$(DLLEXT): dplay dplayx/dplayx.dll$(DLLEXT): dplayx +dpnhpast/dpnhpast.dll$(DLLEXT): dpnhpast dsound/dsound.dll$(DLLEXT): dsound gdi/gdi32.dll$(DLLEXT): gdi glu32/glu32.dll$(DLLEXT): glu32 @@ -1334,9 +1451,18 @@ ddraw/__install__: ddraw.dll$(DLLEXT) devenum/__install__: devenum.dll$(DLLEXT) dinput/__install__: dinput.dll$(DLLEXT) dinput8/__install__: dinput8.dll$(DLLEXT) +dmband/__install__: dmband.dll$(DLLEXT) +dmcompos/__install__: dmcompos.dll$(DLLEXT) +dmime/__install__: dmime.dll$(DLLEXT) +dmloader/__install__: dmloader.dll$(DLLEXT) +dmscript/__install__: dmscript.dll$(DLLEXT) +dmstyle/__install__: dmstyle.dll$(DLLEXT) +dmsynth/__install__: dmsynth.dll$(DLLEXT) dmusic/__install__: dmusic.dll$(DLLEXT) +dmusic32/__install__: dmusic32.dll$(DLLEXT) dplay/__install__: dplay.dll$(DLLEXT) dplayx/__install__: dplayx.dll$(DLLEXT) +dpnhpast/__install__: dpnhpast.dll$(DLLEXT) dsound/__install__: dsound.dll$(DLLEXT) gdi/__install__: gdi32.dll$(DLLEXT) glu32/__install__: glu32.dll$(DLLEXT) diff --git a/dlls/dmband/.cvsignore b/dlls/dmband/.cvsignore new file mode 100644 index 00000000000..217102fe74d --- /dev/null +++ b/dlls/dmband/.cvsignore @@ -0,0 +1,5 @@ +Makefile +dmband.dll.dbg.c +dmband.spec.c +dmband.spec.def +version.res diff --git a/dlls/dmband/Makefile.in b/dlls/dmband/Makefile.in new file mode 100644 index 00000000000..4812cccb90f --- /dev/null +++ b/dlls/dmband/Makefile.in @@ -0,0 +1,18 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = dmband.dll +IMPORTS = dmusic kernel32 + +LDDLLFLAGS = @LDDLLFLAGS@ +SYMBOLFILE = $(MODULE).tmp.o + +C_SRCS = \ + dmband_main.c + +RC_SRCS = version.rc + +@MAKE_DLL_RULES@ + +### Dependencies: diff --git a/dlls/dmband/dmband.spec b/dlls/dmband/dmband.spec new file mode 100644 index 00000000000..3d091d1afff --- /dev/null +++ b/dlls/dmband/dmband.spec @@ -0,0 +1,6 @@ +# Linked to main dmusic.dll for easier implementation + +1 stdcall DllCanUnloadNow() dmusic.DllCanUnloadNow +2 stdcall DllGetClassObject(long long ptr) dmusic.DllGetClassObject +3 stdcall DllRegisterServer() dmusic.DllRegisterServer +4 stdcall DllUnregisterServer() dmusic.DllUnregisterServer diff --git a/dlls/dmband/dmband_main.c b/dlls/dmband/dmband_main.c new file mode 100644 index 00000000000..67a01ed518c --- /dev/null +++ b/dlls/dmband/dmband_main.c @@ -0,0 +1 @@ +/* nothing here yet */ diff --git a/dlls/dmband/version.rc b/dlls/dmband/version.rc new file mode 100644 index 00000000000..71c948a5965 --- /dev/null +++ b/dlls/dmband/version.rc @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2003 Rok Mandeljc + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#define WINE_FILEDESCRIPTION_STR "Wine DirectMusic Band" +#define WINE_FILENAME_STR "dmband.dll" +#define WINE_FILEVERSION 4,8,1,881 +#define WINE_FILEVERSION_STR "4.8.1.881" +#define WINE_PRODUCTVERSION 4,8,1,881 +#define WINE_PRODUCTVERSION_STR "4.8" +#define WINE_PRODUCTNAME_STR "DirectX" + +#include "wine/wine_common_ver.rc" diff --git a/dlls/dmcompos/.cvsignore b/dlls/dmcompos/.cvsignore new file mode 100644 index 00000000000..e413e81abd0 --- /dev/null +++ b/dlls/dmcompos/.cvsignore @@ -0,0 +1,5 @@ +Makefile +dmcompos.dll.dbg.c +dmcompos.spec.c +dmcompos.spec.def +version.res diff --git a/dlls/dmcompos/Makefile.in b/dlls/dmcompos/Makefile.in new file mode 100644 index 00000000000..5df8493b42d --- /dev/null +++ b/dlls/dmcompos/Makefile.in @@ -0,0 +1,18 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = dmcompos.dll +IMPORTS = dmusic kernel32 + +LDDLLFLAGS = @LDDLLFLAGS@ +SYMBOLFILE = $(MODULE).tmp.o + +C_SRCS = \ + dmcompos_main.c + +RC_SRCS = version.rc + +@MAKE_DLL_RULES@ + +### Dependencies: diff --git a/dlls/dmcompos/dmcompos.spec b/dlls/dmcompos/dmcompos.spec new file mode 100644 index 00000000000..7ac7be857a7 --- /dev/null +++ b/dlls/dmcompos/dmcompos.spec @@ -0,0 +1,6 @@ +# Linked to main dmusic.dll for easier implementation + +1 stdcall DllCanUnloadNow() dmusic.CanUnloadNow +2 stdcall DllGetClassObject(long long ptr) dmusic.DllGetClassObject +3 stdcall DllRegisterServer() dmusic.DllRegisterServer +4 stdcall DllUnregisterServer() dmusic.DllUnregisterServer diff --git a/dlls/dmcompos/dmcompos_main.c b/dlls/dmcompos/dmcompos_main.c new file mode 100644 index 00000000000..67a01ed518c --- /dev/null +++ b/dlls/dmcompos/dmcompos_main.c @@ -0,0 +1 @@ +/* nothing here yet */ diff --git a/dlls/dmcompos/version.rc b/dlls/dmcompos/version.rc new file mode 100644 index 00000000000..162e6f8fbe0 --- /dev/null +++ b/dlls/dmcompos/version.rc @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2003 Rok Mandeljc + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#define WINE_FILEDESCRIPTION_STR "Wine DirectMusic Composer" +#define WINE_FILENAME_STR "dmcompos.dll" +#define WINE_FILEVERSION 4,8,1,881 +#define WINE_FILEVERSION_STR "4.8.1.881" +#define WINE_PRODUCTVERSION 4,8,1,881 +#define WINE_PRODUCTVERSION_STR "4.8" +#define WINE_PRODUCTNAME_STR "DirectX" + +#include "wine/wine_common_ver.rc" diff --git a/dlls/dmime/.cvsignore b/dlls/dmime/.cvsignore new file mode 100644 index 00000000000..df8d7bde3f7 --- /dev/null +++ b/dlls/dmime/.cvsignore @@ -0,0 +1,5 @@ +Makefile +dmime.dll.dbg.c +dmime.spec.c +dmime.spec.def +version.res diff --git a/dlls/dmime/Makefile.in b/dlls/dmime/Makefile.in new file mode 100644 index 00000000000..d4b553d8c62 --- /dev/null +++ b/dlls/dmime/Makefile.in @@ -0,0 +1,18 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = dmime.dll +IMPORTS = dmusic kernel32 + +LDDLLFLAGS = @LDDLLFLAGS@ +SYMBOLFILE = $(MODULE).tmp.o + +C_SRCS = \ + dmime_main.c + +RC_SRCS = version.rc + +@MAKE_DLL_RULES@ + +### Dependencies: diff --git a/dlls/dmime/dmime.spec b/dlls/dmime/dmime.spec new file mode 100644 index 00000000000..3d091d1afff --- /dev/null +++ b/dlls/dmime/dmime.spec @@ -0,0 +1,6 @@ +# Linked to main dmusic.dll for easier implementation + +1 stdcall DllCanUnloadNow() dmusic.DllCanUnloadNow +2 stdcall DllGetClassObject(long long ptr) dmusic.DllGetClassObject +3 stdcall DllRegisterServer() dmusic.DllRegisterServer +4 stdcall DllUnregisterServer() dmusic.DllUnregisterServer diff --git a/dlls/dmime/dmime_main.c b/dlls/dmime/dmime_main.c new file mode 100644 index 00000000000..67a01ed518c --- /dev/null +++ b/dlls/dmime/dmime_main.c @@ -0,0 +1 @@ +/* nothing here yet */ diff --git a/dlls/dmime/version.rc b/dlls/dmime/version.rc new file mode 100644 index 00000000000..a885e996912 --- /dev/null +++ b/dlls/dmime/version.rc @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2003 Rok Mandeljc + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#define WINE_FILEDESCRIPTION_STR "Wine DirectMusic Interactive Engine" +#define WINE_FILENAME_STR "dmime.dll" +#define WINE_FILEVERSION 4,8,1,881 +#define WINE_FILEVERSION_STR "4.8.1.881" +#define WINE_PRODUCTVERSION 4,8,1,881 +#define WINE_PRODUCTVERSION_STR "4.8" +#define WINE_PRODUCTNAME_STR "DirectX" + +#include "wine/wine_common_ver.rc" diff --git a/dlls/dmloader/.cvsignore b/dlls/dmloader/.cvsignore new file mode 100644 index 00000000000..d7d25a1e89c --- /dev/null +++ b/dlls/dmloader/.cvsignore @@ -0,0 +1,5 @@ +Makefile +dmloader.dll.dbg.c +dmloader.spec.c +dmloader.spec.def +version.res diff --git a/dlls/dmloader/Makefile.in b/dlls/dmloader/Makefile.in new file mode 100644 index 00000000000..d6c49d20e40 --- /dev/null +++ b/dlls/dmloader/Makefile.in @@ -0,0 +1,18 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = dmloader.dll +IMPORTS = dmusic kernel32 + +LDDLLFLAGS = @LDDLLFLAGS@ +SYMBOLFILE = $(MODULE).tmp.o + +C_SRCS = \ + dmloader_main.c + +RC_SRCS = version.rc + +@MAKE_DLL_RULES@ + +### Dependencies: diff --git a/dlls/dmloader/dmloader.spec b/dlls/dmloader/dmloader.spec new file mode 100644 index 00000000000..3d091d1afff --- /dev/null +++ b/dlls/dmloader/dmloader.spec @@ -0,0 +1,6 @@ +# Linked to main dmusic.dll for easier implementation + +1 stdcall DllCanUnloadNow() dmusic.DllCanUnloadNow +2 stdcall DllGetClassObject(long long ptr) dmusic.DllGetClassObject +3 stdcall DllRegisterServer() dmusic.DllRegisterServer +4 stdcall DllUnregisterServer() dmusic.DllUnregisterServer diff --git a/dlls/dmloader/dmloader_main.c b/dlls/dmloader/dmloader_main.c new file mode 100644 index 00000000000..67a01ed518c --- /dev/null +++ b/dlls/dmloader/dmloader_main.c @@ -0,0 +1 @@ +/* nothing here yet */ diff --git a/dlls/dmloader/version.rc b/dlls/dmloader/version.rc new file mode 100644 index 00000000000..43d10443521 --- /dev/null +++ b/dlls/dmloader/version.rc @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2003 Rok Mandeljc + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#define WINE_FILEDESCRIPTION_STR "Wine DirectMusic Loader" +#define WINE_FILENAME_STR "dmloader.dll" +#define WINE_FILEVERSION 4,8,1,881 +#define WINE_FILEVERSION_STR "4.8.1.881" +#define WINE_PRODUCTVERSION 4,8,1,881 +#define WINE_PRODUCTVERSION_STR "4.8" +#define WINE_PRODUCTNAME_STR "DirectX" + +#include "wine/wine_common_ver.rc" diff --git a/dlls/dmscript/.cvsignore b/dlls/dmscript/.cvsignore new file mode 100644 index 00000000000..e2b850170dd --- /dev/null +++ b/dlls/dmscript/.cvsignore @@ -0,0 +1,5 @@ +Makefile +dmscript.dll.dbg.c +dmscript.spec.c +dmscript.spec.def +version.res diff --git a/dlls/dmscript/Makefile.in b/dlls/dmscript/Makefile.in new file mode 100644 index 00000000000..c8e8fd027d5 --- /dev/null +++ b/dlls/dmscript/Makefile.in @@ -0,0 +1,18 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = dmscript.dll +IMPORTS = dmusic kernel32 + +LDDLLFLAGS = @LDDLLFLAGS@ +SYMBOLFILE = $(MODULE).tmp.o + +C_SRCS = \ + dmscript_main.c + +RC_SRCS = version.rc + +@MAKE_DLL_RULES@ + +### Dependencies: diff --git a/dlls/dmscript/dmscript.spec b/dlls/dmscript/dmscript.spec new file mode 100644 index 00000000000..3d091d1afff --- /dev/null +++ b/dlls/dmscript/dmscript.spec @@ -0,0 +1,6 @@ +# Linked to main dmusic.dll for easier implementation + +1 stdcall DllCanUnloadNow() dmusic.DllCanUnloadNow +2 stdcall DllGetClassObject(long long ptr) dmusic.DllGetClassObject +3 stdcall DllRegisterServer() dmusic.DllRegisterServer +4 stdcall DllUnregisterServer() dmusic.DllUnregisterServer diff --git a/dlls/dmscript/dmscript_main.c b/dlls/dmscript/dmscript_main.c new file mode 100644 index 00000000000..67a01ed518c --- /dev/null +++ b/dlls/dmscript/dmscript_main.c @@ -0,0 +1 @@ +/* nothing here yet */ diff --git a/dlls/dmscript/version.rc b/dlls/dmscript/version.rc new file mode 100644 index 00000000000..a0b322227ca --- /dev/null +++ b/dlls/dmscript/version.rc @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2003 Rok Mandeljc + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#define WINE_FILEDESCRIPTION_STR "Wine DirectMusic Scripting" +#define WINE_FILENAME_STR "dmscript.dll" +#define WINE_FILEVERSION 4,8,1,881 +#define WINE_FILEVERSION_STR "4.8.1.881" +#define WINE_PRODUCTVERSION 4,8,1,881 +#define WINE_PRODUCTVERSION_STR "4.8" +#define WINE_PRODUCTNAME_STR "DirectX" + +#include "wine/wine_common_ver.rc" diff --git a/dlls/dmstyle/.cvsignore b/dlls/dmstyle/.cvsignore new file mode 100644 index 00000000000..8341ce9bcff --- /dev/null +++ b/dlls/dmstyle/.cvsignore @@ -0,0 +1,5 @@ +Makefile +dmstyle.dll.dbg.c +dmstyle.spec.c +dmstyle.spec.def +version.res diff --git a/dlls/dmstyle/Makefile.in b/dlls/dmstyle/Makefile.in new file mode 100644 index 00000000000..ac45fbd8141 --- /dev/null +++ b/dlls/dmstyle/Makefile.in @@ -0,0 +1,18 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = dmstyle.dll +IMPORTS = dmusic kernel32 + +LDDLLFLAGS = @LDDLLFLAGS@ +SYMBOLFILE = $(MODULE).tmp.o + +C_SRCS = \ + dmstyle_main.c + +RC_SRCS = version.rc + +@MAKE_DLL_RULES@ + +### Dependencies: diff --git a/dlls/dmstyle/dmstyle.spec b/dlls/dmstyle/dmstyle.spec new file mode 100644 index 00000000000..3d091d1afff --- /dev/null +++ b/dlls/dmstyle/dmstyle.spec @@ -0,0 +1,6 @@ +# Linked to main dmusic.dll for easier implementation + +1 stdcall DllCanUnloadNow() dmusic.DllCanUnloadNow +2 stdcall DllGetClassObject(long long ptr) dmusic.DllGetClassObject +3 stdcall DllRegisterServer() dmusic.DllRegisterServer +4 stdcall DllUnregisterServer() dmusic.DllUnregisterServer diff --git a/dlls/dmstyle/dmstyle_main.c b/dlls/dmstyle/dmstyle_main.c new file mode 100644 index 00000000000..67a01ed518c --- /dev/null +++ b/dlls/dmstyle/dmstyle_main.c @@ -0,0 +1 @@ +/* nothing here yet */ diff --git a/dlls/dmstyle/version.rc b/dlls/dmstyle/version.rc new file mode 100644 index 00000000000..bf7645d547e --- /dev/null +++ b/dlls/dmstyle/version.rc @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2003 Rok Mandeljc + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#define WINE_FILEDESCRIPTION_STR "Wine DirectMusic Style Engine" +#define WINE_FILENAME_STR "dmstyle.dll" +#define WINE_FILEVERSION 4,8,1,881 +#define WINE_FILEVERSION_STR "4.8.1.881" +#define WINE_PRODUCTVERSION 4,8,1,881 +#define WINE_PRODUCTVERSION_STR "4.8" +#define WINE_PRODUCTNAME_STR "DirectX" + +#include "wine/wine_common_ver.rc" diff --git a/dlls/dmsynth/.cvsignore b/dlls/dmsynth/.cvsignore new file mode 100644 index 00000000000..e9d8931c417 --- /dev/null +++ b/dlls/dmsynth/.cvsignore @@ -0,0 +1,5 @@ +Makefile +dmsynth.dll.dbg.c +dmsynth.spec.c +dmsynth.spec.def +version.res diff --git a/dlls/dmsynth/Makefile.in b/dlls/dmsynth/Makefile.in new file mode 100644 index 00000000000..fcedb30529e --- /dev/null +++ b/dlls/dmsynth/Makefile.in @@ -0,0 +1,18 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = dmsynth.dll +IMPORTS = dmusic kernel32 + +LDDLLFLAGS = @LDDLLFLAGS@ +SYMBOLFILE = $(MODULE).tmp.o + +C_SRCS = \ + dmsynth_main.c + +RC_SRCS = version.rc + +@MAKE_DLL_RULES@ + +### Dependencies: diff --git a/dlls/dmsynth/dmsynth.spec b/dlls/dmsynth/dmsynth.spec new file mode 100644 index 00000000000..bd5a7b58967 --- /dev/null +++ b/dlls/dmsynth/dmsynth.spec @@ -0,0 +1,6 @@ +# Linked to main dmusic.dll for easier implementation + +1 stdcall DllCanUnloadNow() dmusic.DllCanUnloadNow +2 stdcall DllGetClassObject( long long ptr ) dmusic.DllGetClassObject +3 stdcall DllRegisterServer() dmusic.DllRegisterServer +4 stdcall DllUnregisterServer() dmusic.DllUnregisterServer diff --git a/dlls/dmsynth/dmsynth_main.c b/dlls/dmsynth/dmsynth_main.c new file mode 100644 index 00000000000..67a01ed518c --- /dev/null +++ b/dlls/dmsynth/dmsynth_main.c @@ -0,0 +1 @@ +/* nothing here yet */ diff --git a/dlls/dmsynth/version.rc b/dlls/dmsynth/version.rc new file mode 100644 index 00000000000..4ccbc66e0bb --- /dev/null +++ b/dlls/dmsynth/version.rc @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2003 Rok Mandeljc + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#define WINE_FILEDESCRIPTION_STR "Wine DirectMusic Software Synthesizer" +#define WINE_FILENAME_STR "dmsynth.dll" +#define WINE_FILEVERSION 4,8,1,881 +#define WINE_FILEVERSION_STR "4.8.1.881" +#define WINE_PRODUCTVERSION 4,8,1,881 +#define WINE_PRODUCTVERSION_STR "4.8" +#define WINE_PRODUCTNAME_STR "DirectX" + +#include "wine/wine_common_ver.rc" diff --git a/dlls/dmusic32/.cvsignore b/dlls/dmusic32/.cvsignore new file mode 100644 index 00000000000..e98065a5eda --- /dev/null +++ b/dlls/dmusic32/.cvsignore @@ -0,0 +1,5 @@ +Makefile +dmusic32.dll.dbg.c +dmusic32.spec.c +dmusic32.spec.def +version.res diff --git a/dlls/dmusic32/Makefile.in b/dlls/dmusic32/Makefile.in new file mode 100644 index 00000000000..7f76bd65544 --- /dev/null +++ b/dlls/dmusic32/Makefile.in @@ -0,0 +1,18 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = dmusic32.dll +IMPORTS = dmusic kernel32 + +LDDLLFLAGS = @LDDLLFLAGS@ +SYMBOLFILE = $(MODULE).tmp.o + +C_SRCS = \ + dmusic32_main.c + +RC_SRCS = version.rc + +@MAKE_DLL_RULES@ + +### Dependencies: diff --git a/dlls/dmusic32/dmusic32.spec b/dlls/dmusic32/dmusic32.spec new file mode 100644 index 00000000000..7fb7e9dfd0b --- /dev/null +++ b/dlls/dmusic32/dmusic32.spec @@ -0,0 +1,2 @@ +1 stub CreateCDirectMusicEmulatePort +2 stub EnumLegacyDevices diff --git a/dlls/dmusic32/dmusic32_main.c b/dlls/dmusic32/dmusic32_main.c new file mode 100644 index 00000000000..67a01ed518c --- /dev/null +++ b/dlls/dmusic32/dmusic32_main.c @@ -0,0 +1 @@ +/* nothing here yet */ diff --git a/dlls/dmusic32/version.rc b/dlls/dmusic32/version.rc new file mode 100644 index 00000000000..087ac335be9 --- /dev/null +++ b/dlls/dmusic32/version.rc @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2003 Rok Mandeljc + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#define WINE_FILEDESCRIPTION_STR "Wine DirectMusic Legacy Port" +#define WINE_FILENAME_STR "dmusic32.dll" +#define WINE_FILEVERSION 4,8,1,881 +#define WINE_FILEVERSION_STR "4.8.1.881" +#define WINE_PRODUCTVERSION 4,8,1,881 +#define WINE_PRODUCTVERSION_STR "4.8" +#define WINE_PRODUCTNAME_STR "DirectX" + +#include "wine/wine_common_ver.rc" diff --git a/dlls/dpnhpast/.cvsignore b/dlls/dpnhpast/.cvsignore new file mode 100644 index 00000000000..7b02397b159 --- /dev/null +++ b/dlls/dpnhpast/.cvsignore @@ -0,0 +1,5 @@ +Makefile +dpnhpast.dll.dbg.c +dpnhpast.spec.c +dpnhpast.spec.def +version.res diff --git a/dlls/dpnhpast/Makefile.in b/dlls/dpnhpast/Makefile.in new file mode 100644 index 00000000000..117f77f13f6 --- /dev/null +++ b/dlls/dpnhpast/Makefile.in @@ -0,0 +1,18 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = dpnhpast.dll +IMPORTS = kernel32 + +LDDLLFLAGS = @LDDLLFLAGS@ +SYMBOLFILE = $(MODULE).tmp.o + +C_SRCS = \ + main.c + +RC_SRCS = version.rc + +@MAKE_DLL_RULES@ + +### Dependencies: diff --git a/dlls/dpnhpast/dpnhpast.spec b/dlls/dpnhpast/dpnhpast.spec new file mode 100644 index 00000000000..098b80f83d8 --- /dev/null +++ b/dlls/dpnhpast/dpnhpast.spec @@ -0,0 +1,5 @@ +1 stub DirectPlayNATHelpCreate +2 stdcall DllRegisterServer() DPNHPAST_DllRegisterServer +3 stdcall DllCanUnloadNow() DPNHPAST_DllCanUnloadNow +4 stdcall DllGetClassObject( long long ptr ) DPNHPAST_DllGetClassObject +5 stdcall DllUnregisterServer() DPNHPAST_DllUnregisterServer diff --git a/dlls/dpnhpast/main.c b/dlls/dpnhpast/main.c new file mode 100644 index 00000000000..a359f679330 --- /dev/null +++ b/dlls/dpnhpast/main.c @@ -0,0 +1,107 @@ +/* DirectPlay NAT Helper Past Main + * + * Copyright (C) 2003 Rok Mandeljc + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#include "config.h" +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(dpnhpast); + +/****************************************************************** + * DllMain + * + * + */ +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + TRACE("(%p, %ld, %p)\n",hinstDLL,fdwReason,lpvReserved); + + if (fdwReason == DLL_PROCESS_ATTACH) + { + /* FIXME: Initialisation */ + } + else if (fdwReason == DLL_PROCESS_DETACH) + { + /* FIXME: Cleanup */ + } + + return TRUE; +} + + +/****************************************************************** + * DirectPlayNATHelpCreate (DPNHPAST.1) + * + * + */ +#if 0 +HRESULT WINAPI DPNHPAST_DirectPlayNATHelpCreate() +{ + /* @stub in .spec */ +} +#endif + + +/****************************************************************** + * DllRegisterServer (DPNHPAST.2) + * + * + */ +HRESULT WINAPI DPNHPAST_DllRegisterServer(void) +{ + FIXME(":stub\n"); + return S_OK; +} + + +/****************************************************************** + * DllCanUnloadNow (DPNHPAST.3) + * + * + */ +HRESULT WINAPI DPNHPAST_DllCanUnloadNow(void) +{ + FIXME(":stub\n"); + return S_OK; +} + + +/****************************************************************** + * DllGetClassObject (DPNHPAST.4) + * + * + */ +HRESULT WINAPI DPNHPAST_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID FAR) +{ + FIXME(":stub\n"); + return S_OK; +} + + +/****************************************************************** + * DllUnregisterServer (DPNHPAST.5) + * + * + */ +HRESULT WINAPI DPNHPAST_DllUnregisterServer(void) +{ + FIXME(":stub\n"); + return S_OK; +} diff --git a/dlls/dpnhpast/version.rc b/dlls/dpnhpast/version.rc new file mode 100644 index 00000000000..c25c6552c7f --- /dev/null +++ b/dlls/dpnhpast/version.rc @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2003 Rok Mandeljc + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#define WINE_FILEDESCRIPTION_STR "Wine DirectPlay NAT Helper PAST" +#define WINE_FILENAME_STR "dpnhpast.dll" +#define WINE_FILEVERSION 4,8,1,881 +#define WINE_FILEVERSION_STR "4.8.1.881" +#define WINE_PRODUCTVERSION 4,8,1,881 +#define WINE_PRODUCTVERSION_STR "4.8" +#define WINE_PRODUCTNAME_STR "DirectX" + +#include "wine/wine_common_ver.rc" diff --git a/include/Makefile.in b/include/Makefile.in index 4bc16c1f4b1..1ba793e3fdb 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -45,8 +45,12 @@ WINDOWS_INCLUDES = \ dmo.h \ dmoreg.h \ dmort.h \ + dmplugin.h \ dmusbuff.h \ dmusicc.h \ + dmusicf.h \ + dmusici.h \ + dmusics.h \ docobj.h \ dplay.h \ dplobby.h \ diff --git a/include/dmplugin.h b/include/dmplugin.h new file mode 100644 index 00000000000..944557dc5f5 --- /dev/null +++ b/include/dmplugin.h @@ -0,0 +1,240 @@ +/* + * DirectMusic Performance Layer Plugins API + * + * Copyright (C) 2003 Rok Mandeljc + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __WINE_DMUSIC_PLUGIN_H +#define __WINE_DMUSIC_PLUGIN_H + +#include "objbase.h" +#include "mmsystem.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define DMUS_REGSTR_PATH_TOOLS "Software\\Microsoft\\DirectMusic\\Tools" + +/***************************************************************************** + * Predeclare the interfaces + */ +DEFINE_GUID(IID_IDirectMusicTrack, 0xf96029a1,0x4282,0x11d2,0x87,0x17,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(IID_IDirectMusicTool, 0xd2ac28ba,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(IID_IDirectMusicTool8, 0xe674303,0x3b05,0x11d3,0x9b,0xd1,0xf9,0xe7,0xf0,0xa0,0x15,0x36); +DEFINE_GUID(IID_IDirectMusicTrack8, 0xe674304,0x3b05,0x11d3,0x9b,0xd1,0xf9,0xe7,0xf0,0xa0,0x15,0x36); + +/* typedef definitions of interfaces are in dmusici.h */ + +DEFINE_GUID(CLSID_DirectMusicTempoTrack, 0xd2ac2885,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicSeqTrack, 0xd2ac2886,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicSysExTrack, 0xd2ac2887,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicTimeSigTrack, 0xd2ac2888,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicChordTrack, 0xd2ac288b,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicCommandTrack, 0xd2ac288c,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicStyleTrack, 0xd2ac288d,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicMotifTrack, 0xd2ac288e,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicSignPostTrack, 0xf17e8672,0xc3b4,0x11d1,0x87,0xb,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicBandTrack, 0xd2ac2894,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicChordMapTrack, 0xd2ac2896,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicMuteTrack, 0xd2ac2898,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicScriptTrack, 0x4108fa85,0x3586,0x11d3,0x8b,0xd7,0x0,0x60,0x8,0x93,0xb1,0xb6); +DEFINE_GUID(CLSID_DirectMusicMarkerTrack, 0x55a8fd00,0x4288,0x11d3,0x9b,0xd1,0x8a,0xd,0x61,0xc8,0x88,0x35); +DEFINE_GUID(CLSID_DirectMusicSegmentTriggerTrack, 0xbae4d665,0x4ea1,0x11d3,0x8b,0xda,0x0,0x60,0x8,0x93,0xb1,0xb6); +DEFINE_GUID(CLSID_DirectMusicLyricsTrack, 0x995c1cf5,0x54ff,0x11d3,0x8b,0xda,0x0,0x60,0x8,0x93,0xb1,0xb6); +DEFINE_GUID(CLSID_DirectMusicParamControlTrack, 0x4be0537b,0x5c19,0x11d3,0x8b,0xdc,0x0,0x60,0x8,0x93,0xb1,0xb6); +DEFINE_GUID(CLSID_DirectMusicMelodyFormulationTrack, 0xb0684266,0xb57f,0x11d2,0x97,0xf9,0x0,0xc0,0x4f,0xa3,0x6e,0x58); +DEFINE_GUID(CLSID_DirectMusicWaveTrack, 0xeed36461,0x9ea5,0x11d3,0x9b,0xd1,0x0,0x80,0xc7,0x15,0xa,0x74); + + +/***************************************************************************** + * IDirectMusicTool interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicTool +#define IDirectMusicTool_METHODS \ + /*** IDirectMusicTool methods ***/ \ + ICOM_METHOD1(HRESULT, Init, IDirectMusicGraph*,pGraph) \ + ICOM_METHOD1(HRESULT, GetMsgDeliveryType, DWORD*,pdwDeliveryType) \ + ICOM_METHOD1(HRESULT, GetMediaTypeArraySize, DWORD*,pdwNumElements) \ + ICOM_METHOD2(HRESULT, GetMediaTypes, DWORD**,padwMediaTypes, DWORD,dwNumElements) \ + ICOM_METHOD2(HRESULT, ProcessPMsg, IDirectMusicPerformance*,pPerf, DMUS_PMSG*,pPMSG) \ + ICOM_METHOD3(HRESULT, Flush, IDirectMusicPerformance*,pPerf, DMUS_PMSG*,pPMSG, REFERENCE_TIME,rtTime) + + /*** IDirectMusicTool methods ***/ +#define IDirectMusicTool_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicTool_METHODS +ICOM_DEFINE(IDirectMusicTool,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicTool_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicTool_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicTool_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicTool methods ***/ +#define IDirectMusicTool_Init(p,a) ICOM_CALL1(Init,p,a) +#define IDirectMusicTool_GetMsgDeliveryType(p,a) ICOM_CALL1(GetMsgDeliveryType,p,a) +#define IDirectMusicTool_GetMediaTypeArraySize(p,a) ICOM_CALL1(GetMediaTypeArraySize,p,a) +#define IDirectMusicTool_GetMediaTypes(p,a,b) ICOM_CALL2(GetMediaTypes,p,a,b) +#define IDirectMusicTool_ProcessPMsg(p,a,b) ICOM_CALL2(ProcessPMsg,p,a,b) +#define IDirectMusicTool_Flush(p,a,b,c) ICOM_CALL3(Flush,p,a,b,c) + + +/***************************************************************************** + * IDirectMusicTool8 interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicTool8 +#define IDirectMusicTool8_METHODS \ + /*** IDirectMusicTool8 methods ***/ \ + ICOM_METHOD1(HRESULT, Clone, IDirectMusicTool**,ppTool) + + /*** IDirectMusicTool8 methods ***/ +#define IDirectMusicTool8_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicTool_METHODS \ + IDirectMusicTool8_METHODS +ICOM_DEFINE(IDirectMusicTool8,IDirectMusicTool) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicTool8_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicTool8_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicTool8_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicTool methods ***/ +#define IDirectMusicTool8_Init(p,a) ICOM_CALL1(Init,p,a) +#define IDirectMusicTool8_GetMsgDeliveryType(p,a) ICOM_CALL1(GetMsgDeliveryType,p,a) +#define IDirectMusicTool8_GetMediaTypeArraySize(p,a) ICOM_CALL1(GetMediaTypeArraySize,p,a) +#define IDirectMusicTool8_GetMediaTypes(p,a,b) ICOM_CALL2(GetMediaTypes,p,a,b) +#define IDirectMusicTool8_ProcessPMsg(p,a,b) ICOM_CALL2(ProcessPMsg,p,a,b) +#define IDirectMusicTool8_Flush(p,a,b) ICOM_CALL2(Flush,p,a,b) +/*** IDirectMusicTool8 methods ***/ +#define IDirectMusicTool8_Clone(p,a) ICOM_CALL1(Clone,p,a) + + +typedef enum enumDMUS_TRACKF_FLAGS +{ + DMUS_TRACKF_SEEK = 1, + DMUS_TRACKF_LOOP = 2, + DMUS_TRACKF_START = 4, + DMUS_TRACKF_FLUSH = 8, + DMUS_TRACKF_DIRTY = 0x10, + DMUS_TRACKF_NOTIFY_OFF = 0x20, + DMUS_TRACKF_PLAY_OFF = 0x40, + DMUS_TRACKF_LOOPEND = 0x80, + DMUS_TRACKF_STOP = 0x100, + DMUS_TRACKF_RECOMPOSE = 0x200, + DMUS_TRACKF_CLOCK = 0x400, +} DMUS_TRACKF_FLAGS; + +#define DMUS_TRACK_PARAMF_CLOCK 0x01 + + + +/***************************************************************************** + * IDirectMusicTrack interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicTrack +#define IDirectMusicTrack_METHODS \ + /*** IDirectMusicTrack methods ***/ \ + ICOM_METHOD1(HRESULT, Init, IDirectMusicSegment*,pSegment) \ + ICOM_METHOD5(HRESULT, InitPlay, IDirectMusicSegmentState*,pSegmentState, IDirectMusicPerformance*,pPerformance, void**,ppStateData, DWORD,dwVirtualTrackID, DWORD,dwFlags) \ + ICOM_METHOD1(HRESULT, EndPlay, void*,pStateData) \ + ICOM_METHOD8(HRESULT, Play, void*,pStateData, MUSIC_TIME,mtStart, MUSIC_TIME,mtEnd, MUSIC_TIME,mtOffset, DWORD,dwFlags, IDirectMusicPerformance*,pPerf, IDirectMusicSegmentState*,pSegSt, DWORD,dwVirtualID) \ + ICOM_METHOD4(HRESULT, GetParam, REFGUID,rguidType, MUSIC_TIME,mtTime, MUSIC_TIME*,pmtNext, void*,pParam) \ + ICOM_METHOD3(HRESULT, SetParam, REFGUID,rguidType, MUSIC_TIME,mtTime, void*,pParam) \ + ICOM_METHOD1(HRESULT, IsParamSupported, REFGUID,rguidType) \ + ICOM_METHOD1(HRESULT, AddNotificationType, REFGUID,rguidNotificationType) \ + ICOM_METHOD1(HRESULT, RemoveNotificationType, REFGUID,rguidNotificationType) \ + ICOM_METHOD3(HRESULT, Clone, MUSIC_TIME,mtStart, MUSIC_TIME,mtEnd, IDirectMusicTrack**,ppTrack) + + /*** IDirectMusicTrack methods ***/ +#define IDirectMusicTrack_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicTrack_METHODS +ICOM_DEFINE(IDirectMusicTrack,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicTrack_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicTrack_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicTrack_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicTrack methods ***/ +#define IDirectMusicTrack_Init(p,a) ICOM_CALL1(Init,p,a) +#define IDirectMusicTrack_InitPlay(p,a,b,c,d,e) ICOM_CALL5(InitPlay,p,a,b,c,d,e) +#define IDirectMusicTrack_EndPlay(p,a) ICOM_CALL1(EndPlay,p,a) +#define IDirectMusicTrack_Play(p,a,b,c,d,e,f,g,h) ICOM_CALL8(Play,p,a,b,c,d,e,f,g,h) +#define IDirectMusicTrack_GetParam(p,a,b,c,d) ICOM_CALL4(GetParam,p,a,b,c,d) +#define IDirectMusicTrack_SetParam(p,a,b,c) ICOM_CALL3(SetParam,p,a,b,c) +#define IDirectMusicTrack_IsParamSupported(p,a) ICOM_CALL1(IsParamSupported,p,a) +#define IDirectMusicTrack_AddNotificationType(p,a) ICOM_CALL1(AddNotificationType,p,a) +#define IDirectMusicTrack_RemoveNotificationType(p,a) ICOM_CALL1(RemoveNotificationType,p,a) +#define IDirectMusicTrack_Clone(p,a,b,c) ICOM_CALL3(Clone,p,a,b,c) + + +/***************************************************************************** + * IDirectMusicTrack8 interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicTrack8 +#define IDirectMusicTrack8_METHODS \ + /*** IDirectMusicTrack8 methods ***/ \ + ICOM_METHOD8(HRESULT, PlayEx, void*,pStateData, REFERENCE_TIME,rtStart, REFERENCE_TIME,rtEnd, REFERENCE_TIME,rtOffset, DWORD,dwFlags, IDirectMusicPerformance*,pPerf, IDirectMusicSegmentState*,pSegSt, DWORD,dwVirtualID) \ + ICOM_METHOD6(HRESULT, GetParamEx, REFGUID,rguidType, REFERENCE_TIME,rtTime, REFERENCE_TIME*,prtNext, void*,pParam, void*,pStateData, DWORD,dwFlags) \ + ICOM_METHOD5(HRESULT, SetParamEx, REFGUID,rguidType, REFERENCE_TIME,rtTime, void*,pParam, void*,pStateData, DWORD,dwFlags) \ + ICOM_METHOD3(HRESULT, Compose, IUnknown*,pContext, DWORD,dwTrackGroup, IDirectMusicTrack**,ppResultTrack) \ + ICOM_METHOD5(HRESULT, Join, IDirectMusicTrack*,pNewTrack, MUSIC_TIME,mtJoin, IUnknown*,pContext, DWORD,dwTrackGroup, IDirectMusicTrack**,ppResultTrack) + + /*** IDirectMusicTrack8 methods ***/ +#define IDirectMusicTrack8_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicTrack_METHODS \ + IDirectMusicTrack8_METHODS + +ICOM_DEFINE(IDirectMusicTrack8,IDirectMusicTrack) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicTrack8_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicTrack8_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicTrack8_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicTrack methods ***/ +#define IDirectMusicTrack8_Init(p,a) ICOM_CALL1(Init,p,a) +#define IDirectMusicTrack8_InitPlay(p,a,b,c,d,e) ICOM_CALL5(InitPlay,p,a,b,c,d,e) +#define IDirectMusicTrack8_EndPlay(p,a) ICOM_CALL1(EndPlay,p,a) +#define IDirectMusicTrack8_Play(p,a,b,c,d,e,f,g,h) ICOM_CALL8(Play,p,a,b,c,d,e,f,g,h) +#define IDirectMusicTrack8_GetParam(p,a,b,c,d) ICOM_CALL4(GetParam,p,a,b,c,d) +#define IDirectMusicTrack8_SetParam(p,a,b,c) ICOM_CALL3(SetParam,p,a,b,c) +#define IDirectMusicTrack8_IsParamSupported(p,a) ICOM_CALL1(IsParamSupported,p,a) +#define IDirectMusicTrack8_AddNotificationType(p,a) ICOM_CALL1(AddNotificationType,p,a) +#define IDirectMusicTrack8_RemoveNotificationType(p,a) ICOM_CALL1(RemoveNotificationType,p,a) +#define IDirectMusicTrack8_Clone(p,a,b,c) ICOM_CALL3(Clone,p,a,b,c) +/*** IDirectMusicTrack8 methods ***/ +#define IDirectMusicTrack8_PlayEx(p,a,b,c,d,e,f,g,h) ICOM_CALL8(PlayEx,p,a,b,c,d,e,f,g,h) +#define IDirectMusicTrack8_GetParamEx(p,a,b,c,d,e,f) ICOM_CALL6(GetParamEx,p,a,b,c,d,e,f) +#define IDirectMusicTrack8_SetParamEx(p,a,b,c,d,e) ICOM_CALL5(SetParamEx,p,a,b,c,d,e) +#define IDirectMusicTrack8_Compose(p,a,b,c) ICOM_CALL3(Compose,p,a,b,c) +#define IDirectMusicTrack8_Join(p,a,b,c,d,e) ICOM_CALL5(Join,p,a,b,c,d,e) + + +#ifdef __cplusplus +} +#endif + +#endif /* __WINE_DMUSIC_PLUGIN_H */ diff --git a/include/dmusicf.h b/include/dmusicf.h new file mode 100644 index 00000000000..ed1d22d4d87 --- /dev/null +++ b/include/dmusicf.h @@ -0,0 +1,943 @@ +/* + * DirectMusic File Formats + * + * Copyright (C) 2003 Rok Mandeljc + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __WINE_DMUSIC_FILEFORMATS_H +#define __WINE_DMUSIC_FILEFORMATS_H + +#include "objbase.h" +#include "mmsystem.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/***************************************************************************** + * FOURCC Definitons + */ +#define DMUS_FOURCC_GUID_CHUNK mmioFOURCC('g','u','i','d') +#define DMUS_FOURCC_INFO_LIST mmioFOURCC('I','N','F','O') +#define DMUS_FOURCC_UNFO_LIST mmioFOURCC('U','N','F','O') +#define DMUS_FOURCC_UNAM_CHUNK mmioFOURCC('U','N','A','M') +#define DMUS_FOURCC_UART_CHUNK mmioFOURCC('U','A','R','T') +#define DMUS_FOURCC_UCOP_CHUNK mmioFOURCC('U','C','O','P') +#define DMUS_FOURCC_USBJ_CHUNK mmioFOURCC('U','S','B','J') +#define DMUS_FOURCC_UCMT_CHUNK mmioFOURCC('U','C','M','T') +#define DMUS_FOURCC_CATEGORY_CHUNK mmioFOURCC('c','a','t','g') +#define DMUS_FOURCC_VERSION_CHUNK mmioFOURCC('v','e','r','s') + +#define DMUS_FOURCC_STYLE_FORM mmioFOURCC('D','M','S','T') +#define DMUS_FOURCC_STYLE_CHUNK mmioFOURCC('s','t','y','h') +#define DMUS_FOURCC_PART_LIST mmioFOURCC('p','a','r','t') +#define DMUS_FOURCC_PART_CHUNK mmioFOURCC('p','r','t','h') +#define DMUS_FOURCC_NOTE_CHUNK mmioFOURCC('n','o','t','e') +#define DMUS_FOURCC_CURVE_CHUNK mmioFOURCC('c','r','v','e') +#define DMUS_FOURCC_MARKER_CHUNK mmioFOURCC('m','r','k','r') +#define DMUS_FOURCC_RESOLUTION_CHUNK mmioFOURCC('r','s','l','n') +#define DMUS_FOURCC_ANTICIPATION_CHUNK mmioFOURCC('a','n','p','n') +#define DMUS_FOURCC_PATTERN_LIST mmioFOURCC('p','t','t','n') +#define DMUS_FOURCC_PATTERN_CHUNK mmioFOURCC('p','t','n','h') +#define DMUS_FOURCC_RHYTHM_CHUNK mmioFOURCC('r','h','t','m') +#define DMUS_FOURCC_PARTREF_LIST mmioFOURCC('p','r','e','f') +#define DMUS_FOURCC_PARTREF_CHUNK mmioFOURCC('p','r','f','c') +#define DMUS_FOURCC_STYLE_PERS_REF_LIST mmioFOURCC('p','r','r','f') +#define DMUS_FOURCC_MOTIFSETTINGS_CHUNK mmioFOURCC('m','t','f','s') + +#define DMUS_FOURCC_PATTERN_FORM mmioFOURCC('D','M','P','T') + +#define DMUS_FOURCC_CHORDTRACK_LIST mmioFOURCC('c','o','r','d') +#define DMUS_FOURCC_CHORDTRACKHEADER_CHUNK mmioFOURCC('c','r','d','h') +#define DMUS_FOURCC_CHORDTRACKBODY_CHUNK mmioFOURCC('c','r','d','b') + +#define DMUS_FOURCC_COMMANDTRACK_CHUNK mmioFOURCC('c','m','n','d') + +#define DMUS_FOURCC_TOOLGRAPH_FORM mmioFOURCC('D','M','T','G') +#define DMUS_FOURCC_TOOL_LIST mmioFOURCC('t','o','l','l') +#define DMUS_FOURCC_TOOL_FORM mmioFOURCC('D','M','T','L') +#define DMUS_FOURCC_TOOL_CHUNK mmioFOURCC('t','o','l','h') + +#define DMUS_FOURCC_AUDIOPATH_FORM mmioFOURCC('D','M','A','P') + +#define DMUS_FOURCC_PORTCONFIGS_LIST mmioFOURCC('p','c','s','l') +#define DMUS_FOURCC_PORTCONFIG_LIST mmioFOURCC('p','c','f','l') +#define DMUS_FOURCC_PORTCONFIG_ITEM mmioFOURCC('p','c','f','h') +#define DMUS_FOURCC_PORTPARAMS_ITEM mmioFOURCC('p','p','r','h') +#define DMUS_FOURCC_DSBUFFER_LIST mmioFOURCC('d','b','f','l') +#define DMUS_FOURCC_DSBUFFATTR_ITEM mmioFOURCC('d','d','a','h') +#define DMUS_FOURCC_PCHANNELS_LIST mmioFOURCC('p','c','h','l') +#define DMUS_FOURCC_PCHANNELS_ITEM mmioFOURCC('p','c','h','h') + +#define DMUS_FOURCC_BANDTRACK_FORM mmioFOURCC('D','M','B','T') +#define DMUS_FOURCC_BANDTRACK_CHUNK mmioFOURCC('b','d','t','h') +#define DMUS_FOURCC_BANDS_LIST mmioFOURCC('l','b','d','l') +#define DMUS_FOURCC_BAND_LIST mmioFOURCC('l','b','n','d') +#define DMUS_FOURCC_BANDITEM_CHUNK mmioFOURCC('b','d','i','h') +#define DMUS_FOURCC_BANDITEM_CHUNK2 mmioFOURCC('b','d','2','h') + +#define DMUS_FOURCC_BAND_FORM mmioFOURCC('D','M','B','D') +#define DMUS_FOURCC_INSTRUMENTS_LIST mmioFOURCC('l','b','i','l') +#define DMUS_FOURCC_INSTRUMENT_LIST mmioFOURCC('l','b','i','n') +#define DMUS_FOURCC_INSTRUMENT_CHUNK mmioFOURCC('b','i','n','s') + +#define DMUS_FOURCC_WAVEHEADER_CHUNK mmioFOURCC('w','a','v','h') + +#define DMUS_FOURCC_WAVETRACK_LIST mmioFOURCC('w','a','v','t') +#define DMUS_FOURCC_WAVETRACK_CHUNK mmioFOURCC('w','a','t','h') +#define DMUS_FOURCC_WAVEPART_LIST mmioFOURCC('w','a','v','p') +#define DMUS_FOURCC_WAVEPART_CHUNK mmioFOURCC('w','a','p','h') +#define DMUS_FOURCC_WAVEITEM_LIST mmioFOURCC('w','a','v','i') +#define DMUS_FOURCC_WAVE_LIST mmioFOURCC('w','a','v','e') +#define DMUS_FOURCC_WAVEITEM_CHUNK mmioFOURCC('w','a','i','h') + +#define DMUS_FOURCC_CONTAINER_FORM mmioFOURCC('D','M','C','N') +#define DMUS_FOURCC_CONTAINER_CHUNK mmioFOURCC('c','o','n','h') +#define DMUS_FOURCC_CONTAINED_ALIAS_CHUNK mmioFOURCC('c','o','b','a') +#define DMUS_FOURCC_CONTAINED_OBJECT_CHUNK mmioFOURCC('c','o','b','h') +#define DMUS_FOURCC_CONTAINED_OBJECTS_LIST mmioFOURCC('c','o','s','l') +#define DMUS_FOURCC_CONTAINED_OBJECT_LIST mmioFOURCC('c','o','b','l') + +#define DMUS_FOURCC_SEGMENT_FORM mmioFOURCC('D','M','S','G') +#define DMUS_FOURCC_SEGMENT_CHUNK mmioFOURCC('s','e','g','h') +#define DMUS_FOURCC_TRACK_LIST mmioFOURCC('t','r','k','l') +#define DMUS_FOURCC_TRACK_FORM mmioFOURCC('D','M','T','K') +#define DMUS_FOURCC_TRACK_CHUNK mmioFOURCC('t','r','k','h') +#define DMUS_FOURCC_TRACK_EXTRAS_CHUNK mmioFOURCC('t','r','k','x') + +#define DMUS_FOURCC_SONG_FORM mmioFOURCC('D','M','S','O') +#define DMUS_FOURCC_SONG_CHUNK mmioFOURCC('s','n','g','h') +#define DMUS_FOURCC_SONGSEGMENTS_LIST mmioFOURCC('s','e','g','l') +#define DMUS_FOURCC_SONGSEGMENT_LIST mmioFOURCC('s','s','g','l') +#define DMUS_FOURCC_TOOLGRAPHS_LIST mmioFOURCC('t','l','g','l') +#define DMUS_FOURCC_SEGREFS_LIST mmioFOURCC('s','r','s','l') +#define DMUS_FOURCC_SEGREF_LIST mmioFOURCC('s','g','r','l') +#define DMUS_FOURCC_SEGREF_CHUNK mmioFOURCC('s','g','r','h') +#define DMUS_FOURCC_SEGTRANS_CHUNK mmioFOURCC('s','t','r','h') +#define DMUS_FOURCC_TRACKREFS_LIST mmioFOURCC('t','r','s','l') +#define DMUS_FOURCC_TRACKREF_LIST mmioFOURCC('t','k','r','l') +#define DMUS_FOURCC_TRACKREF_CHUNK mmioFOURCC('t','k','r','h') + +#define DMUS_FOURCC_REF_LIST mmioFOURCC('D','M','R','F') +#define DMUS_FOURCC_REF_CHUNK mmioFOURCC('r','e','f','h') +#define DMUS_FOURCC_DATE_CHUNK mmioFOURCC('d','a','t','e') +#define DMUS_FOURCC_NAME_CHUNK mmioFOURCC('n','a','m','e') +#define DMUS_FOURCC_FILE_CHUNK mmioFOURCC('f','i','l','e') + +#define DMUS_FOURCC_CHORDMAP_FORM mmioFOURCC('D','M','P','R') +#define DMUS_FOURCC_IOCHORDMAP_CHUNK mmioFOURCC('p','e','r','h') +#define DMUS_FOURCC_SUBCHORD_CHUNK mmioFOURCC('c','h','d','t') +#define DMUS_FOURCC_CHORDENTRY_CHUNK mmioFOURCC('c','h','e','h') +#define DMUS_FOURCC_SUBCHORDID_CHUNK mmioFOURCC('s','b','c','n') +#define DMUS_FOURCC_IONEXTCHORD_CHUNK mmioFOURCC('n','c','r','d') +#define DMUS_FOURCC_NEXTCHORDSEQ_CHUNK mmioFOURCC('n','c','s','q') +#define DMUS_FOURCC_IOSIGNPOST_CHUNK mmioFOURCC('s','p','s','h') +#define DMUS_FOURCC_CHORDNAME_CHUNK mmioFOURCC('I','N','A','M') + +#define DMUS_FOURCC_CHORDENTRY_LIST mmioFOURCC('c','h','o','e') +#define DMUS_FOURCC_CHORDMAP_LIST mmioFOURCC('c','m','a','p') +#define DMUS_FOURCC_CHORD_LIST mmioFOURCC('c','h','r','d') +#define DMUS_FOURCC_CHORDPALETTE_LIST mmioFOURCC('c','h','p','l') +#define DMUS_FOURCC_CADENCE_LIST mmioFOURCC('c','a','d','e') +#define DMUS_FOURCC_SIGNPOSTITEM_LIST mmioFOURCC('s','p','s','t') + +#define DMUS_FOURCC_SIGNPOST_LIST mmioFOURCC('s','p','s','q') + +#define DMUS_FOURCC_SCRIPT_FORM mmioFOURCC('D','M','S','C') +#define DMUS_FOURCC_SCRIPT_CHUNK mmioFOURCC('s','c','h','d') +#define DMUS_FOURCC_SCRIPTVERSION_CHUNK mmioFOURCC('s','c','v','e') +#define DMUS_FOURCC_SCRIPTLANGUAGE_CHUNK mmioFOURCC('s','c','l','a') +#define DMUS_FOURCC_SCRIPTSOURCE_CHUNK mmioFOURCC('s','c','s','r') + +#define DMUS_FOURCC_SIGNPOST_TRACK_CHUNK mmioFOURCC('s','g','n','p') + +#define DMUS_FOURCC_MUTE_CHUNK mmioFOURCC('m','u','t','e') + +#define DMUS_FOURCC_TIME_STAMP_CHUNK mmioFOURCC('s','t','m','p') + +#define DMUS_FOURCC_STYLE_TRACK_LIST mmioFOURCC('s','t','t','r') +#define DMUS_FOURCC_STYLE_REF_LIST mmioFOURCC('s','t','r','f') + +#define DMUS_FOURCC_PERS_TRACK_LIST mmioFOURCC('p','f','t','r') +#define DMUS_FOURCC_PERS_REF_LIST mmioFOURCC('p','f','r','f') + +#define DMUS_FOURCC_TEMPO_TRACK mmioFOURCC('t','e','t','r') + +#define DMUS_FOURCC_SEQ_TRACK mmioFOURCC('s','e','q','t') +#define DMUS_FOURCC_SEQ_LIST mmioFOURCC('e','v','t','l') +#define DMUS_FOURCC_CURVE_LIST mmioFOURCC('c','u','r','l') + +#define DMUS_FOURCC_SYSEX_TRACK mmioFOURCC('s','y','e','x') + +#define DMUS_FOURCC_TIMESIGNATURE_TRACK mmioFOURCC('t','i','m','s') + +#define DMUS_FOURCC_TIMESIGTRACK_LIST mmioFOURCC('T','I','M','S') +#define DMUS_FOURCC_TIMESIG_CHUNK DMUS_FOURCC_TIMESIGNATURE_TRACK + +#define DMUS_FOURCC_MARKERTRACK_LIST mmioFOURCC('M','A','R','K') +#define DMUS_FOURCC_VALIDSTART_CHUNK mmioFOURCC('v','a','l','s') +#define DMUS_FOURCC_PLAYMARKER_CHUNK mmioFOURCC('p','l','a','y') + +#define DMUS_FOURCC_SEGTRACK_LIST mmioFOURCC('s','e','g','t') +#define DMUS_FOURCC_SEGTRACK_CHUNK mmioFOURCC('s','g','t','h') +#define DMUS_FOURCC_SEGMENTS_LIST mmioFOURCC('l','s','g','l') +#define DMUS_FOURCC_SEGMENT_LIST mmioFOURCC('l','s','e','g') +#define DMUS_FOURCC_SEGMENTITEM_CHUNK mmioFOURCC('s','g','i','h') +#define DMUS_FOURCC_SEGMENTITEMNAME_CHUNK mmioFOURCC('s','n','a','m') + +#define DMUS_FOURCC_SCRIPTTRACK_LIST mmioFOURCC('s','c','r','t') +#define DMUS_FOURCC_SCRIPTTRACKEVENTS_LIST mmioFOURCC('s','c','r','l') +#define DMUS_FOURCC_SCRIPTTRACKEVENT_LIST mmioFOURCC('s','c','r','e') +#define DMUS_FOURCC_SCRIPTTRACKEVENTHEADER_CHUNK mmioFOURCC('s','c','r','h') +#define DMUS_FOURCC_SCRIPTTRACKEVENTNAME_CHUNK mmioFOURCC('s','c','r','n') + +#define DMUS_FOURCC_LYRICSTRACK_LIST mmioFOURCC('l','y','r','t') +#define DMUS_FOURCC_LYRICSTRACKEVENTS_LIST mmioFOURCC('l','y','r','l') +#define DMUS_FOURCC_LYRICSTRACKEVENT_LIST mmioFOURCC('l','y','r','e') +#define DMUS_FOURCC_LYRICSTRACKEVENTHEADER_CHUNK mmioFOURCC('l','y','r','h') +#define DMUS_FOURCC_LYRICSTRACKEVENTTEXT_CHUNK mmioFOURCC('l','y','r','n') + +#define DMUS_FOURCC_PARAMCONTROLTRACK_TRACK_LIST mmioFOURCC('p','r','m','t') +#define DMUS_FOURCC_PARAMCONTROLTRACK_OBJECT_LIST mmioFOURCC('p','r','o','l') +#define DMUS_FOURCC_PARAMCONTROLTRACK_OBJECT_CHUNK mmioFOURCC('p','r','o','h') +#define DMUS_FOURCC_PARAMCONTROLTRACK_PARAM_LIST mmioFOURCC('p','r','p','l') +#define DMUS_FOURCC_PARAMCONTROLTRACK_PARAM_CHUNK mmioFOURCC('p','r','p','h') +#define DMUS_FOURCC_PARAMCONTROLTRACK_CURVES_CHUNK mmioFOURCC('p','r','c','c') + +#define DMUS_FOURCC_MELODYFORM_TRACK_LIST mmioFOURCC('m','f','r','m') +#define DMUS_FOURCC_MELODYFORM_HEADER_CHUNK mmioFOURCC('m','l','f','h') +#define DMUS_FOURCC_MELODYFORM_BODY_CHUNK mmioFOURCC('m','l','f','b') + +#define DMUS_FOURCC_DSBC_FORM mmioFOURCC('D','S','B','C') +#define DMUS_FOURCC_DSBD_CHUNK mmioFOURCC('d','s','b','d') +#define DMUS_FOURCC_BSID_CHUNK mmioFOURCC('b','s','i','d') +#define DMUS_FOURCC_DS3D_CHUNK mmioFOURCC('d','s','3','d') +#define DMUS_FOURCC_DSBC_LIST mmioFOURCC('f','x','l','s') +#define DMUS_FOURCC_DSFX_FORM mmioFOURCC('D','S','F','X') +#define DMUS_FOURCC_DSFX_CHUNK mmioFOURCC('f','x','h','r') +#define DMUS_FOURCC_DSFX_DATA mmioFOURCC('d','a','t','a') + +/***************************************************************************** + * Definitons + */ +#define DMUS_VARIATIONF_MAJOR 0x0000007F +#define DMUS_VARIATIONF_MINOR 0x00003F80 +#define DMUS_VARIATIONF_OTHER 0x001FC000 +#define DMUS_VARIATIONF_ROOT_SCALE 0x00200000 +#define DMUS_VARIATIONF_ROOT_FLAT 0x00400000 +#define DMUS_VARIATIONF_ROOT_SHARP 0x00800000 +#define DMUS_VARIATIONF_TYPE_TRIAD 0x01000000 +#define DMUS_VARIATIONF_TYPE_6AND7 0x02000000 +#define DMUS_VARIATIONF_TYPE_COMPLEX 0x04000000 +#define DMUS_VARIATIONF_DEST_TO1 0x08000000 +#define DMUS_VARIATIONF_DEST_TO5 0x10000000 +#define DMUS_VARIATIONF_DEST_OTHER 0x40000000 +#define DMUS_VARIATIONF_MODES 0xE0000000 +#define DMUS_VARIATIONF_MODES_EX (0x20000000 | 0x80000000) +#define DMUS_VARIATIONF_IMA25_MODE 0x00000000 +#define DMUS_VARIATIONF_DMUS_MODE 0x20000000 + +#define DMUS_PARTF_USE_MARKERS 0x1 +#define DMUS_PARTF_ALIGN_CHORDS 0x2 +#define DMUS_MARKERF_START 0x1 +#define DMUS_MARKERF_STOP 0x2 +#define DMUS_MARKERF_CHORD_ALIGN 0x4 +#define DMUS_PATTERNF_PERSIST_CONTROL 0x1 + +#define DMUS_PORTCONFIGF_DRUMSON10 1 +#define DMUS_PORTCONFIGF_USEDEFAULT 2 + +#define DMUS_BUFFERF_SHARED 1 +#define DMUS_BUFFERF_DEFINED 2 +#define DMUS_BUFFERF_MIXIN 8 + +#define DMUS_IO_INST_PATCH 1 +#define DMUS_IO_INST_BANKSELECT 2 +#define DMUS_IO_INST_ASSIGN_PATCH 8 +#define DMUS_IO_INST_NOTERANGES 16 +#define DMUS_IO_INST_PAN 32 +#define DMUS_IO_INST_VOLUME 64 +#define DMUS_IO_INST_TRANSPOSE 128 +#define DMUS_IO_INST_GM 256 +#define DMUS_IO_INST_GS 512 +#define DMUS_IO_INST_XG 1024 +#define DMUS_IO_INST_CHANNEL_PRIORITY 2048 +#define DMUS_IO_INST_USE_DEFAULT_GM_SET 4096 +#define DMUS_IO_INST_PITCHBENDRANGE 8192 + +#define DMUS_WAVETRACKF_SYNC_VAR 0x1 +#define DMUS_WAVETRACKF_PERSIST_CONTROL 0x2 + +#define DMUS_CONTAINED_OBJF_KEEP 1 +#define DMUS_CONTAINER_NOLOADS 2 + +#define DMUS_SEGIOF_REFLENGTH 1 + +#define DMUS_SONG_MAXSEGID 0x7FFFFFFF +#define DMUS_SONG_ANYSEG 0x80000000 +#define DMUS_SONG_NOSEG 0xFFFFFFFF +#define DMUS_SONG_NOFROMSEG 0x80000001 + +#define DMUS_SIGNPOSTF_A 1 +#define DMUS_SIGNPOSTF_B 2 +#define DMUS_SIGNPOSTF_C 4 +#define DMUS_SIGNPOSTF_D 8 +#define DMUS_SIGNPOSTF_E 0x10 +#define DMUS_SIGNPOSTF_F 0x20 +#define DMUS_SIGNPOSTF_LETTER (DMUS_SIGNPOSTF_A | DMUS_SIGNPOSTF_B | DMUS_SIGNPOSTF_C | DMUS_SIGNPOSTF_D | DMUS_SIGNPOSTF_E | DMUS_SIGNPOSTF_F) +#define DMUS_SIGNPOSTF_1 0x100 +#define DMUS_SIGNPOSTF_2 0x200 +#define DMUS_SIGNPOSTF_3 0x400 +#define DMUS_SIGNPOSTF_4 0x800 +#define DMUS_SIGNPOSTF_5 0x1000 +#define DMUS_SIGNPOSTF_6 0x2000 +#define DMUS_SIGNPOSTF_7 0x4000 +#define DMUS_SIGNPOSTF_ROOT (DMUS_SIGNPOSTF_1 | DMUS_SIGNPOSTF_2 | DMUS_SIGNPOSTF_3 | DMUS_SIGNPOSTF_4 | DMUS_SIGNPOSTF_5 | DMUS_SIGNPOSTF_6 | DMUS_SIGNPOSTF_7) +#define DMUS_SIGNPOSTF_CADENCE 0x8000 + +#define DMUS_CHORDMAPF_VERSION8 1 + +#define DMUS_SPOSTCADENCEF_1 2 +#define DMUS_SPOSTCADENCEF_2 4 + + +#define DMUS_SCRIPTIOF_LOAD_ALL_CONTENT 1 +#define DMUS_SCRIPTIOF_DOWNLOAD_ALL_SEGMENTS 2 + +#define DMUS_SEGMENTTRACKF_MOTIF 1 + +#define DMUS_IO_SCRIPTTRACKF_PREPARE 1 +#define DMUS_IO_SCRIPTTRACKF_QUEUE 2 +#define DMUS_IO_SCRIPTTRACKF_ATTIME 4 + +/***************************************************************************** + * Structures + */ +typedef struct _DMUS_IO_SEQ_ITEM +{ + MUSIC_TIME mtTime; + MUSIC_TIME mtDuration; + DWORD dwPChannel; + short nOffset; + BYTE bStatus; + BYTE bByte1; + BYTE bByte2; +} DMUS_IO_SEQ_ITEM; + +typedef struct _DMUS_IO_CURVE_ITEM +{ + MUSIC_TIME mtStart; + MUSIC_TIME mtDuration; + MUSIC_TIME mtResetDuration; + DWORD dwPChannel; + short nOffset; + short nStartValue; + short nEndValue; + short nResetValue; + BYTE bType; + BYTE bCurveShape; + BYTE bCCData; + BYTE bFlags; + WORD wParamType; + WORD wMergeIndex; +} DMUS_IO_CURVE_ITEM; + +typedef struct _DMUS_IO_TEMPO_ITEM +{ + MUSIC_TIME lTime; + double dblTempo; +} DMUS_IO_TEMPO_ITEM; + +typedef struct _DMUS_IO_SYSEX_ITEM +{ + MUSIC_TIME mtTime; + DWORD dwPChannel; + DWORD dwSysExLength; +} DMUS_IO_SYSEX_ITEM; + +typedef DMUS_CHORD_KEY DMUS_CHORD_PARAM; + +typedef struct _DMUS_RHYTHM_PARAM +{ + DMUS_TIMESIGNATURE TimeSig; + DWORD dwRhythmPattern; +} DMUS_RHYTHM_PARAM; + +typedef struct _DMUS_TEMPO_PARAM +{ + MUSIC_TIME mtTime; + double dblTempo; +} DMUS_TEMPO_PARAM; + +typedef struct _DMUS_MUTE_PARAM +{ + DWORD dwPChannel; + DWORD dwPChannelMap; + BOOL fMute; +} DMUS_MUTE_PARAM; + + +typedef enum enumDMUS_VARIATIONT_TYPES +{ + DMUS_VARIATIONT_SEQUENTIAL = 0, + DMUS_VARIATIONT_RANDOM = 1, + DMUS_VARIATIONT_RANDOM_START = 2, + DMUS_VARIATIONT_NO_REPEAT = 3, + DMUS_VARIATIONT_RANDOM_ROW = 4 +} DMUS_VARIATIONT_TYPES; + +typedef struct _DMUS_IO_TIMESIG +{ + BYTE bBeatsPerMeasure; + BYTE bBeat; + WORD wGridsPerBeat; +} DMUS_IO_TIMESIG; + +typedef struct _DMUS_IO_STYLE +{ + DMUS_IO_TIMESIG timeSig; + double dblTempo; +} DMUS_IO_STYLE; + +typedef struct _DMUS_IO_VERSION +{ + DWORD dwVersionMS; + DWORD dwVersionLS; +} DMUS_IO_VERSION; + +typedef struct _DMUS_IO_PATTERN +{ + DMUS_IO_TIMESIG timeSig; + BYTE bGrooveBottom; + BYTE bGrooveTop; + WORD wEmbellishment; + WORD wNbrMeasures; + BYTE bDestGrooveBottom; + BYTE bDestGrooveTop; + DWORD dwFlags; +} DMUS_IO_PATTERN; + +typedef struct _DMUS_IO_STYLEPART +{ + DMUS_IO_TIMESIG timeSig; + DWORD dwVariationChoices[32]; + GUID guidPartID; + WORD wNbrMeasures; + BYTE bPlayModeFlags; + BYTE bInvertUpper; + BYTE bInvertLower; + BYTE bPad[3]; + DWORD dwFlags; +} DMUS_IO_STYLEPART; + +typedef struct _DMUS_IO_PARTREF +{ + GUID guidPartID; + WORD wLogicalPartID; + BYTE bVariationLockID; + BYTE bSubChordLevel; + BYTE bPriority; + BYTE bRandomVariation; + WORD wPad; + DWORD dwPChannel; +} DMUS_IO_PARTREF; + +typedef struct _DMUS_IO_STYLENOTE +{ + MUSIC_TIME mtGridStart; + DWORD dwVariation; + MUSIC_TIME mtDuration; + short nTimeOffset; + WORD wMusicValue; + BYTE bVelocity; + BYTE bTimeRange; + BYTE bDurRange; + BYTE bVelRange; + BYTE bInversionID; + BYTE bPlayModeFlags; + BYTE bNoteFlags; +} DMUS_IO_STYLENOTE; + +typedef struct _DMUS_IO_STYLECURVE +{ + MUSIC_TIME mtGridStart; + DWORD dwVariation; + MUSIC_TIME mtDuration; + MUSIC_TIME mtResetDuration; + short nTimeOffset; + short nStartValue; + short nEndValue; + short nResetValue; + BYTE bEventType; + BYTE bCurveShape; + BYTE bCCData; + BYTE bFlags; + WORD wParamType; + WORD wMergeIndex; +} DMUS_IO_STYLECURVE; + +typedef struct _DMUS_IO_STYLEMARKER +{ + MUSIC_TIME mtGridStart; + DWORD dwVariation; + WORD wMarkerFlags; +} DMUS_IO_STYLEMARKER; + +typedef struct _DMUS_IO_STYLERESOLUTION +{ + DWORD dwVariation; + WORD wMusicValue; + BYTE bInversionID; + BYTE bPlayModeFlags; +} DMUS_IO_STYLERESOLUTION; + +typedef struct _DMUS_IO_STYLE_ANTICIPATION +{ + MUSIC_TIME mtGridStart; + DWORD dwVariation; + short nTimeOffset; + BYTE bTimeRange; +} DMUS_IO_STYLE_ANTICIPATION; + +typedef struct _DMUS_IO_MOTIFSETTINGS +{ + DWORD dwRepeats; + MUSIC_TIME mtPlayStart; + MUSIC_TIME mtLoopStart; + MUSIC_TIME mtLoopEnd; + DWORD dwResolution; +} DMUS_IO_MOTIFSETTINGS; + + +typedef enum enumDMUS_PATTERNT_TYPES +{ + DMUS_PATTERNT_RANDOM = 0, + DMUS_PATTERNT_REPEAT = 1, + DMUS_PATTERNT_SEQUENTIAL = 2, + DMUS_PATTERNT_RANDOM_START = 3, + DMUS_PATTERNT_NO_REPEAT = 4, + DMUS_PATTERNT_RANDOM_ROW = 5 +} DMUS_PATTERNT_TYPES; + +typedef struct _DMUS_IO_CHORD +{ + WCHAR wszName[16]; + MUSIC_TIME mtTime; + WORD wMeasure; + BYTE bBeat; + BYTE bFlags; +} DMUS_IO_CHORD; + +typedef struct _DMUS_IO_SUBCHORD +{ + DWORD dwChordPattern; + DWORD dwScalePattern; + DWORD dwInversionPoints; + DWORD dwLevels; + BYTE bChordRoot; + BYTE bScaleRoot; +} DMUS_IO_SUBCHORD; + +typedef struct _DMUS_IO_COMMAND +{ + MUSIC_TIME mtTime; + WORD wMeasure; + BYTE bBeat; + BYTE bCommand; + BYTE bGrooveLevel; + BYTE bGrooveRange; + BYTE bRepeatMode; +} DMUS_IO_COMMAND; + + +typedef struct _DMUS_IO_TOOL_HEADER +{ + GUID guidClassID; + long lIndex; + DWORD cPChannels; + FOURCC ckid; + FOURCC fccType; + DWORD dwPChannels[1]; +} DMUS_IO_TOOL_HEADER; + + +typedef struct _DMUS_IO_PORTCONFIG_HEADER +{ + GUID guidPort; + DWORD dwPChannelBase; + DWORD dwPChannelCount; + DWORD dwFlags; +} DMUS_IO_PORTCONFIG_HEADER; + +typedef struct _DMUS_IO_PCHANNELTOBUFFER_HEADER +{ + DWORD dwPChannelBase; + DWORD dwPChannelCount; + DWORD dwBufferCount; + DWORD dwFlags; +} DMUS_IO_PCHANNELTOBUFFER_HEADER; + +typedef struct _DMUS_IO_BUFFER_ATTRIBUTES_HEADER +{ + GUID guidBufferID; + DWORD dwFlags; +} DMUS_IO_BUFFER_ATTRIBUTES_HEADER; + + +typedef struct _DMUS_IO_BAND_TRACK_HEADER +{ + BOOL bAutoDownload; +} DMUS_IO_BAND_TRACK_HEADER; + +typedef struct _DMUS_IO_BAND_ITEM_HEADER +{ + MUSIC_TIME lBandTime; +} DMUS_IO_BAND_ITEM_HEADER; + +typedef struct _DMUS_IO_BAND_ITEM_HEADER2 +{ + MUSIC_TIME lBandTimeLogical; + MUSIC_TIME lBandTimePhysical; +} DMUS_IO_BAND_ITEM_HEADER2; + + +typedef struct _DMUS_IO_INSTRUMENT +{ + DWORD dwPatch; + DWORD dwAssignPatch; + DWORD dwNoteRanges[4]; + DWORD dwPChannel; + DWORD dwFlags; + BYTE bPan; + BYTE bVolume; + short nTranspose; + DWORD dwChannelPriority; + short nPitchBendRange; +} DMUS_IO_INSTRUMENT; + + +typedef struct _DMUS_IO_WAVE_HEADER +{ + REFERENCE_TIME rtReadAhead; + DWORD dwFlags; +} DMUS_IO_WAVE_HEADER; + + +typedef struct _DMUS_IO_WAVE_TRACK_HEADER +{ + long lVolume; + DWORD dwFlags; +} DMUS_IO_WAVE_TRACK_HEADER; + +typedef struct _DMUS_IO_WAVE_PART_HEADER +{ + long lVolume; + DWORD dwVariations; + DWORD dwPChannel; + DWORD dwLockToPart; + DWORD dwFlags; + DWORD dwIndex; +} DMUS_IO_WAVE_PART_HEADER; + +typedef struct _DMUS_IO_WAVE_ITEM_HEADER +{ + long lVolume; + long lPitch; + DWORD dwVariations; + REFERENCE_TIME rtTime; + REFERENCE_TIME rtStartOffset; + REFERENCE_TIME rtReserved; + REFERENCE_TIME rtDuration; + MUSIC_TIME mtLogicalTime; + DWORD dwLoopStart; + DWORD dwLoopEnd; + DWORD dwFlags; +} DMUS_IO_WAVE_ITEM_HEADER; + + +typedef struct _DMUS_IO_CONTAINER_HEADER +{ + DWORD dwFlags; +} DMUS_IO_CONTAINER_HEADER; + +typedef struct _DMUS_IO_CONTAINED_OBJECT_HEADER +{ + GUID guidClassID; + DWORD dwFlags; + FOURCC ckid; + FOURCC fccType; +} DMUS_IO_CONTAINED_OBJECT_HEADER; + + +typedef struct _DMUS_IO_SEGMENT_HEADER +{ + DWORD dwRepeats; + MUSIC_TIME mtLength; + MUSIC_TIME mtPlayStart; + MUSIC_TIME mtLoopStart; + MUSIC_TIME mtLoopEnd; + DWORD dwResolution; + REFERENCE_TIME rtLength; + DWORD dwFlags; + DWORD dwReserved; +} DMUS_IO_SEGMENT_HEADER; + + +typedef struct _DMUS_IO_TRACK_HEADER +{ + GUID guidClassID; + DWORD dwPosition; + DWORD dwGroup; + FOURCC ckid; + FOURCC fccType; +} DMUS_IO_TRACK_HEADER; + +typedef struct _DMUS_IO_TRACK_EXTRAS_HEADER +{ + DWORD dwFlags; + DWORD dwPriority; +} DMUS_IO_TRACK_EXTRAS_HEADER; + + +typedef struct _DMUS_IO_SONG_HEADER +{ + DWORD dwFlags; + DWORD dwStartSegID; +} DMUS_IO_SONG_HEADER; + +typedef struct _DMUS_IO_SEGREF_HEADER +{ + DWORD dwID; + DWORD dwSegmentID; + DWORD dwToolGraphID; + DWORD dwFlags; + DWORD dwNextPlayID; +} DMUS_IO_SEGREF_HEADER; + + +typedef struct _DMUS_IO_TRACKREF_HEADER +{ + DWORD dwSegmentID; + DWORD dwFlags; +} DMUS_IO_TRACKREF_HEADER; + + +typedef struct _DMUS_IO_TRANSITION_DEF +{ + DWORD dwSegmentID; + DWORD dwTransitionID; + DWORD dwPlayFlags; +} DMUS_IO_TRANSITION_DEF; + + +typedef struct _DMUS_IO_REFERENCE +{ + GUID guidClassID; + DWORD dwValidData; +} DMUS_IO_REFERENCE; + + +typedef struct _DMUS_IO_CHORDMAP +{ + WCHAR wszLoadName[20]; + DWORD dwScalePattern; + DWORD dwFlags; +} DMUS_IO_CHORDMAP; + +typedef struct _DMUS_IO_CHORDMAP_SUBCHORD +{ + DWORD dwChordPattern; + DWORD dwScalePattern; + DWORD dwInvertPattern; + BYTE bChordRoot; + BYTE bScaleRoot; + WORD wCFlags; + DWORD dwLevels; +} DMUS_IO_CHORDMAP_SUBCHORD, DMUS_IO_PERS_SUBCHORD; + +typedef struct _DMUS_IO_CHORDENTRY +{ + DWORD dwFlags; + WORD wConnectionID; +} DMUS_IO_CHORDENTRY; + +typedef struct _DMUS_IO_NEXTCHORD +{ + DWORD dwFlags; + WORD nWeight; + WORD wMinBeats; + WORD wMaxBeats; + WORD wConnectionID; +} DMUS_IO_NEXTCHORD; + +typedef struct _DMUS_IO_CHORDMAP_SIGNPOST +{ + DWORD dwChords; + DWORD dwFlags; +} DMUS_IO_CHORDMAP_SIGNPOST, DMUS_IO_PERS_SIGNPOST; + + +typedef struct _DMUS_IO_SCRIPT_HEADER +{ + DWORD dwFlags; +} DMUS_IO_SCRIPT_HEADER; + + +typedef struct _DMUS_IO_SIGNPOST +{ + MUSIC_TIME mtTime; + DWORD dwChords; + WORD wMeasure; +} DMUS_IO_SIGNPOST; + + +typedef struct _DMUS_IO_MUTE +{ + MUSIC_TIME mtTime; + DWORD dwPChannel; + DWORD dwPChannelMap; +} DMUS_IO_MUTE; + + +typedef struct _DMUS_IO_TIMESIGNATURE_ITEM +{ + MUSIC_TIME lTime; + BYTE bBeatsPerMeasure; + BYTE bBeat; + WORD wGridsPerBeat; +} DMUS_IO_TIMESIGNATURE_ITEM; + + +typedef struct _DMUS_IO_VALID_START +{ + MUSIC_TIME mtTime; +} DMUS_IO_VALID_START; + +typedef struct _DMUS_IO_PLAY_MARKER +{ + MUSIC_TIME mtTime; +} DMUS_IO_PLAY_MARKER; + + +typedef struct _DMUS_IO_SEGMENT_TRACK_HEADER +{ + DWORD dwFlags; +} DMUS_IO_SEGMENT_TRACK_HEADER; + +typedef struct _DMUS_IO_SEGMENT_ITEM_HEADER +{ + MUSIC_TIME lTimeLogical; + MUSIC_TIME lTimePhysical; + DWORD dwPlayFlags; + DWORD dwFlags; +} DMUS_IO_SEGMENT_ITEM_HEADER; + + +typedef struct _DMUS_IO_SCRIPTTRACK_EVENTHEADER +{ + DWORD dwFlags; + MUSIC_TIME lTimeLogical; + MUSIC_TIME lTimePhysical; +} DMUS_IO_SCRIPTTRACK_EVENTHEADER; + + +typedef struct _DMUS_IO_LYRICSTRACK_EVENTHEADER +{ + DWORD dwFlags; + DWORD dwTimingFlags; + MUSIC_TIME lTimeLogical; + MUSIC_TIME lTimePhysical; +} DMUS_IO_LYRICSTRACK_EVENTHEADER; + + +typedef struct _DMUS_IO_PARAMCONTROLTRACK_OBJECTHEADER +{ + DWORD dwFlags; + GUID guidTimeFormat; + DWORD dwPChannel; + DWORD dwStage; + DWORD dwBuffer; + GUID guidObject; + DWORD dwIndex; +} DMUS_IO_PARAMCONTROLTRACK_OBJECTHEADER; + +typedef struct _DMUS_IO_PARAMCONTROLTRACK_PARAMHEADER +{ + DWORD dwFlags; + DWORD dwIndex; +} DMUS_IO_PARAMCONTROLTRACK_PARAMHEADER; + +typedef struct _DMUS_IO_PARAMCONTROLTRACK_CURVEINFO +{ + MUSIC_TIME mtStartTime; + MUSIC_TIME mtEndTime; + float fltStartValue; + float fltEndValue; + DWORD dwCurveType; + DWORD dwFlags; +} DMUS_IO_PARAMCONTROLTRACK_CURVEINFO; + + +typedef DMUS_CONNECTION_RULE DMUS_IO_CONNECTION_RULE; + +typedef DMUS_MELODY_FRAGMENT DMUS_IO_MELODY_FRAGMENT; + +typedef struct _DMUS_IO_MELFORM +{ + DWORD dwPlaymode; +} DMUS_IO_MELFORM; + + +typedef struct _DSOUND_IO_DSBUFFERDESC +{ + DWORD dwFlags; + WORD nChannels; + LONG lVolume; + LONG lPan; + DWORD dwReserved; +} DSOUND_IO_DSBUFFERDESC; + +typedef struct _DSOUND_IO_DSBUSID +{ + DWORD busid[1]; +} DSOUND_IO_DSBUSID; + +typedef struct _DSOUND_IO_3D +{ + GUID guid3DAlgorithm; + DS3DBUFFER ds3d; +} DSOUND_IO_3D; + +typedef struct _DSOUND_IO_DXDMO_HEADER +{ + DWORD dwEffectFlags; + GUID guidDSFXClass; + GUID guidReserved; + GUID guidSendBuffer; + DWORD dwReserved; +} DSOUND_IO_DXDMO_HEADER; + +typedef struct _DSOUND_IO_DXDMO_DATA +{ + DWORD data[1]; +} DSOUND_IO_DXDMO_DATA; + +#ifdef __cplusplus +} +#endif + +#endif /* __WINE_DMUSIC_FILEFORMATS_H */ diff --git a/include/dmusici.h b/include/dmusici.h new file mode 100644 index 00000000000..4afd3302614 --- /dev/null +++ b/include/dmusici.h @@ -0,0 +1,1662 @@ +/* + * DirectMusic Performance API + * + * Copyright (C) 2003 Rok Mandeljc + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __WINE_DMUSIC_PERFORMANCE_H +#define __WINE_DMUSIC_PERFORMANCE_H + +#include "objbase.h" +#include "mmsystem.h" + +#include "oleauto.h" + +#ifdef __cplusplus +extern "C" { +#endif + + +/***************************************************************************** + * Types + */ +typedef WORD TRANSITION_TYPE; +/* Already defined somewhere? */ +/* typedef __int64 REFERENCE_TIME; */ +typedef long MUSIC_TIME; + +/***************************************************************************** + * Predeclare the interfaces + */ +DEFINE_GUID(CLSID_DirectMusicPerformance, 0xd2ac2881,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicSegment, 0xd2ac2882,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicSegmentState, 0xd2ac2883,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicGraph, 0xd2ac2884,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicStyle, 0xd2ac288a,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicChordMap, 0xd2ac288f,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicComposer, 0xd2ac2890,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicLoader, 0xd2ac2892,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicBand, 0x79ba9e00,0xb6ee,0x11d1,0x86,0xbe,0x0,0xc0,0x4f,0xbf,0x8f,0xef); +DEFINE_GUID(CLSID_DirectMusicPatternTrack, 0xd2ac2897,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(CLSID_DirectMusicScript, 0x810b5013,0xe88d,0x11d2,0x8b,0xc1,0x0,0x60,0x8,0x93,0xb1,0xb6); +DEFINE_GUID(CLSID_DirectMusicContainer, 0x9301e380,0x1f22,0x11d3,0x82,0x26,0xd2,0xfa,0x76,0x25,0x5d,0x47); +DEFINE_GUID(CLSID_DirectSoundWave, 0x8a667154,0xf9cb,0x11d2,0xad,0x8a,0x0,0x60,0xb0,0x57,0x5a,0xbc); +DEFINE_GUID(CLSID_DirectMusicSong, 0xaed5f0a5,0xd972,0x483d,0xa3,0x84,0x64,0x9d,0xfe,0xb9,0xc1,0x81); +DEFINE_GUID(CLSID_DirectMusicAudioPathConfig, 0xee0b9ca0,0xa81e,0x11d3,0x9b,0xd1,0x0,0x80,0xc7,0x15,0xa,0x74); + +DEFINE_GUID(IID_IDirectMusicLoader, 0x2ffaaca2,0x5dca,0x11d2,0xaf,0xa6,0x0,0xaa,0x0,0x24,0xd8,0xb6); +typedef struct IDirectMusicLoader IDirectMusicLoader, *LPDIRECTMUSICLOADER, *LPDMUS_LOADER; +DEFINE_GUID(IID_IDirectMusicGetLoader, 0x68a04844,0xd13d,0x11d1,0xaf,0xa6,0x0,0xaa,0x0,0x24,0xd8,0xb6); +#define IID_IDirectMusicGetLoader8 IID_IDirectMusicGetLoader +typedef struct IDirectMusicGetLoader IDirectMusicGetLoader, *LPDIRECTMUSICGETLOADER, IDirectMusicGetLoader8, *LPDIRECTMUSICGETLOADER8; +DEFINE_GUID(IID_IDirectMusicObject, 0xd2ac28b5,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +#define IID_IDirectMusicObject8 IID_IDirectMusicObject +typedef struct IDirectMusicObject IDirectMusicObject, *LPDIRECTMUSICOBJECT, IDirectMusicObject8, *LPDIRECTMUSICOBJECT8, *LPDMUS_OBJECT; +DEFINE_GUID(IID_IDirectMusicSegment, 0xf96029a2,0x4282,0x11d2,0x87,0x17,0x0,0x60,0x8,0x93,0xb1,0xbd); +typedef struct IDirectMusicSegment IDirectMusicSegment, *LPDIRECTMUSICSEGMENT; +DEFINE_GUID(IID_IDirectMusicSegmentState, 0xa3afdcc7,0xd3ee,0x11d1,0xbc,0x8d,0x0,0xa0,0xc9,0x22,0xe6,0xeb); +typedef struct IDirectMusicSegmentState IDirectMusicSegmentState, *LPDIRECTMUSICSEGMENTSTATE; +DEFINE_GUID(IID_IDirectMusicPerformance, 0x7d43d03,0x6523,0x11d2,0x87,0x1d,0x0,0x60,0x8,0x93,0xb1,0xbd); +typedef struct IDirectMusicPerformance IDirectMusicPerformance, *LPDIRECTMUSICPERFORMANCE; +DEFINE_GUID(IID_IDirectMusicGraph, 0x2befc277,0x5497,0x11d2,0xbc,0xcb,0x0,0xa0,0xc9,0x22,0xe6,0xeb); +#define IID_IDirectMusicGraph8 IID_IDirectMusicGraph +typedef struct IDirectMusicGraph IDirectMusicGraph, *LPDIRECTMUSICGRAPH, IDirectMusicGraph8, *LPDIRECTMUSICGRAPH8; +DEFINE_GUID(IID_IDirectMusicStyle, 0xd2ac28bd,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +typedef struct IDirectMusicStyle IDirectMusicStyle, *LPDIRECTMUSICSTYLE; +DEFINE_GUID(IID_IDirectMusicChordMap, 0xd2ac28be,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +#define IID_IDirectMusicChordMap8 IID_IDirectMusicChordMap +typedef struct IDirectMusicChordMap IDirectMusicChordMap, *LPDIRECTMUSICCHORDMAP, IDirectMusicChordMap8, *LPDIRECTMUSICCHORDMAP8; +DEFINE_GUID(IID_IDirectMusicComposer, 0xd2ac28bf,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +#define IID_IDirectMusicComposer8 IID_IDirectMusicComposer +typedef struct IDirectMusicComposer IDirectMusicComposer, *LPDIRECTMUSICCOMPOSER; +DEFINE_GUID(IID_IDirectMusicBand, 0xd2ac28c0,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +#define IID_IDirectMusicBand8 IID_IDirectMusicBand +typedef struct IDirectMusicBand IDirectMusicBand, *LPDIRECTMUSICBAND, IDirectMusicBand8, *LPDIRECTMUSICBAND8, *LPDMUS_BAND; +DEFINE_GUID(IID_IDirectMusicPerformance2, 0x6fc2cae0,0xbc78,0x11d2,0xaf,0xa6,0x0,0xaa,0x0,0x24,0xd8,0xb6); +typedef struct IDirectMusicPerformance2 IDirectMusicPerformance2, *LPDIRECTMUSICPERFORMANCE2; +DEFINE_GUID(IID_IDirectMusicSegment2, 0xd38894d1,0xc052,0x11d2,0x87,0x2f,0x0,0x60,0x8,0x93,0xb1,0xbd); +typedef struct IDirectMusicSegment2 IDirectMusicSegment2, *LPDIRECTMUSICSEGMENT2; +DEFINE_GUID(IID_IDirectMusicLoader8, 0x19e7c08c,0xa44,0x4e6a,0xa1,0x16,0x59,0x5a,0x7c,0xd5,0xde,0x8c); +typedef struct IDirectMusicLoader8 IDirectMusicLoader8, *LPDIRECTMUSICLOADER8; +DEFINE_GUID(IID_IDirectMusicPerformance8, 0x679c4137,0xc62e,0x4147,0xb2,0xb4,0x9d,0x56,0x9a,0xcb,0x25,0x4c); +typedef struct IDirectMusicPerformance8 IDirectMusicPerformance8, *LPDIRECTMUSICPERFORMANCE8; +DEFINE_GUID(IID_IDirectMusicSegment8, 0xc6784488,0x41a3,0x418f,0xaa,0x15,0xb3,0x50,0x93,0xba,0x42,0xd4); +typedef struct IDirectMusicSegment8 IDirectMusicSegment8, *LPDIRECTMUSICSEGMENT8; +DEFINE_GUID(IID_IDirectMusicSegmentState8, 0xa50e4730,0xae4,0x48a7,0x98,0x39,0xbc,0x4,0xbf,0xe0,0x77,0x72); +typedef struct IDirectMusicSegmentState8 IDirectMusicSegmentState8, *LPDIRECTMUSICSEGMENTSTATE8; +DEFINE_GUID(IID_IDirectMusicStyle8, 0xfd24ad8a,0xa260,0x453d,0xbf,0x50,0x6f,0x93,0x84,0xf7,0x9,0x85); +typedef struct IDirectMusicStyle8 IDirectMusicStyle8, *LPDIRECTMUSICSTYLE8; +DEFINE_GUID(IID_IDirectMusicPatternTrack, 0x51c22e10,0xb49f,0x46fc,0xbe,0xc2,0xe6,0x28,0x8f,0xb9,0xed,0xe6); +#define IID_IDirectMusicPatternTrack8 IID_IDirectMusicPatternTrack +typedef struct IDirectMusicPatternTrack IDirectMusicPatternTrack, *LPDIRECTMUSICPATTERNTRACK, IDirectMusicPatternTrack8, *LPDIRECTMUSICPATTERNTRACK8; +DEFINE_GUID(IID_IDirectMusicScript, 0x2252373a,0x5814,0x489b,0x82,0x9,0x31,0xfe,0xde,0xba,0xf1,0x37); +#define IID_IDirectMusicScript8 IID_IDirectMusicScript +typedef struct IDirectMusicScript IDirectMusicScript, *LPDIRECTMUSICSCRIPT, IDirectMusicScript8, *LPDIRECTMUSICSCRIPT8; +DEFINE_GUID(IID_IDirectMusicContainer, 0x9301e386,0x1f22,0x11d3,0x82,0x26,0xd2,0xfa,0x76,0x25,0x5d,0x47); +#define IID_IDirectMusicContainer8 IID_IDirectMusicContainer +typedef struct IDirectMusicContainer IDirectMusicContainer, *LPDIRECTMUSICCONTAINER, IDirectMusicContainer8, *LPDIRECTMUSICCONTAINER8; +DEFINE_GUID(IID_IDirectMusicSong, 0xa862b2ec,0x3676,0x4982,0x85,0xa,0x78,0x42,0x77,0x5e,0x1d,0x86); +#define IID_IDirectMusicSong8 IID_IDirectMusicSong +typedef struct IDirectMusicSong IDirectMusicSong, *LPDIRECTMUSICSONG, IDirectMusicSong8, *LPDIRECTMUSICSONG8; +DEFINE_GUID(IID_IDirectMusicAudioPath, 0xc87631f5,0x23be,0x4986,0x88,0x36,0x5,0x83,0x2f,0xcc,0x48,0xf9); +#define IID_IDirectMusicAudioPath8 IID_IDirectMusicAudioPath +typedef struct IDirectMusicAudioPath IDirectMusicAudioPath, *LPDIRECTMUSICAUDIOPATH, IDirectMusicAudioPath8, *LPDIRECTMUSICAUDIOPATH8; + +/* Imported from dmplugin.h */ +typedef struct IDirectMusicTrack IDirectMusicTrack, *LPDIRECTMUSICTRACK; +typedef struct IDirectMusicTool IDirectMusicTool, *LPDIRECTMUSICTOOL; +typedef struct IDirectMusicTool8 IDirectMusicTool8, *LPDIRECTMUSICTOOL8; +typedef struct IDirectMusicTrack8 IDirectMusicTrack8, *LPDIRECTMUSICTRACK8; + +DEFINE_GUID(GUID_DirectMusicAllTypes, 0xd2ac2893,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); + +DEFINE_GUID(GUID_NOTIFICATION_SEGMENT, 0xd2ac2899,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_NOTIFICATION_PERFORMANCE, 0x81f75bc5,0x4e5d,0x11d2,0xbc,0xc7,0x0,0xa0,0xc9,0x22,0xe6,0xeb); +DEFINE_GUID(GUID_NOTIFICATION_MEASUREANDBEAT, 0xd2ac289a,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_NOTIFICATION_CHORD, 0xd2ac289b,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_NOTIFICATION_COMMAND, 0xd2ac289c,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_NOTIFICATION_RECOMPOSE, 0xd348372b,0x945b,0x45ae,0xa5,0x22,0x45,0xf,0x12,0x5b,0x84,0xa5); + +DEFINE_GUID(GUID_CommandParam, 0xd2ac289d,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_CommandParam2, 0x28f97ef7,0x9538,0x11d2,0x97,0xa9,0x0,0xc0,0x4f,0xa3,0x6e,0x58); +DEFINE_GUID(GUID_CommandParamNext, 0x472afe7a,0x281b,0x11d3,0x81,0x7d,0x0,0xc0,0x4f,0xa3,0x6e,0x58); +DEFINE_GUID(GUID_ChordParam, 0xd2ac289e,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_RhythmParam, 0xd2ac289f,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_IDirectMusicStyle, 0xd2ac28a1,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_TimeSignature, 0xd2ac28a4,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_TempoParam, 0xd2ac28a5,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_Valid_Start_Time, 0x7f6b1760,0x1fdb,0x11d3,0x82,0x26,0x44,0x45,0x53,0x54,0x0,0x0); +DEFINE_GUID(GUID_Play_Marker, 0xd8761a41,0x801a,0x11d3,0x9b,0xd1,0xda,0xf7,0xe1,0xc3,0xd8,0x34); +DEFINE_GUID(GUID_BandParam, 0x2bb1938,0xcb8b,0x11d2,0x8b,0xb9,0x0,0x60,0x8,0x93,0xb1,0xb6); +DEFINE_GUID(GUID_IDirectMusicBand, 0xd2ac28ac,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_IDirectMusicChordMap, 0xd2ac28ad,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_MuteParam, 0xd2ac28af,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); + +DEFINE_GUID(GUID_Download, 0xd2ac28a7,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_Unload, 0xd2ac28a8,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_ConnectToDLSCollection, 0x1db1ae6b,0xe92e,0x11d1,0xa8,0xc5,0x0,0xc0,0x4f,0xa3,0x72,0x6e); +DEFINE_GUID(GUID_Enable_Auto_Download, 0xd2ac28a9,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_Disable_Auto_Download, 0xd2ac28aa,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_Clear_All_Bands, 0xd2ac28ab,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_StandardMIDIFile, 0x6621075,0xe92e,0x11d1,0xa8,0xc5,0x0,0xc0,0x4f,0xa3,0x72,0x6e); +#define GUID_IgnoreBankSelectForGM GUID_StandardMIDIFile + +DEFINE_GUID(GUID_DisableTimeSig, 0x45fc707b,0x1db4,0x11d2,0xbc,0xac,0x0,0xa0,0xc9,0x22,0xe6,0xeb); +DEFINE_GUID(GUID_EnableTimeSig, 0x45fc707c,0x1db4,0x11d2,0xbc,0xac,0x0,0xa0,0xc9,0x22,0xe6,0xeb); +DEFINE_GUID(GUID_DisableTempo, 0x45fc707d,0x1db4,0x11d2,0xbc,0xac,0x0,0xa0,0xc9,0x22,0xe6,0xeb); +DEFINE_GUID(GUID_EnableTempo, 0x45fc707e,0x1db4,0x11d2,0xbc,0xac,0x0,0xa0,0xc9,0x22,0xe6,0xeb); + +DEFINE_GUID(GUID_SeedVariations, 0x65b76fa5,0xff37,0x11d2,0x81,0x4e,0x0,0xc0,0x4f,0xa3,0x6e,0x58); +DEFINE_GUID(GUID_MelodyFragment, 0xb291c7f2,0xb616,0x11d2,0x97,0xfa,0x0,0xc0,0x4f,0xa3,0x6e,0x58); +DEFINE_GUID(GUID_Clear_All_MelodyFragments, 0x8509fee6,0xb617,0x11d2,0x97,0xfa,0x0,0xc0,0x4f,0xa3,0x6e,0x58); +DEFINE_GUID(GUID_Variations, 0x11f72cce,0x26e6,0x4ecd,0xaf,0x2e,0xd6,0x68,0xe6,0x67,0x7,0xd8); +DEFINE_GUID(GUID_DownloadToAudioPath, 0x9f2c0341,0xc5c4,0x11d3,0x9b,0xd1,0x44,0x45,0x53,0x54,0x0,0x0); +DEFINE_GUID(GUID_UnloadFromAudioPath, 0x9f2c0342,0xc5c4,0x11d3,0x9b,0xd1,0x44,0x45,0x53,0x54,0x0,0x0); + +DEFINE_GUID(GUID_PerfMasterTempo, 0xd2ac28b0,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_PerfMasterVolume, 0xd2ac28b1,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_PerfMasterGrooveLevel, 0xd2ac28b2,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd); +DEFINE_GUID(GUID_PerfAutoDownload, 0xfb09565b,0x3631,0x11d2,0xbc,0xb8,0x0,0xa0,0xc9,0x22,0xe6,0xeb); + +DEFINE_GUID(GUID_DefaultGMCollection, 0xf17e8673,0xc3b4,0x11d1,0x87,0xb,0x0,0x60,0x8,0x93,0xb1,0xbd); + +DEFINE_GUID(GUID_Synth_Default, 0x26bb9432,0x45fe,0x48d3,0xa3,0x75,0x24,0x72,0xc5,0xe3,0xe7,0x86); + +DEFINE_GUID(GUID_Buffer_Reverb, 0x186cc541,0xdb29,0x11d3,0x9b,0xd1,0x0,0x80,0xc7,0x15,0xa,0x74); +DEFINE_GUID(GUID_Buffer_EnvReverb, 0x186cc542,0xdb29,0x11d3,0x9b,0xd1,0x0,0x80,0xc7,0x15,0xa,0x74); +DEFINE_GUID(GUID_Buffer_Stereo, 0x186cc545,0xdb29,0x11d3,0x9b,0xd1,0x0,0x80,0xc7,0x15,0xa,0x74); +DEFINE_GUID(GUID_Buffer_3D_Dry, 0x186cc546,0xdb29,0x11d3,0x9b,0xd1,0x0,0x80,0xc7,0x15,0xa,0x74); +DEFINE_GUID(GUID_Buffer_Mono, 0x186cc547,0xdb29,0x11d3,0x9b,0xd1,0x0,0x80,0xc7,0x15,0xa,0x74); + + +/***************************************************************************** + * Definitions + */ +#define MT_MIN 0x80000000 +#define MT_MAX 0x7FFFFFFF + +#define DMUS_PPQ 768 + +#define DMUS_PMSG_PART \ + DWORD dwSize; \ + REFERENCE_TIME rtTime; \ + MUSIC_TIME mtTime; \ + DWORD dwFlags; \ + DWORD dwPChannel; \ + DWORD dwVirtualTrackID; \ + IDirectMusicTool* pTool; \ + IDirectMusicGraph* pGraph; \ + DWORD dwType; \ + DWORD dwVoiceID; \ + DWORD dwGroupID; \ + IUnknown* punkUser; + +#define DMUS_PCHANNEL_BROADCAST_PERFORMANCE 0xFFFFFFFF +#define DMUS_PCHANNEL_BROADCAST_AUDIOPATH 0xFFFFFFFE +#define DMUS_PCHANNEL_BROADCAST_SEGMENT 0xFFFFFFFD +#define DMUS_PCHANNEL_BROADCAST_GROUPS 0xFFFFFFFC +#define DMUS_PCHANNEL_ALL 0xFFFFFFFB + +#define DMUS_PATH_SEGMENT 0x1000 +#define DMUS_PATH_SEGMENT_TRACK 0x1100 +#define DMUS_PATH_SEGMENT_GRAPH 0x1200 +#define DMUS_PATH_SEGMENT_TOOL 0x1300 +#define DMUS_PATH_AUDIOPATH 0x2000 +#define DMUS_PATH_AUDIOPATH_GRAPH 0x2200 +#define DMUS_PATH_AUDIOPATH_TOOL 0x2300 +#define DMUS_PATH_PERFORMANCE 0x3000 +#define DMUS_PATH_PERFORMANCE_GRAPH 0x3200 +#define DMUS_PATH_PERFORMANCE_TOOL 0x3300 +#define DMUS_PATH_PORT 0x4000 +#define DMUS_PATH_BUFFER 0x6000 +#define DMUS_PATH_BUFFER_DMO 0x6100 +#define DMUS_PATH_MIXIN_BUFFER 0x7000 +#define DMUS_PATH_MIXIN_BUFFER_DMO 0x7100 +#define DMUS_PATH_PRIMARY_BUFFER 0x8000 + +#define DMUS_APATH_SHARED_STEREOPLUSREVERB 0x1 +#define DMUS_APATH_DYNAMIC_3D 0x6 +#define DMUS_APATH_DYNAMIC_MONO 0x7 +#define DMUS_APATH_DYNAMIC_STEREO 0x8 + +#define DMUS_AUDIOF_3D 0x1 +#define DMUS_AUDIOF_ENVIRON 0x2 +#define DMUS_AUDIOF_EAX 0x4 +#define DMUS_AUDIOF_DMOS 0x8 +#define DMUS_AUDIOF_STREAMING 0x10 +#define DMUS_AUDIOF_BUFFERS 0x20 +#define DMUS_AUDIOF_ALL 0x3F + +#define DMUS_AUDIOPARAMS_FEATURES 0x00000001 +#define DMUS_AUDIOPARAMS_VOICES 0x00000002 +#define DMUS_AUDIOPARAMS_SAMPLERATE 0x00000004 +#define DMUS_AUDIOPARAMS_DEFAULTSYNTH 0x00000008 + +#define DMUS_SEG_REPEAT_INFINITE 0xFFFFFFFF +#define DMUS_SEG_ALLTRACKS 0x80000000 +#define DMUS_SEG_ANYTRACK 0x80000000 + +#define DMUS_MAXSUBCHORD 8 + +#define DMUS_PLAYMODE_FIXED 0 +#define DMUS_PLAYMODE_FIXEDTOKEY DMUS_PLAYMODE_KEY_ROOT +#define DMUS_PLAYMODE_FIXEDTOCHORD DMUS_PLAYMODE_CHORD_ROOT +#define DMUS_PLAYMODE_PEDALPOINT (DMUS_PLAYMODE_KEY_ROOT | DMUS_PLAYMODE_SCALE_INTERVALS) +#define DMUS_PLAYMODE_MELODIC (DMUS_PLAYMODE_CHORD_ROOT | DMUS_PLAYMODE_SCALE_INTERVALS) +#define DMUS_PLAYMODE_NORMALCHORD (DMUS_PLAYMODE_CHORD_ROOT | DMUS_PLAYMODE_CHORD_INTERVALS) +#define DMUS_PLAYMODE_ALWAYSPLAY (DMUS_PLAYMODE_MELODIC | DMUS_PLAYMODE_NORMALCHORD) +#define DMUS_PLAYMODE_PEDALPOINTCHORD (DMUS_PLAYMODE_KEY_ROOT | DMUS_PLAYMODE_CHORD_INTERVALS) +#define DMUS_PLAYMODE_PEDALPOINTALWAYS (DMUS_PLAYMODE_PEDALPOINT | DMUS_PLAYMODE_PEDALPOINTCHORD) +#define DMUS_PLAYMODE_PURPLEIZED DMUS_PLAYMODE_ALWAYSPLAY +#define DMUS_PLAYMODE_SCALE_ROOT DMUS_PLAYMODE_KEY_ROOT +#define DMUS_PLAYMODE_FIXEDTOSCALE DMUS_PLAYMODE_FIXEDTOKEY + +#define DMUS_TEMPO_MAX 1000 +#define DMUS_TEMPO_MIN 1 + +#define DMUS_MASTERTEMPO_MAX 100.0f +#define DMUS_MASTERTEMPO_MIN 0.01f + +#define DMUS_CURVET_PBCURVE 0x03 +#define DMUS_CURVET_CCCURVE 0x04 +#define DMUS_CURVET_MATCURVE 0x05 +#define DMUS_CURVET_PATCURVE 0x06 +#define DMUS_CURVET_RPNCURVE 0x07 +#define DMUS_CURVET_NRPNCURVE 0x08 + +#define DMUS_NOTIFICATION_SEGSTART 0x0 +#define DMUS_NOTIFICATION_SEGEND 0x1 +#define DMUS_NOTIFICATION_SEGALMOSTEND 0x2 +#define DMUS_NOTIFICATION_SEGLOOP 0x3 +#define DMUS_NOTIFICATION_SEGABORT 0x4 + +#define DMUS_NOTIFICATION_MUSICSTARTED 0x0 +#define DMUS_NOTIFICATION_MUSICSTOPPED 0x1 +#define DMUS_NOTIFICATION_MUSICALMOSTEND 0x2 + +#define DMUS_NOTIFICATION_MEASUREBEAT 0x0 + +#define DMUS_NOTIFICATION_CHORD 0x0 + +#define DMUS_NOTIFICATION_GROOVE 0x0 +#define DMUS_NOTIFICATION_EMBELLISHMENT 0x1 + +#define DMUS_NOTIFICATION_RECOMPOSE 0x0 + +#define DMUS_WAVEF_OFF 0x1 +#define DMUS_WAVEF_STREAMING 0x2 +#define DMUS_WAVEF_NOINVALIDATE 0x4 +#define DMUS_WAVEF_NOPREROLL 0x8 + +#define DMUS_MAX_NAME 0x40 +#define DMUS_MAX_CATEGORY 0x40 +#define DMUS_MAX_FILENAME MAX_PATH + +#define DMUS_OBJ_OBJECT 0x001 +#define DMUS_OBJ_CLASS 0x002 +#define DMUS_OBJ_NAME 0x004 +#define DMUS_OBJ_CATEGORY 0x008 +#define DMUS_OBJ_FILENAME 0x010 +#define DMUS_OBJ_FULLPATH 0x020 +#define DMUS_OBJ_URL 0x040 +#define DMUS_OBJ_VERSION 0x080 +#define DMUS_OBJ_DATE 0x100 +#define DMUS_OBJ_LOADED 0x200 +#define DMUS_OBJ_MEMORY 0x400 +#define DMUS_OBJ_STREAM 0x800 + +#define DMUS_TRACKCONFIG_OVERRIDE_ALL 0x00001 +#define DMUS_TRACKCONFIG_OVERRIDE_PRIMARY 0x00002 +#define DMUS_TRACKCONFIG_FALLBACK 0x00004 +#define DMUS_TRACKCONFIG_CONTROL_ENABLED 0x00008 +#define DMUS_TRACKCONFIG_PLAY_ENABLED 0x00010 +#define DMUS_TRACKCONFIG_NOTIFICATION_ENABLED 0x00020 +#define DMUS_TRACKCONFIG_PLAY_CLOCKTIME 0x00040 +#define DMUS_TRACKCONFIG_PLAY_COMPOSE 0x00080 +#define DMUS_TRACKCONFIG_LOOP_COMPOSE 0x00100 +#define DMUS_TRACKCONFIG_COMPOSING 0x00200 +#define DMUS_TRACKCONFIG_TRANS1_FROMSEGSTART 0x00400 +#define DMUS_TRACKCONFIG_TRANS1_FROMSEGCURRENT 0x00800 +#define DMUS_TRACKCONFIG_TRANS1_TOSEGSTART 0x01000 +#define DMUS_TRACKCONFIG_CONTROL_PLAY 0x10000 +#define DMUS_TRACKCONFIG_CONTROL_NOTIFICATION 0x20000 +#define DMUS_TRACKCONFIG_DEFAULT (DMUS_TRACKCONFIG_CONTROL_ENABLED | DMUS_TRACKCONFIG_PLAY_ENABLED | DMUS_TRACKCONFIG_NOTIFICATION_ENABLED) + +#define DMUS_MAX_FRAGMENTLABEL 20 + +#define DMUS_FRAGMENTF_USE_REPEAT 0x1 +#define DMUS_FRAGMENTF_REJECT_REPEAT 0x2 +#define DMUS_FRAGMENTF_USE_LABEL 0x4 + +#define DMUS_CONNECTIONF_INTERVALS 0x2 +#define DMUS_CONNECTIONF_OVERLAP 0x4 + +#define DMUSB_LOADED 0x1 +#define DMUSB_DEFAULT 0x2 + +/***************************************************************************** + * Structures + */ +typedef enum enumDMUS_STYLET_TYPES +{ + DMUS_STYLET_PATTERN = 0, + DMUS_STYLET_MOTIF = 1, + DMUS_STYLET_FRAGMENT = 2, +} DMUS_STYLET_TYPES; + +typedef enum enumDMUS_COMMANDT_TYPES +{ + DMUS_COMMANDT_GROOVE = 0, + DMUS_COMMANDT_FILL = 1, + DMUS_COMMANDT_INTRO = 2, + DMUS_COMMANDT_BREAK = 3, + DMUS_COMMANDT_END = 4, + DMUS_COMMANDT_ENDANDINTRO = 5 +} DMUS_COMMANDT_TYPES; + +typedef enum enumDMUS_SHAPET_TYPES +{ + DMUS_SHAPET_FALLING = 0, + DMUS_SHAPET_LEVEL = 1, + DMUS_SHAPET_LOOPABLE = 2, + DMUS_SHAPET_LOUD = 3, + DMUS_SHAPET_QUIET = 4, + DMUS_SHAPET_PEAKING = 5, + DMUS_SHAPET_RANDOM = 6, + DMUS_SHAPET_RISING = 7, + DMUS_SHAPET_SONG = 8 +} DMUS_SHAPET_TYPES; + +typedef enum enumDMUS_COMPOSEF_FLAGS +{ + DMUS_COMPOSEF_NONE = 0x00000, + DMUS_COMPOSEF_ALIGN = 0x00001, + DMUS_COMPOSEF_OVERLAP = 0x00002, + DMUS_COMPOSEF_IMMEDIATE = 0x00004, + DMUS_COMPOSEF_GRID = 0x00008, + DMUS_COMPOSEF_BEAT = 0x00010, + DMUS_COMPOSEF_MEASURE = 0x00020, + DMUS_COMPOSEF_AFTERPREPARETIME = 0x00040, + DMUS_COMPOSEF_VALID_START_BEAT = 0x00080, + DMUS_COMPOSEF_VALID_START_GRID = 0x00100, + DMUS_COMPOSEF_VALID_START_TICK = 0x00200, + DMUS_COMPOSEF_SEGMENTEND = 0x00400, + DMUS_COMPOSEF_MARKER = 0x00800, + DMUS_COMPOSEF_MODULATE = 0x01000, + DMUS_COMPOSEF_LONG = 0x02000, + DMUS_COMPOSEF_ENTIRE_TRANSITION = 0x04000, + DMUS_COMPOSEF_1BAR_TRANSITION = 0x08000, + DMUS_COMPOSEF_ENTIRE_ADDITION = 0x10000, + DMUS_COMPOSEF_1BAR_ADDITION = 0x20000, + DMUS_COMPOSEF_VALID_START_MEASURE = 0x40000, + DMUS_COMPOSEF_DEFAULT = 0x80000, + DMUS_COMPOSEF_NOINVALIDATE = 0x100000, + DMUS_COMPOSEF_USE_AUDIOPATH = 0x200000, + DMUS_COMPOSEF_INVALIDATE_PRI = 0x400000 +} DMUS_COMPOSEF_FLAGS; + +typedef struct _DMUS_PMSG +{ + DMUS_PMSG_PART +} DMUS_PMSG; + +typedef struct _DMUS_AUDIOPARAMS +{ + DWORD dwSize; + BOOL fInitNow; + DWORD dwValidData; + DWORD dwFeatures; + DWORD dwVoices; + DWORD dwSampleRate; + CLSID clsidDefaultSynth; +} DMUS_AUDIOPARAMS; + +typedef enum enumDMUS_PMSGF_FLAGS +{ + DMUS_PMSGF_REFTIME = 0x01, + DMUS_PMSGF_MUSICTIME = 0x02, + DMUS_PMSGF_TOOL_IMMEDIATE = 0x04, + DMUS_PMSGF_TOOL_QUEUE = 0x08, + DMUS_PMSGF_TOOL_ATTIME = 0x10, + DMUS_PMSGF_TOOL_FLUSH = 0x20, + DMUS_PMSGF_LOCKTOREFTIME = 0x40, + DMUS_PMSGF_DX8 = 0x80 +} DMUS_PMSGF_FLAGS; + +typedef enum enumDMUS_PMSGT_TYPES +{ + DMUS_PMSGT_MIDI = 0, + DMUS_PMSGT_NOTE = 1, + DMUS_PMSGT_SYSEX = 2, + DMUS_PMSGT_NOTIFICATION = 3, + DMUS_PMSGT_TEMPO = 4, + DMUS_PMSGT_CURVE = 5, + DMUS_PMSGT_TIMESIG = 6, + DMUS_PMSGT_PATCH = 7, + DMUS_PMSGT_TRANSPOSE = 8, + DMUS_PMSGT_CHANNEL_PRIORITY = 9, + DMUS_PMSGT_STOP = 10, + DMUS_PMSGT_DIRTY = 11, + DMUS_PMSGT_WAVE = 12, + DMUS_PMSGT_LYRIC = 13, + DMUS_PMSGT_SCRIPTLYRIC = 14, + DMUS_PMSGT_USER = 255 +} DMUS_PMSGT_TYPES; + +typedef enum enumDMUS_SEGF_FLAGS +{ + DMUS_SEGF_REFTIME = 0x00000040, + DMUS_SEGF_SECONDARY = 0x00000080, + DMUS_SEGF_QUEUE = 0x00000100, + DMUS_SEGF_CONTROL = 0x00000200, + DMUS_SEGF_AFTERPREPARETIME = 0x00000400, + DMUS_SEGF_GRID = 0x00000800, + DMUS_SEGF_BEAT = 0x00001000, + DMUS_SEGF_MEASURE = 0x00002000, + DMUS_SEGF_DEFAULT = 0x00004000, + DMUS_SEGF_NOINVALIDATE = 0x00008000, + DMUS_SEGF_ALIGN = 0x00010000, + DMUS_SEGF_VALID_START_BEAT = 0x00020000, + DMUS_SEGF_VALID_START_GRID = 0x00040000, + DMUS_SEGF_VALID_START_TICK = 0x00080000, + DMUS_SEGF_AUTOTRANSITION = 0x00100000, + DMUS_SEGF_AFTERQUEUETIME = 0x00200000, + DMUS_SEGF_AFTERLATENCYTIME = 0x00400000, + DMUS_SEGF_SEGMENTEND = 0x00800000, + DMUS_SEGF_MARKER = 0x01000000, + DMUS_SEGF_TIMESIG_ALWAYS = 0x02000000, + DMUS_SEGF_USE_AUDIOPATH = 0x04000000, + DMUS_SEGF_VALID_START_MEASURE = 0x08000000, + DMUS_SEGF_INVALIDATE_PRI = 0x10000000 +} DMUS_SEGF_FLAGS; + +typedef enum enumDMUS_TIME_RESOLVE_FLAGS +{ + DMUS_TIME_RESOLVE_AFTERPREPARETIME = DMUS_SEGF_AFTERPREPARETIME, + DMUS_TIME_RESOLVE_AFTERQUEUETIME = DMUS_SEGF_AFTERQUEUETIME, + DMUS_TIME_RESOLVE_AFTERLATENCYTIME = DMUS_SEGF_AFTERLATENCYTIME, + DMUS_TIME_RESOLVE_GRID = DMUS_SEGF_GRID, + DMUS_TIME_RESOLVE_BEAT = DMUS_SEGF_BEAT, + DMUS_TIME_RESOLVE_MEASURE = DMUS_SEGF_MEASURE, + DMUS_TIME_RESOLVE_MARKER = DMUS_SEGF_MARKER, + DMUS_TIME_RESOLVE_SEGMENTEND = DMUS_SEGF_SEGMENTEND, +} DMUS_TIME_RESOLVE_FLAGS; + +typedef enum enumDMUS_CHORDKEYF_FLAGS +{ + DMUS_CHORDKEYF_SILENT = 1, +} DMUS_CHORDKEYF_FLAGS; + +typedef struct _DMUS_SUBCHORD +{ + DWORD dwChordPattern; + DWORD dwScalePattern; + DWORD dwInversionPoints; + DWORD dwLevels; + BYTE bChordRoot; + BYTE bScaleRoot; +} DMUS_SUBCHORD; + +typedef struct _DMUS_CHORD_KEY +{ + WCHAR wszName[16]; + WORD wMeasure; + BYTE bBeat; + BYTE bSubChordCount; + DMUS_SUBCHORD SubChordList[DMUS_MAXSUBCHORD]; + DWORD dwScale; + BYTE bKey; + BYTE bFlags; +} DMUS_CHORD_KEY; + +typedef struct _DMUS_NOTE_PMSG +{ + DMUS_PMSG_PART + + MUSIC_TIME mtDuration; + WORD wMusicValue; + WORD wMeasure; + short nOffset; + BYTE bBeat; + BYTE bGrid; + BYTE bVelocity; + BYTE bFlags; + BYTE bTimeRange; + BYTE bDurRange; + BYTE bVelRange; + BYTE bPlayModeFlags; + BYTE bSubChordLevel; + BYTE bMidiValue; + char cTranspose; +} DMUS_NOTE_PMSG; + +typedef enum enumDMUS_NOTEF_FLAGS +{ + DMUS_NOTEF_NOTEON = 0x01, + DMUS_NOTEF_NOINVALIDATE = 0x02, + DMUS_NOTEF_NOINVALIDATE_INSCALE = 0x04, + DMUS_NOTEF_NOINVALIDATE_INCHORD = 0x08, + DMUS_NOTEF_REGENERATE = 0x10, +} DMUS_NOTEF_FLAGS; + +typedef enum enumDMUS_PLAYMODE_FLAGS +{ + DMUS_PLAYMODE_KEY_ROOT = 0x01, + DMUS_PLAYMODE_CHORD_ROOT = 0x02, + DMUS_PLAYMODE_SCALE_INTERVALS = 0x04, + DMUS_PLAYMODE_CHORD_INTERVALS = 0x08, + DMUS_PLAYMODE_NONE = 0x10, +} DMUS_PLAYMODE_FLAGS; + +typedef struct _DMUS_MIDI_PMSG +{ + DMUS_PMSG_PART + + BYTE bStatus; + BYTE bByte1; + BYTE bByte2; + BYTE bPad[1]; +} DMUS_MIDI_PMSG; + +typedef struct _DMUS_PATCH_PMSG +{ + DMUS_PMSG_PART + + BYTE byInstrument; + BYTE byMSB; + BYTE byLSB; + BYTE byPad[1]; +} DMUS_PATCH_PMSG; + +typedef struct _DMUS_TRANSPOSE_PMSG +{ + DMUS_PMSG_PART + + short nTranspose; + WORD wMergeIndex; +} DMUS_TRANSPOSE_PMSG; + +typedef struct _DMUS_CHANNEL_PRIORITY_PMSG +{ + DMUS_PMSG_PART + + DWORD dwChannelPriority; +} DMUS_CHANNEL_PRIORITY_PMSG; + +typedef struct _DMUS_TEMPO_PMSG +{ + DMUS_PMSG_PART + + double dblTempo; +} DMUS_TEMPO_PMSG; + +typedef struct _DMUS_SYSEX_PMSG +{ + DMUS_PMSG_PART + + DWORD dwLen; + BYTE abData[1]; +} DMUS_SYSEX_PMSG; + +typedef struct _DMUS_CURVE_PMSG +{ + DMUS_PMSG_PART + + MUSIC_TIME mtDuration; + MUSIC_TIME mtOriginalStart; + MUSIC_TIME mtResetDuration; + short nStartValue; + short nEndValue; + short nResetValue; + WORD wMeasure; + short nOffset; + BYTE bBeat; + BYTE bGrid; + BYTE bType; + BYTE bCurveShape; + BYTE bCCData; + BYTE bFlags; + WORD wParamType; + WORD wMergeIndex; +} DMUS_CURVE_PMSG; + +typedef enum enumDMUS_CURVE_FLAGS +{ + DMUS_CURVE_RESET = 1, + DMUS_CURVE_START_FROM_CURRENT = 2 +} DMUS_CURVE_FLAGS; + +#define DMUS_CURVE_RESET 0x01 + +enum +{ + DMUS_CURVES_LINEAR = 0x0, + DMUS_CURVES_INSTANT = 0x1, + DMUS_CURVES_EXP = 0x2, + DMUS_CURVES_LOG = 0x3, + DMUS_CURVES_SINE = 0x4 +}; + +typedef struct _DMUS_TIMESIG_PMSG +{ + DMUS_PMSG_PART + + BYTE bBeatsPerMeasure; + BYTE bBeat; + WORD wGridsPerBeat; +} DMUS_TIMESIG_PMSG; + +typedef struct _DMUS_NOTIFICATION_PMSG +{ + DMUS_PMSG_PART + + GUID guidNotificationType; + DWORD dwNotificationOption; + DWORD dwField1; + DWORD dwField2; +} DMUS_NOTIFICATION_PMSG; + +typedef struct _DMUS_WAVE_PMSG +{ + DMUS_PMSG_PART + + REFERENCE_TIME rtStartOffset; + REFERENCE_TIME rtDuration; + long lOffset; + long lVolume; + long lPitch; + BYTE bFlags; +} DMUS_WAVE_PMSG; + +typedef struct _DMUS_LYRIC_PMSG +{ + DMUS_PMSG_PART + + WCHAR wszString[1]; +} DMUS_LYRIC_PMSG; + +typedef struct _DMUS_VERSION { + DWORD dwVersionMS; + DWORD dwVersionLS; +} DMUS_VERSION, *LPDMUS_VERSION; + +typedef struct _DMUS_TIMESIGNATURE +{ + MUSIC_TIME mtTime; + BYTE bBeatsPerMeasure; + BYTE bBeat; + WORD wGridsPerBeat; +} DMUS_TIMESIGNATURE; + +typedef struct _DMUS_VALID_START_PARAM +{ + MUSIC_TIME mtTime; +} DMUS_VALID_START_PARAM; + +typedef struct _DMUS_PLAY_MARKER_PARAM +{ + MUSIC_TIME mtTime; +} DMUS_PLAY_MARKER_PARAM; + +typedef struct _DMUS_OBJECTDESC +{ + DWORD dwSize; + DWORD dwValidData; + GUID guidObject; + GUID guidClass; + FILETIME ftDate; + DMUS_VERSION vVersion; + WCHAR wszName[DMUS_MAX_NAME]; + WCHAR wszCategory[DMUS_MAX_CATEGORY]; + WCHAR wszFileName[DMUS_MAX_FILENAME]; + LONGLONG llMemLength; + LPBYTE pbMemData; + IStream * pStream; +} DMUS_OBJECTDESC, *LPDMUS_OBJECTDESC; + +typedef struct _DMUS_SCRIPT_ERRORINFO +{ + DWORD dwSize; + HRESULT hr; + ULONG ulLineNumber; + LONG ichCharPosition; + WCHAR wszSourceFile[DMUS_MAX_FILENAME]; + WCHAR wszSourceComponent[DMUS_MAX_FILENAME]; + WCHAR wszDescription[DMUS_MAX_FILENAME]; + WCHAR wszSourceLineText[DMUS_MAX_FILENAME]; +} DMUS_SCRIPT_ERRORINFO; + +typedef struct _DMUS_COMMAND_PARAM +{ + BYTE bCommand; + BYTE bGrooveLevel; + BYTE bGrooveRange; + BYTE bRepeatMode; +} DMUS_COMMAND_PARAM; + +typedef struct _DMUS_COMMAND_PARAM_2 +{ + MUSIC_TIME mtTime; + BYTE bCommand; + BYTE bGrooveLevel; + BYTE bGrooveRange; + BYTE bRepeatMode; +} DMUS_COMMAND_PARAM_2; + +typedef struct _DMUS_CONNECTION_RULE +{ + DWORD dwFlags; + DWORD dwIntervals; +} DMUS_CONNECTION_RULE; + +typedef struct _DMUS_MELODY_FRAGMENT +{ + MUSIC_TIME mtTime; + DWORD dwID; + WCHAR wszVariationLabel[DMUS_MAX_FRAGMENTLABEL]; + DWORD dwVariationFlags; + DWORD dwRepeatFragmentID; + DWORD dwFragmentFlags; + DWORD dwPlayModeFlags; + DWORD dwTransposeIntervals; + DMUS_COMMAND_PARAM Command; + DMUS_CONNECTION_RULE ConnectionArc; +} DMUS_MELODY_FRAGMENT; + +typedef struct _DMUS_BAND_PARAM +{ + MUSIC_TIME mtTimePhysical; + IDirectMusicBand *pBand; +} DMUS_BAND_PARAM; + + +typedef struct _DMUS_VARIATIONS_PARAM +{ + DWORD dwPChannelsUsed; + DWORD* padwPChannels; + DWORD* padwVariations; +} DMUS_VARIATIONS_PARAM; + +/***************************************************************************** + * IDirectMusicBand interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicBand +#define IDirectMusicBand_METHODS \ + /*** IDirectMusicBand methods ***/ \ + ICOM_METHOD1(HRESULT, CreateSegment, IDirectMusicSegment**,ppSegment) \ + ICOM_METHOD1(HRESULT, Download, IDirectMusicPerformance*,pPerformance) \ + ICOM_METHOD1(HRESULT, Unload, IDirectMusicPerformance*,pPerformance) + + /*** IDirectMusicBand methods ***/ +#define IDirectMusicBand_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicBand_METHODS +ICOM_DEFINE(IDirectMusicBand,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicBand_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicBand_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicBand_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicBand methods ***/ +#define IDirectMusicBand_CreateSegment(p,a) ICOM_CALL1(CreateSegment,p,a) +#define IDirectMusicBand_Download(p,a) ICOM_CALL1(Download,p,a) +#define IDirectMusicBand_Unload(p,a) ICOM_CALL1(Unload,p,a) + + +/***************************************************************************** + * IDirectMusicObject interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicObject +#define IDirectMusicObject_METHODS \ + /*** IDirectMusicObject methods ***/ \ + ICOM_METHOD1(HRESULT, GetDescriptor, LPDMUS_OBJECTDESC,pDesc) \ + ICOM_METHOD1(HRESULT, SetDescriptor, LPDMUS_OBJECTDESC,pDesc) \ + ICOM_METHOD2(HRESULT, ParseDescriptor, LPSTREAM,pStream, LPDMUS_OBJECTDESC,pDesc) + + /*** IDirectMusicObject methods ***/ +#define IDirectMusicObject_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicObject_METHODS +ICOM_DEFINE(IDirectMusicObject,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicObject_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicObject_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicObject_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicObject methods ***/ +#define IDirectMusicObject_GetDescriptor(p,a) ICOM_CALL1(GetDescriptor,p,a) +#define IDirectMusicObject_SetDescriptor(p,a) ICOM_CALL1(SetDescriptor,p,a) +#define IDirectMusicObject_ParseDescriptor(p,a,b) ICOM_CALL2(ParseDescriptor,p,a,b) + + +/***************************************************************************** + * IDirectMusicLoader interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicLoader +#define IDirectMusicLoader_METHODS \ + /*** IDirectMusicLoader methods ***/ \ + ICOM_METHOD3(HRESULT, _GetObject, LPDMUS_OBJECTDESC,pDesc, REFIID,riid, LPVOID*,ppv) \ + ICOM_METHOD1(HRESULT, SetObject, LPDMUS_OBJECTDESC,pDesc) \ + ICOM_METHOD3(HRESULT, SetSearchDirectory, REFGUID,rguidClass, WCHAR*,pwzPath, BOOL,fClear) \ + ICOM_METHOD3(HRESULT, ScanDirectory, REFGUID,rguidClass, WCHAR*,pwzFileExtension, WCHAR*,pwzScanFileName) \ + ICOM_METHOD1(HRESULT, CacheObject, IDirectMusicObject*,pObject) \ + ICOM_METHOD1(HRESULT, ReleaseObject, IDirectMusicObject*,pObject) \ + ICOM_METHOD1(HRESULT, ClearCache, REFGUID,rguidClass) \ + ICOM_METHOD2(HRESULT, EnableCache, REFGUID,rguidClass, BOOL,fEnable) \ + ICOM_METHOD3(HRESULT, EnumObject, REFGUID,rguidClass, DWORD,dwIndex, LPDMUS_OBJECTDESC,pDesc) + + /*** IDirectMusicLoader methods ***/ +#define IDirectMusicLoader_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicLoader_METHODS +ICOM_DEFINE(IDirectMusicLoader,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicLoader_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicLoader_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicLoader_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicLoader methods ***/ +#define IDirectMusicLoader_GetObject(p,a,b,c) ICOM_CALL3(_GetObject,p,a,b,c) +#define IDirectMusicLoader_SetObject(p,a) ICOM_CALL1(SetObject,p,a) +#define IDirectMusicLoader_SetSearchDirectory(p,a,b,c) ICOM_CALL3(SetSearchDirectory,p,a,b,c) +#define IDirectMusicLoader_ScanDirectory(p,a,b,c) ICOM_CALL3(ScanDirectory,p,a,b,c) +#define IDirectMusicLoader_CacheObject(p,a) ICOM_CALL1(CacheObject,p,a) +#define IDirectMusicLoader_ReleaseObject(p,a) ICOM_CALL1(ReleaseObject,p,a) +#define IDirectMusicLoader_ClearCache(p,a) ICOM_CALL1(ClearCache,p,a) +#define IDirectMusicLoader_EnableCache(p,a,b) ICOM_CALL2(EnableCache,p,a,b) +#define IDirectMusicLoader_EnumObject(p,a,b,c) ICOM_CALL3(EnumObject,p,a,b,c) + + +/***************************************************************************** + * IDirectMusicLoader8 interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicLoader8 +#define IDirectMusicLoader8_METHODS \ + /*** IDirectMusicLoader8 methods ***/ \ + ICOM_METHOD (void, CollectGarbage) \ + ICOM_METHOD1(HRESULT, ReleaseObjectByUnknown, IUnknown*,pObject) \ + ICOM_METHOD4(HRESULT, LoadObjectFromFile, REFGUID,rguidClassID, REFIID,iidInterfaceID, WCHAR*,pwzFilePath, void**,ppObject) + + /*** IDirectMusicLoader8 methods ***/ +#define IDirectMusicLoader8_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicLoader_METHODS \ + IDirectMusicLoader8_METHODS +ICOM_DEFINE(IDirectMusicLoader8,IDirectMusicLoader) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicLoader8_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicLoader8_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicLoader8_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicLoader methods ***/ +#define IDirectMusicLoader8_GetObject(p,a,b,c) ICOM_CALL3(_GetObject,p,a,b,c) +#define IDirectMusicLoader8_SetObject(p,a) ICOM_CALL1(SetObject,p,a) +#define IDirectMusicLoader8_SetSearchDirectory(p,a,b,c) ICOM_CALL3(SetSearchDirectory,p,a,b,c) +#define IDirectMusicLoader8_ScanDirectory(p,a,b,c) ICOM_CALL3(ScanDirectory,p,a,b,c) +#define IDirectMusicLoader8_CacheObject(p,a) ICOM_CALL1(CacheObject,p,a) +#define IDirectMusicLoader8_ReleaseObject(p,a) ICOM_CALL1(ReleaseObject,p,a) +#define IDirectMusicLoader8_ClearCache(p,a) ICOM_CALL1(ClearCache,p,a) +#define IDirectMusicLoader8_EnableCache(p,a,b) ICOM_CALL2(EnableCache,p,a,b) +#define IDirectMusicLoader8_EnumObject(p,a,b,c) ICOM_CALL3(EnumObject,p,a,b,c) +/*** IDirectMusicLoader8 methods ***/ +#define IDirectMusicLoader8_CollectGarbage(p) ICOM_CALL (CollectGarbage,p) +#define IDirectMusicLoader8_ReleaseObjectByUnknown(p,a) ICOM_CALL1(ReleaseObjectByUnknown,p,a) +#define IDirectMusicLoader8_LoadObjectFromFile(p,a,b,c,d) ICOM_CALL4(LoadObjectFromFile,p,a,b,c,d) + + +/***************************************************************************** + * IDirectMusicGetLoader interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicGetLoader +#define IDirectMusicGetLoader_METHODS \ + /*** IDirectMusicGetLoader methods ***/ \ + ICOM_METHOD1(HRESULT, GetLoader, IDirectMusicLoader**,ppLoader) + + /*** IDirectMusicGetLoader methods ***/ +#define IDirectMusicGetLoader_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicGetLoader_METHODS +ICOM_DEFINE(IDirectMusicGetLoader,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicGetLoader_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicGetLoader_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicGetLoader_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicGetLoader methods ***/ +#define IDirectMusicGetLoader_GetLoader(p,a) ICOM_CALL1(GetLoader,p,a) + + +/***************************************************************************** + * IDirectMusicSegment interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicSegment +#define IDirectMusicSegment_METHODS \ + /*** IDirectMusicSegment methods ***/ \ + ICOM_METHOD1(HRESULT, GetLength, MUSIC_TIME*,pmtLength) \ + ICOM_METHOD1(HRESULT, SetLength, MUSIC_TIME,mtLength) \ + ICOM_METHOD1(HRESULT, GetRepeats, DWORD*,pdwRepeats) \ + ICOM_METHOD1(HRESULT, SetRepeats, DWORD,dwRepeats) \ + ICOM_METHOD1(HRESULT, GetDefaultResolution, DWORD*,pdwResolution) \ + ICOM_METHOD1(HRESULT, SetDefaultResolution, DWORD,dwResolution) \ + ICOM_METHOD4(HRESULT, GetTrack, REFGUID,rguidType, DWORD,dwGroupBits, DWORD,dwIndex, IDirectMusicTrack**,ppTrack) \ + ICOM_METHOD2(HRESULT, GetTrackGroup, IDirectMusicTrack*,pTrack, DWORD*,pdwGroupBits) \ + ICOM_METHOD2(HRESULT, InsertTrack, IDirectMusicTrack*,pTrack, DWORD,dwGroupBits) \ + ICOM_METHOD1(HRESULT, RemoveTrack, IDirectMusicTrack*,pTrack) \ + ICOM_METHOD3(HRESULT, InitPlay, IDirectMusicSegmentState**,ppSegState, IDirectMusicPerformance*,pPerformance, DWORD, dwFlags) \ + ICOM_METHOD1(HRESULT, GetGraph, IDirectMusicGraph**,ppGraph) \ + ICOM_METHOD1(HRESULT, SetGraph, IDirectMusicGraph*,pGraph) \ + ICOM_METHOD1(HRESULT, AddNotificationType, REFGUID,rguidNotificationType) \ + ICOM_METHOD1(HRESULT, RemoveNotificationType, REFGUID,rguidNotificationType) \ + ICOM_METHOD6(HRESULT, GetParam, REFGUID,rguidType, DWORD,dwGroupBits, DWORD,dwIndex, MUSIC_TIME,mtTime, MUSIC_TIME*,pmtNext, void*,pParam) \ + ICOM_METHOD5(HRESULT, SetParam, REFGUID,rguidType, DWORD,dwGroupBits, DWORD,dwIndex, MUSIC_TIME,mtTime, void*,pParam) \ + ICOM_METHOD3(HRESULT, Clone, MUSIC_TIME,mtStart, MUSIC_TIME,mtEnd, IDirectMusicSegment**,ppSegment) \ + ICOM_METHOD1(HRESULT, SetStartPoint, MUSIC_TIME,mtStart) \ + ICOM_METHOD1(HRESULT, GetStartPoint, MUSIC_TIME*,pmtStart) \ + ICOM_METHOD2(HRESULT, SetLoopPoints, MUSIC_TIME,mtStart, MUSIC_TIME,mtEnd) \ + ICOM_METHOD2(HRESULT, GetLoopPoints, MUSIC_TIME*,pmtStart, MUSIC_TIME*,pmtEnd) \ + ICOM_METHOD2(HRESULT, SetPChannelsUsed, DWORD,dwNumPChannels, DWORD*,paPChannels) + + /*** IDirectMusicSegment methods ***/ +#define IDirectMusicSegment_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicSegment_METHODS +ICOM_DEFINE(IDirectMusicSegment,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicSegment_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicSegment_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicSegment_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicSegment methods ***/ +#define IDirectMusicSegment_GetLength(p,a) ICOM_CALL1(GetLength,p,a) +#define IDirectMusicSegment_SetLength(p,a) ICOM_CALL1(SetLength,p,a) +#define IDirectMusicSegment_GetRepeats(p,a) ICOM_CALL1(GetRepeats,p,a) +#define IDirectMusicSegment_SetRepeats(p,a) ICOM_CALL1(SetRepeats,p,a) +#define IDirectMusicSegment_GetDefaultResolution(p,a) ICOM_CALL1(GetDefaultResolution,p,a) +#define IDirectMusicSegment_SetDefaultResolution(p,a) ICOM_CALL1(SetDefaultResolution,p,a) +#define IDirectMusicSegment_GetTrack(p,a,b,c,d) ICOM_CALL4(GetTrack,p,a,b,c,d) +#define IDirectMusicSegment_GetTrackGroup(p,a,b) ICOM_CALL2(GetTrackGroup,p,a,b) +#define IDirectMusicSegment_InsertTrack(p,a,b) ICOM_CALL2(InsertTrack,p,a,b) +#define IDirectMusicSegment_RemoveTrack(p,a) ICOM_CALL1(RemoveTrack,p,a) +#define IDirectMusicSegment_InitPlay(p,a,b,c) ICOM_CALL3(InitPlay,p,a,b,c) +#define IDirectMusicSegment_GetGraph(p,a) ICOM_CALL1(GetGraph,p,a) +#define IDirectMusicSegment_SetGraph(p,a) ICOM_CALL1(SetGraph,p,a) +#define IDirectMusicSegment_AddNotificationType(p,a) ICOM_CALL1(AddNotificationType,p,a) +#define IDirectMusicSegment_RemoveNotificationType(p,a) ICOM_CALL1(RemoveNotificationType,p,a) +#define IDirectMusicSegment_GetParam(p,a,b,c,d,e,f) ICOM_CALL6(GetParam,p,a,b,c,d,e,f) +#define IDirectMusicSegment_SetParam(p,a,b,c,d,e) ICOM_CALL5(SetParam,p,a,b,c,d,e) +#define IDirectMusicSegment_Clone(p,a,b,c) ICOM_CALL3(Clone,p,a,b,c) +#define IDirectMusicSegment_SetStartPoint(p,a) ICOM_CALL1(SetStartPoint,p,a) +#define IDirectMusicSegment_GetStartPoint(p,a) ICOM_CALL1(GetStartPoint,p,a) +#define IDirectMusicSegment_SetLoopPoints(p,a,b) ICOM_CALL2(SetLoopPoints,p,a,b) +#define IDirectMusicSegment_GetLoopPoints(p,a,b) ICOM_CALL2(GetLoopPoints,p,a,b) +#define IDirectMusicSegment_SetPChannelsUsed(p,a,b) ICOM_CALL2(SetPChannelsUsed,p,a,b) + + +/***************************************************************************** + * IDirectMusicSegment8 interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicSegment8 +#define IDirectMusicSegment8_METHODS \ + /*** IDirectMusicSegment8 methods ***/ \ + ICOM_METHOD5(HRESULT, SetTrackConfig, REFGUID,rguidTrackClassID, DWORD,dwGroupBits, DWORD,dwIndex, DWORD,dwFlagsOn, DWORD,dwFlagsOff) \ + ICOM_METHOD1(HRESULT, GetAudioPathConfig, IUnknown**,ppAudioPathConfig) \ + ICOM_METHOD4(HRESULT, Compose, MUSIC_TIME,mtTime, IDirectMusicSegment*,pFromSegment, IDirectMusicSegment*,pToSegment, IDirectMusicSegment**,ppComposedSegment) \ + ICOM_METHOD1(HRESULT, Download, IUnknown,*pAudioPath) \ + ICOM_METHOD1(HRESULT, Unload, IUnknown,*pAudioPath) + + /*** IDirectMusicSegment8 methods ***/ +#define IDirectMusicSegment8_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicSegment_METHODS \ + IDirectMusicSegment8_METHODS +ICOM_DEFINE(IDirectMusicSegment8,IDirectMusicSegment) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicSegment8_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicSegment8_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicSegment8_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicSegment methods ***/ +#define IDirectMusicSegment8_GetLength(p,a) ICOM_CALL1(GetLength,p,a) +#define IDirectMusicSegment8_SetLength(p,a) ICOM_CALL1(SetLength,p,a) +#define IDirectMusicSegment8_GetRepeats(p,a) ICOM_CALL1(GetRepeats,p,a) +#define IDirectMusicSegment8_SetRepeats(p,a) ICOM_CALL1(SetRepeats,p,a) +#define IDirectMusicSegment8_GetDefaultResolution(p,a) ICOM_CALL1(GetDefaultResolution,p,a) +#define IDirectMusicSegment8_SetDefaultResolution(p,a) ICOM_CALL1(SetDefaultResolution,p,a) +#define IDirectMusicSegment8_GetTrack(p,a,b,c,d) ICOM_CALL4(GetTrack,p,a,b,c,d) +#define IDirectMusicSegment8_GetTrackGroup(p,a,b) ICOM_CALL2(GetTrackGroup,p,a,b) +#define IDirectMusicSegment8_InsertTrack(p,a,b) ICOM_CALL2(InsertTrack,p,a,b) +#define IDirectMusicSegment8_RemoveTrack(p,a) ICOM_CALL1(RemoveTrack,p,a) +#define IDirectMusicSegment8_InitPlay(p,a,b,c) ICOM_CALL3(InitPlay,p,a,b,c) +#define IDirectMusicSegment8_GetGraph(p,a) ICOM_CALL1(GetGraph,p,a) +#define IDirectMusicSegment8_SetGraph(p,a) ICOM_CALL1(SetGraph,p,a) +#define IDirectMusicSegment8_AddNotificationType(p,a) ICOM_CALL1(AddNotificationType,p,a) +#define IDirectMusicSegment8_RemoveNotificationType(p,a) ICOM_CALL1(RemoveNotificationType,p,a) +#define IDirectMusicSegment8_GetParam(p,a,b,c,d,e,f) ICOM_CALL6(GetParam,p,a,b,c,d,e,f) +#define IDirectMusicSegment8_SetParam(p,a,b,c,d,e) ICOM_CALL5(SetParam,p,a,b,c,d,e) +#define IDirectMusicSegment8_Clone(p,a,b,c) ICOM_CALL3(Clone,p,a,b,c) +#define IDirectMusicSegment8_SetStartPoint(p,a) ICOM_CALL1(SetStartPoint,p,a) +#define IDirectMusicSegment8_GetStartPoint(p,a) ICOM_CALL1(GetStartPoint,p,a) +#define IDirectMusicSegment8_SetLoopPoints(p,a,b) ICOM_CALL2(SetLoopPoints,p,a,b) +#define IDirectMusicSegment8_GetLoopPoints(p,a,b) ICOM_CALL2(GetLoopPoints,p,a,b) +#define IDirectMusicSegment8_SetPChannelsUsed(p,a,b) ICOM_CALL2(SetPChannelsUsed,p,a,b) +/*** IDirectMusicSegment8 methods ***/ +#define IDirectMusicSegment8_SetTrackConfig(p,a,b,c,d,e) ICOM_CALL5(SetTrackConfig,p,a,b,c,d,e) +#define IDirectMusicSegment8_GetAudioPathConfig(p,a) ICOM_CALL1(GetAudioPathConfig,p,a) +#define IDirectMusicSegment8_Compose(p,a,b,c,d) ICOM_CALL4(Compose,p,a,b,c,d) +#define IDirectMusicSegment8_Download(p,a) ICOM_CALL1(Download,p,a) +#define IDirectMusicSegment8_Unload(p,a) ICOM_CALL1(Unload,p,a) + + +/***************************************************************************** + * IDirectMusicSegmentState interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicSegmentState +#define IDirectMusicSegmentState_METHODS \ + /*** IDirectMusicSegmentState methods ***/ \ + ICOM_METHOD1(HRESULT, GetRepeats, DWORD*,pdwRepeats) \ + ICOM_METHOD1(HRESULT, GetSegment, IDirectMusicSegment**,ppSegment) \ + ICOM_METHOD1(HRESULT, GetStartTime, MUSIC_TIME*,pmtStart) \ + ICOM_METHOD1(HRESULT, GetSeek, MUSIC_TIME*,pmtSeek) \ + ICOM_METHOD1(HRESULT, GetStartPoint, MUSIC_TIME*,pmtStart) + + /*** IDirectMusicSegmentState methods ***/ +#define IDirectMusicSegmentState_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicSegmentState_METHODS +ICOM_DEFINE(IDirectMusicSegmentState,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicSegmentState_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicSegmentState_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicSegmentState_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicSegmentState methods ***/ +#define IDirectMusicSegmentState_GetRepeats(p,a) ICOM_CALL1(GetRepeats,p,a) +#define IDirectMusicSegmentState_GetSegment(p,a) ICOM_CALL1(GetSegment,p,a) +#define IDirectMusicSegmentState_GetStartTime(p,a) ICOM_CALL1(GetStartTime,p,a) +#define IDirectMusicSegmentState_GetSeek(p,a) ICOM_CALL1(GetSeek,p,a) +#define IDirectMusicSegmentState_GetStartPoint(p,a) ICOM_CALL1(GetStartPoint,p,a) + + +/***************************************************************************** + * IDirectMusicSegmentState8 interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicSegmentState8 +#define IDirectMusicSegmentState8_METHODS \ + /*** IDirectMusicSegmentState8 methods ***/ \ + ICOM_METHOD5(HRESULT, SetTrackConfig, REFGUID,rguidTrackClassID, DWORD,dwGroupBits, DWORD,dwIndex, DWORD,dwFlagsOn, DWORD,dwFlagsOff) \ + ICOM_METHOD7(HRESULT, GetObjectInPath, DWORD,dwPChannel, DWORD,dwStage, DWORD,dwBuffer, REFGUID,guidObject, DWORD,dwIndex, REFGUID,iidInterface, void**,ppObject) + + /*** IDirectMusicSegmentState8 methods ***/ +#define IDirectMusicSegmentState8_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicSegmentState_METHODS \ + IDirectMusicSegmentState8_METHODS +ICOM_DEFINE(IDirectMusicSegmentState8,IDirectMusicSegmentState) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicSegmentState8_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicSegmentState8_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicSegmentState8_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicSegmentState methods ***/ +#define IDirectMusicSegmentState8_GetRepeats(p,a) ICOM_CALL1(GetRepeats,p,a) +#define IDirectMusicSegmentState8_GetSegment(p,a) ICOM_CALL1(GetSegment,p,a) +#define IDirectMusicSegmentState8_GetStartTime(p,a) ICOM_CALL1(GetStartTime,p,a) +#define IDirectMusicSegmentState8_GetSeek(p,a) ICOM_CALL1(GetSeek,p,a) +#define IDirectMusicSegmentState8_GetStartPoint(p,a) ICOM_CALL1(GetStartPoint,p,a) +/*** IDirectMusicSegmentState8 methods ***/ +#define IDirectMusicSegmentState8_SetTrackConfig(p,a,b,c,d,e) ICOM_CALL5(SetTrackConfig,p,a,b,c,d,e) +#define IDirectMusicSegmentState8_GetObjectInPath(p,a,b,c,d,e,f,g) ICOM_CALL7(GetObjectInPath,p,a,b,c,d,e,f,g) + + +/***************************************************************************** + * IDirectMusicAudioPath interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicAudioPath +#define IDirectMusicAudioPath_METHODS \ + /*** IDirectMusicAudioPath methods ***/ \ + ICOM_METHOD7(HRESULT, GetObjectInPath, DWORD,dwPChannel, DWORD,dwStage, DWORD,dwBuffer, REFGUID,guidObject, WORD,dwIndex, REFGUID,iidInterface, void**,ppObject) \ + ICOM_METHOD1(HRESULT, Activate, BOOL,fActivate) \ + ICOM_METHOD2(HRESULT, SetVolume, long,lVolume, DWORD,dwDuration) \ + ICOM_METHOD2(HRESULT, ConvertPChannel, DWORD,dwPChannelIn, DWORD*,pdwPChannelOut) + + /*** IDirectMusicAudioPath methods ***/ +#define IDirectMusicAudioPath_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicAudioPath_METHODS +ICOM_DEFINE(IDirectMusicAudioPath,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicAudioPath_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicAudioPath_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicAudioPath_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicAudioPath methods ***/ +#define IDirectMusicAudioPath_GetObjectInPath(p,a,b,c,d,e,f,g) ICOM_CALL7(GetObjectInPath,p,a,b,c,d,e,f,g) +#define IDirectMusicAudioPath_Activate(p,a) ICOM_CALL1(Activate,p,a) +#define IDirectMusicAudioPath_SetVolume(p,a,b) ICOM_CALL2(SetVolume,p,a,b) +#define IDirectMusicAudioPath_ConvertPChannel(p,a,b) ICOM_CALL2(ConvertPChannel,p,a,b) + + +/***************************************************************************** + * IDirectMusicPerformance interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicPerformance +#define IDirectMusicPerformance_METHODS \ + /*** IDirectMusicPerformance methods ***/ \ + ICOM_METHOD3(HRESULT, Init, IDirectMusic**,ppDirectMusic, LPDIRECTSOUND,pDirectSound, HWND,hWnd) \ + ICOM_METHOD4(HRESULT, PlaySegment, IDirectMusicSegment*,pSegment, DWORD,dwFlags, __int64,i64StartTime, IDirectMusicSegmentState**,ppSegmentState) \ + ICOM_METHOD4(HRESULT, Stop, IDirectMusicSegment*,pSegment, IDirectMusicSegmentState*,pSegmentState, MUSIC_TIME,mtTime, DWORD,dwFlags) \ + ICOM_METHOD2(HRESULT, GetSegmentState, IDirectMusicSegmentState**,ppSegmentState, MUSIC_TIME,mtTime) \ + ICOM_METHOD1(HRESULT, SetPrepareTime, DWORD,dwMilliSeconds) \ + ICOM_METHOD1(HRESULT, GetPrepareTime, DWORD*,pdwMilliSeconds) \ + ICOM_METHOD1(HRESULT, SetBumperLength, DWORD,dwMilliSeconds) \ + ICOM_METHOD1(HRESULT, GetBumperLength, DWORD*,pdwMilliSeconds) \ + ICOM_METHOD1(HRESULT, SendPMsg, DMUS_PMSG*,pPMSG) \ + ICOM_METHOD2(HRESULT, MusicToReferenceTime, MUSIC_TIME,mtTime, REFERENCE_TIME*,prtTime) \ + ICOM_METHOD2(HRESULT, ReferenceToMusicTime, REFERENCE_TIME,rtTime, MUSIC_TIME*,pmtTime) \ + ICOM_METHOD2(HRESULT, IsPlaying, IDirectMusicSegment*,pSegment, IDirectMusicSegmentState*,pSegState) \ + ICOM_METHOD2(HRESULT, GetTime, REFERENCE_TIME*,prtNow, MUSIC_TIME*,pmtNow) \ + ICOM_METHOD2(HRESULT, AllocPMsg, ULONG,cb, DMUS_PMSG**,ppPMSG) \ + ICOM_METHOD1(HRESULT, FreePMsg, DMUS_PMSG*,pPMSG) \ + ICOM_METHOD1(HRESULT, GetGraph, IDirectMusicGraph**,ppGraph) \ + ICOM_METHOD1(HRESULT, SetGraph, IDirectMusicGraph*,pGraph) \ + ICOM_METHOD2(HRESULT, SetNotificationHandle, HANDLE,hNotification, REFERENCE_TIME,rtMinimum) \ + ICOM_METHOD1(HRESULT, GetNotificationPMsg, DMUS_NOTIFICATION_PMSG**,ppNotificationPMsg) \ + ICOM_METHOD1(HRESULT, AddNotificationType, REFGUID,rguidNotificationType) \ + ICOM_METHOD1(HRESULT, RemoveNotificationType, REFGUID,rguidNotificationType) \ + ICOM_METHOD1(HRESULT, AddPort, IDirectMusicPort*,pPort) \ + ICOM_METHOD1(HRESULT, RemovePort, IDirectMusicPort*,pPort) \ + ICOM_METHOD3(HRESULT, AssignPChannelBlock, DWORD,dwBlockNum, IDirectMusicPort*,pPort, DWORD,dwGroup) \ + ICOM_METHOD4(HRESULT, AssignPChannel, DWORD,dwPChannel, IDirectMusicPort*,pPort, DWORD,dwGroup, DWORD,dwMChannel) \ + ICOM_METHOD4(HRESULT, PChannelInfo, DWORD,dwPChannel, IDirectMusicPort**,ppPort, DWORD*,pdwGroup, DWORD*,pdwMChannel) \ + ICOM_METHOD8(HRESULT, DownloadInstrument, IDirectMusicInstrument*,pInst, DWORD,dwPChannel, IDirectMusicDownloadedInstrument**,ppDownInst, DMUS_NOTERANGE*,pNoteRanges, DWORD,dwNumNoteRanges, IDirectMusicPort**,ppPort, DWORD*,pdwGroup, DWORD*,pdwMChannel) \ + ICOM_METHOD2(HRESULT, Invalidate, MUSIC_TIME,mtTime, DWORD,dwFlags) \ + ICOM_METHOD6(HRESULT, GetParam, REFGUID,rguidType, DWORD,dwGroupBits, DWORD,dwIndex, MUSIC_TIME,mtTime, MUSIC_TIME*,pmtNext, void*,pParam) \ + ICOM_METHOD5(HRESULT, SetParam, REFGUID,rguidType, DWORD,dwGroupBits, DWORD,dwIndex, MUSIC_TIME,mtTime, void*,pParam) \ + ICOM_METHOD3(HRESULT, GetGlobalParam, REFGUID,rguidType, void*,pParam, DWORD,dwSize) \ + ICOM_METHOD3(HRESULT, SetGlobalParam, REFGUID,rguidType, void*,pParam, DWORD,dwSize) \ + ICOM_METHOD1(HRESULT, GetLatencyTime, REFERENCE_TIME*,prtTime) \ + ICOM_METHOD1(HRESULT, GetQueueTime, REFERENCE_TIME*,prtTime) \ + ICOM_METHOD1(HRESULT, AdjustTime, REFERENCE_TIME,rtAmount) \ + ICOM_METHOD (HRESULT, CloseDown) \ + ICOM_METHOD3(HRESULT, GetResolvedTime, REFERENCE_TIME,rtTime, REFERENCE_TIME*,prtResolved, DWORD,dwTimeResolveFlags) \ + ICOM_METHOD5(HRESULT, MIDIToMusic, BYTE,bMIDIValue, DMUS_CHORD_KEY*,pChord, BYTE,bPlayMode, BYTE,bChordLevel, WORD*,pwMusicValue) \ + ICOM_METHOD5(HRESULT, MusicToMIDI, WORD,wMusicValue, DMUS_CHORD_KEY*,pChord, BYTE,bPlayMode, BYTE,bChordLevel, BYTE*,pbMIDIValue) \ + ICOM_METHOD6(HRESULT, TimeToRhythm, MUSIC_TIME,mtTime, DMUS_TIMESIGNATURE*,pTimeSig, WORD*,pwMeasure, BYTE*,pbBeat, BYTE*,pbGrid, short*,pnOffset) \ + ICOM_METHOD6(HRESULT, RhythmToTime, WORD,wMeasure, BYTE,bBeat, BYTE,bGrid, short,nOffset, DMUS_TIMESIGNATURE*,pTimeSig, MUSIC_TIME*,pmtTime) + + /*** IDirectMusicPerformance methods ***/ +#define IDirectMusicPerformance_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicPerformance_METHODS +ICOM_DEFINE(IDirectMusicPerformance,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicPerformance_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicPerformance_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicPerformance_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicPerformance methods ***/ +#define IDirectMusicPerformance_Init(p,a,b,c) ICOM_CALL3(Init,p,a,b,c) +#define IDirectMusicPerformance_PlaySegment(p,a,b,c,d) ICOM_CALL4(PlaySegment,p,a,b,c,d) +#define IDirectMusicPerformance_Stop(p,a,b,c,d) ICOM_CALL4(Stop,p,a,b,c,d) +#define IDirectMusicPerformance_GetSegmentState(p,a,b) ICOM_CALL2(GetSegmentState,p,a,b) +#define IDirectMusicPerformance_SetPrepareTime(p,a) ICOM_CALL1(SetPrepareTime,p,a) +#define IDirectMusicPerformance_GetPrepareTime(p,a) ICOM_CALL1(GetPrepareTime,p,a) +#define IDirectMusicPerformance_SetBumperLength(p,a) ICOM_CALL1(SetBumperLength,p,a) +#define IDirectMusicPerformance_GetBumperLength(p,a) ICOM_CALL1(GetBumperLength,p,a) +#define IDirectMusicPerformance_SendPMsg(p,a) ICOM_CALL1(SendPMsg,p,a) +#define IDirectMusicPerformance_MusicToReferenceTime(p,a,b) ICOM_CALL2(MusicToReferenceTime,p,a,b) +#define IDirectMusicPerformance_ReferenceToMusicTime(p,a,b) ICOM_CALL2(ReferenceToMusicTime,p,a,b) +#define IDirectMusicPerformance_IsPlaying(p,a,b) ICOM_CALL2(IsPlaying,p,a,b) +#define IDirectMusicPerformance_GetTime(p,a,b) ICOM_CALL2(GetTime,p,a,b) +#define IDirectMusicPerformance_AllocPMsg(p,a,b) ICOM_CALL2(AllocPMsg,p,a,b) +#define IDirectMusicPerformance_FreePMsg(p,a) ICOM_CALL1(FreePMsg,p,a) +#define IDirectMusicPerformance_GetGraph(p,a) ICOM_CALL1(GetGraph,p,a) +#define IDirectMusicPerformance_SetGraph(p,a) ICOM_CALL1(SetGraph,p,a) +#define IDirectMusicPerformance_SetNotificationHandle(p,a,b) ICOM_CALL2(SetNotificationHandle,p,a,b) +#define IDirectMusicPerformance_GetNotificationPMsg(p,a) ICOM_CALL1(GetNotificationPMsg,p,a) +#define IDirectMusicPerformance_AddNotificationType(p,a) ICOM_CALL1(AddNotificationType,p,a) +#define IDirectMusicPerformance_RemoveNotificationType(p,a) ICOM_CALL1(RemoveNotificationType,p,a) +#define IDirectMusicPerformance_AddPort(p,a) ICOM_CALL1(AddPort,p,a) +#define IDirectMusicPerformance_RemovePort(p,a) ICOM_CALL1(RemovePort,p,a) +#define IDirectMusicPerformance_AssignPChannelBlock(p,a,b,c) ICOM_CALL3(AssignPChannelBlock,p,a,b,c) +#define IDirectMusicPerformance_AssignPChannel(p,a,b,c,d) ICOM_CALL4(AssignPChannel,p,a,b,c,d) +#define IDirectMusicPerformance_PChannelInfo(p,a,b,c,d) ICOM_CALL4(PChannelInfo,p,a,b,c,d) +#define IDirectMusicPerformance_DownloadInstrument(p,a,b,c,d,e,f,g,h) ICOM_CALL8(DownloadInstrument,p,a,b,c,d,e,f,g,h) +#define IDirectMusicPerformance_Invalidate(p,a,b) ICOM_CALL2(Invalidate,p,a,b) +#define IDirectMusicPerformance_GetParam(p,a,b,c,d,e,f) ICOM_CALL6(GetParam,p,a,b,c,d,e,f) +#define IDirectMusicPerformance_SetParam(p,a,b,c,d,e) ICOM_CALL5(SetParam,p,a,b,c,d,e) +#define IDirectMusicPerformance_GetGlobalParam(p,a,b,c) ICOM_CALL3(GetGlobalParam,p,a,b,c) +#define IDirectMusicPerformance_SetGlobalParam(p,a,b,c) ICOM_CALL3(SetGlobalParam,p,a,b,c) +#define IDirectMusicPerformance_GetLatencyTime(p,a) ICOM_CALL1(GetLatencyTime,p,a) +#define IDirectMusicPerformance_GetQueueTime(p,a) ICOM_CALL1(GetQueueTime,p,a) +#define IDirectMusicPerformance_AdjustTime(p,a) ICOM_CALL1(AdjustTime,p,a) +#define IDirectMusicPerformance_CloseDown(p) ICOM_CALL (CloseDown,p) +#define IDirectMusicPerformance_GetResolvedTime(p,a,b,c) ICOM_CALL3(GetResolvedTime,p,a,b,c) +#define IDirectMusicPerformance_MIDIToMusic(p,a,b,c,d,e) ICOM_CALL5(MIDIToMusic,p,a,b,c,d,e) +#define IDirectMusicPerformance_MusicToMIDI(p,a,b,c,d,e) ICOM_CALL5(MusicToMIDI,p,a,b,c,d,e) +#define IDirectMusicPerformance_TimeToRhythm(p,a,b,c,d,e,f) ICOM_CALL6(TimeToRhythm,p,a,b,c,d,e,f) +#define IDirectMusicPerformance_RhythmToTime(p,a,b,c,d,e,f) ICOM_CALL6(RhythmToTime,p,a,b,c,d,e,f) + + +/***************************************************************************** + * IDirectMusicPerformance8 interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicPerformance8 +#define IDirectMusicPerformance8_METHODS \ + /*** IDirectMusicPerformance8 methods ***/ \ + ICOM_METHOD7(HRESULT, InitAudio, IDirectMusic**,ppDirectMusic, IDirectSound**,ppDirectSound, HWND,hWnd, DWORD,dwDefaultPathType, DWORD,dwPChannelCount, DWORD,dwFlags, DMUS_AUDIOPARAMS*,pParams) \ + ICOM_METHOD8(HRESULT, PlaySegmentEx, IUnknown*,pSource, WCHAR*,pwzSegmentName, IUnknown*,pTransition, DWORD,dwFlags, __int64,i64StartTime, IDirectMusicSegmentState**,ppSegmentState, IUnknown*,pFrom, IUnknown*,pAudioPath) \ + ICOM_METHOD3(HRESULT, StopEx, IUnknown*,pObjectToStop, __int64,i64StopTime, DWORD,dwFlags) \ + ICOM_METHOD2(HRESULT, ClonePMsg, DMUS_PMSG*,pSourcePMSG, DMUS_PMSG**,ppCopyPMSG) \ + ICOM_METHOD3(HRESULT, CreateAudioPath, IUnknown*,pSourceConfig, BOOL,fActivate, IDirectMusicAudioPath**,ppNewPath) \ + ICOM_METHOD4(HRESULT, CreateStandardAudioPath, DWORD,dwType, DWORD,dwPChannelCount, BOOL,fActivate, IDirectMusicAudioPath**,ppNewPath) \ + ICOM_METHOD1(HRESULT, SetDefaultAudioPath, IDirectMusicAudioPath*,pAudioPath) \ + ICOM_METHOD1(HRESULT, GetDefaultAudioPath, IDirectMusicAudioPath**,ppAudioPath) \ + ICOM_METHOD7(HRESULT, GetParamEx, REFGUID,rguidType, DWORD,dwTrackID, DWORD,dwGroupBits, DWORD,dwIndex, MUSIC_TIME,mtTime, MUSIC_TIME*,pmtNext, void*,pParam) + + /*** IDirectMusicPerformance8 methods ***/ +#define IDirectMusicPerformance8_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicPerformance_METHODS \ + IDirectMusicPerformance8_METHODS +ICOM_DEFINE(IDirectMusicPerformance8,IDirectMusicPerformance) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicPerformance8_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicPerformance8_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicPerformance8_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicPerformance methods ***/ +#define IDirectMusicPerformance8_Init(p,a,b,c) ICOM_CALL3(Init,p,a,b,c) +#define IDirectMusicPerformance8_PlaySegment(p,a,b,c,d) ICOM_CALL4(PlaySegment,p,a,b,c,d) +#define IDirectMusicPerformance8_Stop(p,a,b,c,d) ICOM_CALL4(Stop,p,a,b,c,d) +#define IDirectMusicPerformance8_GetSegmentState(p,a,b) ICOM_CALL2(GetSegmentState,p,a,b) +#define IDirectMusicPerformance8_SetPrepareTime(p,a) ICOM_CALL1(SetPrepareTime,p,a) +#define IDirectMusicPerformance8_GetPrepareTime(p,a) ICOM_CALL1(GetPrepareTime,p,a) +#define IDirectMusicPerformance8_SetBumperLength(p,a) ICOM_CALL1(SetBumperLength,p,a) +#define IDirectMusicPerformance8_GetBumperLength(p,a) ICOM_CALL1(GetBumperLength,p,a) +#define IDirectMusicPerformance8_SendPMsg(p,a) ICOM_CALL1(SendPMsg,p,a) +#define IDirectMusicPerformance8_MusicToReferenceTime(p,a,b) ICOM_CALL2(MusicToReferenceTime,p,a,b) +#define IDirectMusicPerformance8_ReferenceToMusicTime(p,a,b) ICOM_CALL2(ReferenceToMusicTime,p,a,b) +#define IDirectMusicPerformance8_IsPlaying(p,a,b) ICOM_CALL2(IsPlaying,p,a,b) +#define IDirectMusicPerformance8_GetTime(p,a,b) ICOM_CALL2(GetTime,p,a,b) +#define IDirectMusicPerformance8_AllocPMsg(p,a,b) ICOM_CALL2(AllocPMsg,p,a,b) +#define IDirectMusicPerformance8_FreePMsg(p,a) ICOM_CALL1(FreePMsg,p,a) +#define IDirectMusicPerformance8_GetGraph(p,a) ICOM_CALL1(GetGraph,p,a) +#define IDirectMusicPerformance8_SetGraph(p,a) ICOM_CALL1(SetGraph,p,a) +#define IDirectMusicPerformance8_SetNotificationHandle(p,a,b) ICOM_CALL2(SetNotificationHandle,p,a,b) +#define IDirectMusicPerformance8_GetNotificationPMsg(p,a) ICOM_CALL1(GetNotificationPMsg,p,a) +#define IDirectMusicPerformance8_AddNotificationType(p,a) ICOM_CALL1(AddNotificationType,p,a) +#define IDirectMusicPerformance8_RemoveNotificationType(p,a) ICOM_CALL1(RemoveNotificationType,p,a) +#define IDirectMusicPerformance8_AddPort(p,a) ICOM_CALL1(AddPort,p,a) +#define IDirectMusicPerformance8_RemovePort(p,a) ICOM_CALL1(RemovePort,p,a) +#define IDirectMusicPerformance8_AssignPChannelBlock(p,a,b,c) ICOM_CALL3(AssignPChannelBlock,p,a,b,c) +#define IDirectMusicPerformance8_AssignPChannel(p,a,b,c,d) ICOM_CALL4(AssignPChannel,p,a,b,c,d) +#define IDirectMusicPerformance8_PChannelInfo(p,a,b,c,d) ICOM_CALL4(PChannelInfo,p,a,b,c,d) +#define IDirectMusicPerformance8_DownloadInstrument(p,a,b,c,d,e,f,g,h) ICOM_CALL8(DownloadInstrument,p,a,b,c,d,e,f,g,h) +#define IDirectMusicPerformance8_Invalidate(p,a,b) ICOM_CALL2(Invalidate,p,a,b) +#define IDirectMusicPerformance8_GetParam(p,a,b,c,d,e,f) ICOM_CALL6(GetParam,p,a,b,c,d,e,f) +#define IDirectMusicPerformance8_SetParam(p,a,b,c,d,e) ICOM_CALL5(SetParam,p,a,b,c,d,e) +#define IDirectMusicPerformance8_GetGlobalParam(p,a,b,c) ICOM_CALL3(GetGlobalParam,p,a,b,c) +#define IDirectMusicPerformance8_SetGlobalParam(p,a,b,c) ICOM_CALL3(SetGlobalParam,p,a,b,c) +#define IDirectMusicPerformance8_GetLatencyTime(p,a) ICOM_CALL1(GetLatencyTime,p,a) +#define IDirectMusicPerformance8_GetQueueTime(p,a) ICOM_CALL1(GetQueueTime,p,a) +#define IDirectMusicPerformance8_AdjustTime(p,a) ICOM_CALL1(AdjustTime,p,a) +#define IDirectMusicPerformance8_CloseDown(p) ICOM_CALL (CloseDown,p) +#define IDirectMusicPerformance8_GetResolvedTime(p,a,b,c) ICOM_CALL3(GetResolvedTime,p,a,b,c) +#define IDirectMusicPerformance8_MIDIToMusic(p,a,b,c,d,e) ICOM_CALL5(MIDIToMusic,p,a,b,c,d,e) +#define IDirectMusicPerformance8_MusicToMIDI(p,a,b,c,d,e) ICOM_CALL5(MusicToMIDI,p,a,b,c,d,e) +#define IDirectMusicPerformance8_TimeToRhythm(p,a,b,c,d,e,f) ICOM_CALL6(TimeToRhythm,p,a,b,c,d,e,f) +#define IDirectMusicPerformance8_RhythmToTime(p,a,b,c,d,e,f) ICOM_CALL6(RhythmToTime,p,a,b,c,d,e,f) + /* IDirectMusicPerformance8 methods*/ +#define IDirectMusicPerformance8_InitAudio(p,a,b,c,d,e,f,g) ICOM_CALL7(InitAudio,p,a,b,c,d,e,f,g) +#define IDirectMusicPerformance8_PlaySegmentEx(p,a,b,c,d,e,f,g,h) ICOM_CALL8(PlaySegmentEx,p,a,b,c,d,e,f,g,h) +#define IDirectMusicPerformance8_StopEx(p,a,b,c) ICOM_CALL3(StopEx,p,a,b,c) +#define IDirectMusicPerformance8_ClonePMsg(p,a,b) ICOM_CALL2(ClonePMsg,p,a,b) +#define IDirectMusicPerformance8_CreateAudioPath(p,a,b,c) ICOM_CALL3(CreateAudioPath,p,a,b,c) +#define IDirectMusicPerformance8_CreateStandardAudioPath(p,a,b,c,d) ICOM_CALL4(CreateStandardAudioPath,p,a,b,c,d) +#define IDirectMusicPerformance8_SetDefaultAudioPath(p,a) ICOM_CALL1(SetDefaultAudioPath,p,a) +#define IDirectMusicPerformance8_GetDefaultAudioPath(p,a) ICOM_CALL1(GetDefaultAudioPath,p,a) +#define IDirectMusicPerformance8_GetParamEx(p,a,b,c,d,e,f,g) ICOM_CALL7(GetParamEx,p,a,b,c,d,e,f,g) + + +/***************************************************************************** + * IDirectMusicGraph interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicGraph +#define IDirectMusicGraph_METHODS \ + /*** IDirectMusicGraph methods ***/ \ + ICOM_METHOD1(HRESULT, StampPMsg, DMUS_PMSG*,pPMSG) \ + ICOM_METHOD4(HRESULT, InsertTool, IDirectMusicTool*,pTool, DWORD*,pdwPChannels, DWORD,cPChannels, LONG,lIndex) \ + ICOM_METHOD2(HRESULT, GetTool, DWORD,dwIndex, IDirectMusicTool**,ppTool) \ + ICOM_METHOD1(HRESULT, RemoveTool, IDirectMusicTool*,pTool) + + /*** IDirectMusicGraph methods ***/ +#define IDirectMusicGraph_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicGraph_METHODS +ICOM_DEFINE(IDirectMusicGraph,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicGraph_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicGraph_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicGraph_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicGraph methods ***/ +#define IDirectMusicGraph_StampPMsg(p,a) ICOM_CALL1(StampPMsg,p,a) +#define IDirectMusicGraph_InsertTool(p,a,b,c,d) ICOM_CALL4(InsertTool,p,a,b,c,d) +#define IDirectMusicGraph_GetTool(p,a,b) ICOM_CALL2(GetTool,p,a,b) +#define IDirectMusicGraph_RemoveTool(p,a) ICOM_CALL1(RemoveTool,p,a) + + +/***************************************************************************** + * IDirectMusicStyle interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicStyle +#define IDirectMusicStyle_METHODS \ + /*** IDirectMusicStyle methods ***/ \ + ICOM_METHOD2(HRESULT, GetBand, WCHAR*,pwszName, IDirectMusicBand**,ppBand) \ + ICOM_METHOD2(HRESULT, EnumBand, DWORD,dwIndex, WCHAR*,pwszName) \ + ICOM_METHOD1(HRESULT, GetDefaultBand, IDirectMusicBand**,ppBand) \ + ICOM_METHOD2(HRESULT, EnumMotif, DWORD,dwIndex, WCHAR*,pwszName) \ + ICOM_METHOD2(HRESULT, GetMotif, WCHAR*,pwszName, IDirectMusicSegment**,ppSegment) \ + ICOM_METHOD1(HRESULT, GetDefaultChordMap, IDirectMusicChordMap**,ppChordMap) \ + ICOM_METHOD2(HRESULT, EnumChordMap, DWORD,dwIndex, WCHAR*,pwszName) \ + ICOM_METHOD2(HRESULT, GetChordMap, WCHAR*,pwszName, IDirectMusicChordMap**,ppChordMap) \ + ICOM_METHOD1(HRESULT, GetTimeSignature, DMUS_TIMESIGNATURE*,pTimeSig) \ + ICOM_METHOD4(HRESULT, GetEmbellishmentLength, DWORD,dwType, DWORD,dwLevel, DWORD*,pdwMin, DWORD*,pdwMax) \ + ICOM_METHOD1(HRESULT, GetTempo, double*,pTempo) + + /*** IDirectMusicStyle methods ***/ +#define IDirectMusicStyle_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicStyle_METHODS +ICOM_DEFINE(IDirectMusicStyle,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicStyle_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicStyle_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicStyle_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicStyle methods ***/ +#define IDirectMusicStyle_GetBand(p,a,b) ICOM_CALL2(GetBand,p,a,b) +#define IDirectMusicStyle_EnumBand(p,a,b) ICOM_CALL2(EnumBand,p,a,b) +#define IDirectMusicStyle_GetDefaultBand(p,a) ICOM_CALL1(GetDefaultBand,p,a) +#define IDirectMusicStyle_EnumMotif(p,a,b) ICOM_CALL2(EnumMotif,p,a,b) +#define IDirectMusicStyle_GetMotif(p,a,b) ICOM_CALL2(GetMotif,p,a,b) +#define IDirectMusicStyle_GetDefaultChordMap(p,a) ICOM_CALL1(GetDefaultChordMap,p,a) +#define IDirectMusicStyle_EnumChordMap(p,a,b) ICOM_CALL2(EnumChordMap,p,a,b) +#define IDirectMusicStyle_GetChordMap(p,a,b) ICOM_CALL2(GetChordMap,p,a,b) +#define IDirectMusicStyle_GetTimeSignature(p,a) ICOM_CALL1(GetTimeSignature,p,a) +#define IDirectMusicStyle_GetEmbellishmentLength(p,a,b,c,d) ICOM_CALL4GetEmbellishmentLength(,p,a,b,c,d) +#define IDirectMusicStyle_GetTempo(p,a) ICOM_CALL1(GetTempo,p,a) + + +/***************************************************************************** + * IDirectMusicStyle8 interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicStyle8 +#define IDirectMusicStyle8_METHODS \ + /*** IDirectMusicStyle8 methods ***/ \ + ICOM_METHOD3(HRESULT, EnumPattern, DWORD,dwIndex, DWORD,dwPatternType, WCHAR*,pwszName) + + /*** IDirectMusicStyle8 methods ***/ +#define IDirectMusicStyle8_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicStyle_METHODS \ + IDirectMusicStyle8_METHODS +ICOM_DEFINE(IDirectMusicStyle8,IDirectMusicStyle) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicStyle8_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicStyle8_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicStyle8_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicStyle methods ***/ +#define IDirectMusicStyle8_GetBand(p,a,b) ICOM_CALL2(GetBand,p,a,b) +#define IDirectMusicStyle8_EnumBand(p,a,b) ICOM_CALL2(EnumBand,p,a,b) +#define IDirectMusicStyle8_GetDefaultBand(p,a) ICOM_CALL1(GetDefaultBand,p,a) +#define IDirectMusicStyle8_EnumMotif(p,a,b) ICOM_CALL2(EnumMotif,p,a,b) +#define IDirectMusicStyle8_GetMotif(p,a,b) ICOM_CALL2(GetMotif,p,a,b) +#define IDirectMusicStyle8_GetDefaultChordMap(p,a) ICOM_CALL1(GetDefaultChordMap,p,a) +#define IDirectMusicStyle8_EnumChordMap(p,a,b) ICOM_CALL2(EnumChordMap,p,a,b) +#define IDirectMusicStyle8_GetChordMap(p,a,b) ICOM_CALL2(GetChordMap,p,a,b) +#define IDirectMusicStyle8_GetTimeSignature(p,a) ICOM_CALL1(GetTimeSignature,p,a) +#define IDirectMusicStyle8_GetEmbellishmentLength(p,a,b,c,d) ICOM_CALL4GetEmbellishmentLength(,p,a,b,c,d) +#define IDirectMusicStyle8_GetTempo(p,a) ICOM_CALL1(GetTempo,p,a) +/*** IDirectMusicStyle8 methods ***/ +#define IDirectMusicStyle8_EnumPattern(p,a,b,c) ICOM_CALL3(EnumPattern,p,a,b,c) + + +/***************************************************************************** + * IDirectMusicChordMap interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicChordMap +#define IDirectMusicChordMap_METHODS \ + /*** IDirectMusicChordMap methods ***/ \ + ICOM_METHOD1(HRESULT, GetScale, DWORD*,pdwScale) + + /*** IDirectMusicChordMap methods ***/ +#define IDirectMusicChordMap_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicChordMap_METHODS +ICOM_DEFINE(IDirectMusicChordMap,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicChordMap_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicChordMap_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicChordMap_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicChordMap methods ***/ +#define IDirectMusicChordMap_GetScale(p,a) ICOM_CALL1(GetScale,p,a) + + +/***************************************************************************** + * IDirectMusicComposer interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicComposer +#define IDirectMusicComposer_METHODS \ + /*** IDirectMusicComposer methods ***/ \ + ICOM_METHOD5(HRESULT, ComposeSegmentFromTemplate, IDirectMusicStyle*,pStyle, IDirectMusicSegment*,pTemplate, WORD,wActivity, IDirectMusicChordMap*,pChordMap, IDirectMusicSegment**,ppSegment) \ + ICOM_METHOD8(HRESULT, ComposeSegmentFromShape, IDirectMusicStyle*,pStyle, WORD,wNumMeasures, WORD,wShape, WORD,wActivity, BOOL,fIntro, BOOL,fEnd, IDirectMusicChordMap*,pChordMap, IDirectMusicSegment**,ppSegment) \ + ICOM_METHOD7(HRESULT, ComposeTransition, IDirectMusicSegment*,pFromSeg, IDirectMusicSegment*,pToSeg, MUSIC_TIME,mtTime, WORD,wCommand, DWORD,dwFlags, IDirectMusicChordMap*,pChordMap, IDirectMusicSegment**,ppTransSeg) \ + ICOM_METHOD8(HRESULT, AutoTransition, IDirectMusicPerformance*,pPerformance, IDirectMusicSegment*,pToSeg, WORD,wCommand, DWORD,dwFlags, IDirectMusicChordMap*,pChordMap, IDirectMusicSegment**,ppTransSeg, IDirectMusicSegmentState**,ppToSegState, IDirectMusicSegmentState**,ppTransSegState) \ + ICOM_METHOD6(HRESULT, ComposeTemplateFromShape, WORD,wNumMeasures, WORD,wShape, BOOL,fIntro, BOOL,fEnd, WORD,wEndLength, IDirectMusicSegment**,ppTemplate) \ + ICOM_METHOD3(HRESULT, ChangeChordMap, IDirectMusicSegment*,pSegment, BOOL,fTrackScale, IDirectMusicChordMap*,pChordMap) + + /*** IDirectMusicComposer methods ***/ +#define IDirectMusicComposer_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicComposer_METHODS +ICOM_DEFINE(IDirectMusicComposer,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicComposer_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicComposer_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicComposer_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicComposer methods ***/ +#define IDirectMusicComposer_ComposeSegmentFromTemplate(p,a,b,c,d,e) ICOM_CALL5(ComposeSegmentFromTemplate,p,a,b,c,d,e) +#define IDirectMusicComposer_ComposeSegmentFromShape(p,a,b,c,d,e,f,g,h) ICOM_CALL8(ComposeSegmentFromShape,p,a,b,c,d,e,f,g,h) +#define IDirectMusicComposer_ComposeTransition(p,a,b,c,d,e,f,g) ICOM_CALL7(ComposeTransition,p,a,b,c,d,e,f,g) +#define IDirectMusicComposer_AutoTransition(p,a,b,c,d,e,f,g,h) ICOM_CALL8(AutoTransition,p,a,b,c,d,e,f,g,h) +#define IDirectMusicComposer_ComposeTemplateFromShape(p,a,b,c,d,e,f) ICOM_CALL6(ComposeTemplateFromShape,p,a,b,c,d,e,f) +#define IDirectMusicComposer_ChangeChordMap(p,a,b,c) ICOM_CALL3(ChangeChordMap,p,a,b,c) + + +/***************************************************************************** + * IDirectMusicPatternTrack interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicPatternTrack +#define IDirectMusicPatternTrack_METHODS \ + /*** IDirectMusicPatternTrack methods ***/ \ + ICOM_METHOD2(HRESULT, CreateSegment, IDirectMusicStyle*,pStyle, IDirectMusicSegment**,ppSegment) \ + ICOM_METHOD3(HRESULT, SetVariation, IDirectMusicSegmentState*,pSegState, DWORD,dwVariationFlags, DWORD,dwPart) \ + ICOM_METHOD5(HRESULT, SetPatternByName, IDirectMusicSegmentState*,pSegState, WCHAR*,wszName, IDirectMusicStyle*,pStyle, DWORD,dwPatternType, DWORD*,pdwLength) + + /*** IDirectMusicPatternTrack methods ***/ +#define IDirectMusicPatternTrack_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicPatternTrack_METHODS +ICOM_DEFINE(IDirectMusicPatternTrack,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicPatternTrack_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicPatternTrack_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicPatternTrack_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicPatternTrack methods ***/ +#define IDirectMusicPatternTrack_CreateSegment(p,a,b) ICOM_CALL2(CreateSegment,p,a,b) +#define IDirectMusicPatternTrack_SetVariation(p,a,b,c) ICOM_CALL3(SetVariation,p,a,b,c) +#define IDirectMusicPatternTrack_SetPatternByName(p,a,b,c,d,e) ICOM_CALL5(SetPatternByName,p,a,b,c,d,e) + + +/***************************************************************************** + * IDirectMusicScript interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicScript +#define IDirectMusicScript_METHODS \ + /*** IDirectMusicScript methods ***/ \ + ICOM_METHOD2(HRESULT, Init, IDirectMusicPerformance*,pPerformance, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \ + ICOM_METHOD2(HRESULT, CallRoutine, WCHAR*,pwszRoutineName, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \ + ICOM_METHOD4(HRESULT, SetVariableVariant, WCHAR*,pwszVariableName, VARIANT,varValue, BOOL,fSetRef, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \ + ICOM_METHOD3(HRESULT, GetVariableVariant, WCHAR*,pwszVariableName, VARIANT*,pvarValue, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \ + ICOM_METHOD3(HRESULT, SetVariableNumber, WCHAR*,pwszVariableName, LONG,lValue, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \ + ICOM_METHOD3(HRESULT, GetVariableNumber, WCHAR*,pwszVariableName, LONG*,plValue, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \ + ICOM_METHOD3(HRESULT, SetVariableObject, WCHAR*,pwszVariableName, IUnknown*,punkValue, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \ + ICOM_METHOD4(HRESULT, GetVariableObject, WCHAR*,pwszVariableName, REFIID,riid, LPVOID*,ppv, DMUS_SCRIPT_ERRORINFO*,pErrorInfo) \ + ICOM_METHOD2(HRESULT, EnumRoutine, DWORD,dwIndex, WCHAR*,pwszName) \ + ICOM_METHOD2(HRESULT, EnumVariable, DWORD,dwIndex, WCHAR*,pwszName) + + /*** IDirectMusicScript methods ***/ +#define IDirectMusicScript_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicScript_METHODS +ICOM_DEFINE(IDirectMusicScript,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicScript_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicScript_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicScript_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicScript methods ***/ +#define IDirectMusicPatternTrack_Init(p,a,b) ICOM_CALL2(Init,p,a,b) +#define IDirectMusicPatternTrack_CallRoutine(p,a,b) ICOM_CALL2(CallRoutine,p,a,b) +#define IDirectMusicPatternTrack_SetVariableVariant(p,a,b,c,d) ICOM_CALL4(SetVariableVariant,p,a,b,c,d) +#define IDirectMusicPatternTrack_GetVariableVariant(p,a,b,c) ICOM_CALL3(GetVariableVariant,p,a,b,c) +#define IDirectMusicPatternTrack_SetVariableNumber(p,a,b,c) ICOM_CALL3(SetVariableNumber,p,a,b,c) +#define IDirectMusicPatternTrack_GetVariableNumber(p,a,b,c) ICOM_CALL3(GetVariableNumber,p,a,b,c) +#define IDirectMusicPatternTrack_SetVariableObject(p,a,b,c) ICOM_CALL3(SetVariableObject,p,a,b,c) +#define IDirectMusicPatternTrack_GetVariableObject(p,a,b,c,d) ICOM_CALL4(GetVariableObject,p,a,b,c,d) +#define IDirectMusicPatternTrack_EnumRoutine(p,a,b) ICOM_CALL2(EnumRoutine,p,a,b) +#define IDirectMusicPatternTrack_EnumVariable(p,a,b) ICOM_CALL2(EnumVariable,p,a,b) + + +/***************************************************************************** + * IDirectMusicContainer interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicContainer +#define IDirectMusicContainer_METHODS \ + /*** IDirectMusicContainer methods ***/ \ + ICOM_METHOD4(HRESULT, EnumObject, REFGUID,rguidClass, DWORD,dwIndex, LPDMUS_OBJECTDESC,pDesc, WCHAR*,pwszAlias) + + /*** IDirectMusicContainer methods ***/ +#define IDirectMusicContainer_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicContainer_METHODS +ICOM_DEFINE(IDirectMusicContainer,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicContainer_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicContainer_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicContainer_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicContainer methods ***/ +#define IDirectMusicContainer_EnumObject(p,a,b,c,d) ICOM_CALL4(EnumObject,p,a,b,c,d) + + +/***************************************************************************** + * IDirectMusicSong interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicSong +#define IDirectMusicSong_METHODS \ + /*** IDirectMusicSong methods ***/ \ + ICOM_METHOD (HRESULT, Compose) \ + ICOM_METHOD6(HRESULT, GetParam, REFGUID,rguidType, DWORD,dwGroupBits, DWORD,dwIndex, MUSIC_TIME,mtTime, MUSIC_TIME*,pmtNext, void*,pParam) \ + ICOM_METHOD2(HRESULT, GetSegment, WCHAR*,pwzName, IDirectMusicSegment**,ppSegment) \ + ICOM_METHOD1(HRESULT, GetAudioPathConfig, IUnknown**,ppAudioPathConfig) \ + ICOM_METHOD1(HRESULT, Download, IUnknown*,pAudioPath) \ + ICOM_METHOD1(HRESULT, Unload, IUnknown*,pAudioPath) \ + ICOM_METHOD2(HRESULT, EnumSegment, DWORD,dwIndex, IDirectMusicSegment**,ppSegment) + + /*** IDirectMusicSong methods ***/ +#define IDirectMusicSong_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicSong_METHODS +ICOM_DEFINE(IDirectMusicSong,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicSong_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicSong_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicSong_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicSong methods ***/ +#define IDirectMusicSong_Compose(p) ICOM_CALL (Compose,p) +#define IDirectMusicSong_GetParam(p,a,b,c,d,e,f) ICOM_CALL6(GetParam,p,a,b,c,d,e,f) +#define IDirectMusicSong_GetSegment(p,a,b) ICOM_CALL2(GetSegment,p,a,b) +#define IDirectMusicSong_GetAudioPathConfig(p,a) ICOM_CALL1(GetAudioPathConfig,p,a) +#define IDirectMusicSong_Download(p,a) ICOM_CALL1(Download,p,a) +#define IDirectMusicSong_Unload(p,a) ICOM_CALL1(Unload,p,a) +#define IDirectMusicSong_EnumSegment(p,a,b) ICOM_CALL2(EnumSegment,p,a,b) + +#ifdef __cplusplus +} +#endif + +#endif /* __WINE_DMUSIC_PERFORMANCE_H */ diff --git a/include/dmusics.h b/include/dmusics.h new file mode 100644 index 00000000000..d8d86aaea12 --- /dev/null +++ b/include/dmusics.h @@ -0,0 +1,207 @@ +/* + * DirectMusic Software Synth Definitions + * + * Copyright (C) 2003 Rok Mandeljc + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __WINE_DMUSIC_SOFTWARESYNTH_H +#define __WINE_DMUSIC_SOFTWARESYNTH_H + +#include "dmusicc.h" + + +/***************************************************************************** + * Definitions + */ +#define REGSTR_PATH_SOFTWARESYNTHS "Software\\Microsoft\\DirectMusic\\SoftwareSynths" +#define REFRESH_F_LASTBUFFER 0x00000001 + + +/***************************************************************************** + * Predeclare the interfaces + */ + +DEFINE_GUID(IID_IDirectMusicSynth, 0x9823661,0x5c85,0x11d2,0xaf,0xa6,0x0,0xaa,0x0,0x24,0xd8,0xb6); +typedef struct IDirectMusicSynth IDirectMusicSynth, *LPDIRECTMUSICSYNTH; +DEFINE_GUID(IID_IDirectMusicSynth8, 0x53cab625,0x2711,0x4c9f,0x9d,0xe7,0x1b,0x7f,0x92,0x5f,0x6f,0xc8); +typedef struct IDirectMusicSynth8 IDirectMusicSynth8, *LPDIRECTMUSICSYNTH8; +DEFINE_GUID(IID_IDirectMusicSynthSink, 0x9823663,0x5c85,0x11d2,0xaf,0xa6,0x0,0xaa, 0x0,0x24,0xd8,0xb6); +typedef struct IDirectMusicSynthSink IDirectMusicSynthSink, *LPDIRECTMUSICSYNTHSINK; +DEFINE_GUID(GUID_DMUS_PROP_SetSynthSink, 0x0a3a5ba5,0x37b6,0x11d2,0xb9,0xf9,0x00,0x00,0xf8,0x75,0xac,0x12); +DEFINE_GUID(GUID_DMUS_PROP_SinkUsesDSound, 0xbe208857,0x8952,0x11d2,0xba,0x1c,0x00,0x00,0xf8,0x75,0xac,0x12); + + +/***************************************************************************** + * Structures + */ +#ifndef _DMUS_VOICE_STATE_DEFINED +#define _DMUS_VOICE_STATE_DEFINED + +typedef struct _DMUS_VOICE_STATE +{ + BOOL bExists; + SAMPLE_POSITION spPosition; +} DMUS_VOICE_STATE; + +#endif /* _DMUS_VOICE_STATE_DEFINED */ + + +/***************************************************************************** + * IDirectMusicSynth interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicSynth +#define IDirectMusicSynth_METHODS \ + /*** IDirectMusicSynth methods ***/ \ + ICOM_METHOD1(HRESULT, Open, LPDMUS_PORTPARAMS,pPortParams) \ + ICOM_METHOD (HRESULT, Close) \ + ICOM_METHOD1(HRESULT, SetNumChannelGroups, DWORD,dwGroups) \ + ICOM_METHOD3(HRESULT, Download, LPHANDLE,phDownload, LPVOID,pvData, LPBOOL,pbFree) \ + ICOM_METHOD3(HRESULT, Unload, HANDLE,hDownload, HRESULT,(CALLBACK* lpFreeHandle)(HANDLE,HANDLE), HANDLE,hUserData) \ + ICOM_METHOD3(HRESULT, PlayBuffer, REFERENCE_TIME,rt, LPBYTE,pbBuffer, DWORD,cbBuffer) \ + ICOM_METHOD1(HRESULT, GetRunningStats, LPDMUS_SYNTHSTATS,pStats) \ + ICOM_METHOD1(HRESULT, GetPortCaps, LPDMUS_PORTCAPS,pCaps) \ + ICOM_METHOD1(HRESULT, SetMasterClock, IReferenceClock*,pClock) \ + ICOM_METHOD1(HRESULT, GetLatencyClock, IReferenceClock**,ppClock) \ + ICOM_METHOD1(HRESULT, Activate, BOOL,fEnable) \ + ICOM_METHOD1(HRESULT, SetSynthSink, IDirectMusicSynthSink*,pSynthSink) \ + ICOM_METHOD3(HRESULT, Render, short*,pBuffer, DWORD,dwLength, LONGLONG,llPosition) \ + ICOM_METHOD3(HRESULT, SetChannelPriority, DWORD,dwChannelGroup, DWORD,dwChannel, DWORD,dwPriority) \ + ICOM_METHOD3(HRESULT, GetChannelPriority, DWORD,dwChannelGroup, DWORD,dwChannel, LPDWORD,pdwPriority) \ + ICOM_METHOD2(HRESULT, GetFormat, LPWAVEFORMATEX,pWaveFormatEx, LPDWORD,pdwWaveFormatExSiz) \ + ICOM_METHOD1(HRESULT, GetAppend, DWORD*,pdwAppend) + +/*** IDirectMusicSynth methods ***/ +#define IDirectMusicSynth_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicSynth_METHODS +ICOM_DEFINE(IDirectMusicSynth,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicSynth_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicSynth_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicSynth_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicSynth methods ***/ +#define IDirectMusicSynth_Open(p,a) ICOM_CALL1(Open,p,a) +#define IDirectMusicSynth_Close(p) ICOM_CALL (Close,p) +#define IDirectMusicSynth_SetNumChannelGroups(p,a) ICOM_CALL1(SetNumChannelGroups,p,a) +#define IDirectMusicSynth_Download(p,a,b,c) ICOM_CALL3(Download,p,a,b,c) +#define IDirectMusicSynth_Unload(p,a,b,c) ICOM_CALL3(Unload,p,a,b,c) +#define IDirectMusicSynth_PlayBuffer(p,a,b,c) ICOM_CALL3(PlayBuffer,p,a,b,c) +#define IDirectMusicSynth_GetRunningStats(p,a) ICOM_CALL1(GetRunningStats,p,a) +#define IDirectMusicSynth_GetPortCaps(p,a) ICOM_CALL1(GetPortCaps,p,a) +#define IDirectMusicSynth_SetMasterClock(p,a) ICOM_CALL1(SetMasterClock,p,a) +#define IDirectMusicSynth_GetLatencyClock(p,a) ICOM_CALL1(GetLatencyClock,p,a) +#define IDirectMusicSynth_Activate(p,a) ICOM_CALL1(Activate,p,a) +#define IDirectMusicSynth_SetSynthSink(p,a) ICOM_CALL1(SetSynthSink,p,a) +#define IDirectMusicSynth_Render(p,a,b,c) ICOM_CALL3(Render,p,a,b,c) +#define IDirectMusicSynth_SetChannelPriority(p,a,b,c) ICOM_CALL3(SetChannelPriority,p,a,b,c) +#define IDirectMusicSynth_GetChannelPriority(p,a,b,c) ICOM_CALL3(GetChannelPriority,p,a,b,c) +#define IDirectMusicSynth_GetFormat(p,a,b) ICOM_CALL2(GetFormat,p,a,b) +#define IDirectMusicSynth_GetAppend(p,a) ICOM_CALL1(GetAppend,p,a) + + +/***************************************************************************** + * IDirectMusicSynth8 interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicSynth8 +#define IDirectMusicSynth8_METHODS \ + /*** IDirectMusicSynth8 methods ***/ \ + ICOM_METHOD10(HRESULT, PlayVoice, REFERENCE_TIME,rt, DWORD,dwVoiceId, DWORD,dwChannelGroup, DWORD,dwChannel, DWORD,dwDLId, long,prPitch, long,vrVolume, SAMPLE_TIME,stVoiceStart, SAMPLE_TIME,stLoopStart, SAMPLE_TIME,stLoopEnd) \ + ICOM_METHOD2(HRESULT, StopVoice, REFERENCE_TIME,rt, DWORD,dwVoiceId) \ + ICOM_METHOD3(HRESULT, GetVoiceState, DWORD,dwVoice[], DWORD,cbVoice, DMUS_VOICE_STATE,dwVoiceState[]) \ + ICOM_METHOD2(HRESULT, Refresh, DWORD,dwDownloadID, DWORD,dwFlags) \ + ICOM_METHOD4(HRESULT, AssignChannelToBuses, DWORD,dwChannelGroup, DWORD,dwChannel, LPDWORD,pdwBuses, DWORD,cBuses) + +/*** IDirectMusicSynth methods ***/ +#define IDirectMusicSynth8_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicSynth_METHODS \ + IDirectMusicSynth8_METHODS +ICOM_DEFINE(IDirectMusicSynth8,IDirectMusicSynth) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicSynth8_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicSynth8_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicSynth8_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicSynth methods ***/ +#define IDirectMusicSynth8_Open(p,a) ICOM_CALL1(Open,p,a) +#define IDirectMusicSynth8_Close(p) ICOM_CALL (Close,p) +#define IDirectMusicSynth8_SetNumChannelGroups(p,a) ICOM_CALL1(SetNumChannelGroups,p,a) +#define IDirectMusicSynth8_Download(p,a,b,c) ICOM_CALL3(Download,p,a,b,c) +#define IDirectMusicSynth8_Unload(p,a,b,c) ICOM_CALL3(Unload,p,a,b,c) +#define IDirectMusicSynth8_PlayBuffer(p,a,b,c) ICOM_CALL3(PlayBuffer,p,a,b,c) +#define IDirectMusicSynth8_GetRunningStats(p,a) ICOM_CALL1(GetRunningStats,p,a) +#define IDirectMusicSynth8_GetPortCaps(p,a) ICOM_CALL1(GetPortCaps,p,a) +#define IDirectMusicSynth8_SetMasterClock(p,a) ICOM_CALL1(SetMasterClock,p,a) +#define IDirectMusicSynth8_GetLatencyClock(p,a) ICOM_CALL1(GetLatencyClock,p,a) +#define IDirectMusicSynth8_Activate(p,a) ICOM_CALL1(Activate,p,a) +#define IDirectMusicSynth8_SetSynthSink(p,a) ICOM_CALL1(SetSynthSink,p,a) +#define IDirectMusicSynth8_Render(p,a,b,c) ICOM_CALL3(Render,p,a,b,c) +#define IDirectMusicSynth8_SetChannelPriority(p,a,b,c) ICOM_CALL3(SetChannelPriority,p,a,b,c) +#define IDirectMusicSynth8_GetChannelPriority(p,a,b,c) ICOM_CALL3(GetChannelPriority,p,a,b,c) +#define IDirectMusicSynth8_GetFormat(p,a,b) ICOM_CALL2(GetFormat,p,a,b) +#define IDirectMusicSynth8_GetAppend(p,a) ICOM_CALL1(GetAppend,p,a) +/*** IDirectMusicSynth8 methods ***/ +#define IDirectMusicSynth8_PlayVoice(p,a,b,c,d,e,f,g,h,i,j) ICOM_CALL10(PlayVoice,p,a,b,c,d,e,f,g,h,i,j) +#define IDirectMusicSynth8_StopVoice(p,a,b) ICOM_CALL2(StopVoice,p,a,b) +#define IDirectMusicSynth8_GetVoiceState(p,a,b,c) ICOM_CALL3(GetVoiceState,p,a,b,c) +#define IDirectMusicSynth8_Refresh(p,a,b) ICOM_CALL2(Refresh,p,a,b) +#define IDirectMusicSynth8_AssignChannelToBuses(p,a,b,c,d) ICOM_CALL4(AssignChannelToBuses,p,a,b,c,d) + + +/***************************************************************************** + * IDirectMusicSynthSink interface + */ +#undef ICOM_INTERFACE +#define ICOM_INTERFACE IDirectMusicSynthSink +#define IDirectMusicSynthSink_METHODS \ + /*** IDirectMusicSynthSink methods ***/ \ + ICOM_METHOD1(HRESULT, Init, IDirectMusicSynth*,pSynth) \ + ICOM_METHOD1(HRESULT, SetMasterClock, IReferenceClock*,pClock) \ + ICOM_METHOD1(HRESULT, GetLatencyClock, IReferenceClock**,ppClock) \ + ICOM_METHOD1(HRESULT, Activate, BOOL,fEnable) \ + ICOM_METHOD2(HRESULT, SampleToRefTime, LONGLONG,llSampleTime, REFERENCE_TIME*,prfTime) \ + ICOM_METHOD2(HRESULT, RefTimeToSample, REFERENCE_TIME,rfTime, LONGLONG*,pllSampleTime) \ + ICOM_METHOD2(HRESULT, SetDirectSound, LPDIRECTSOUND,pDirectSound, LPDIRECTSOUNDBUFFER,pDirectSoundBuffer) \ + ICOM_METHOD1(HRESULT, GetDesiredBufferSize, LPDWORD,pdwBufferSizeInSamples) + +/*** IDirectMusicSynthSink methods ***/ +#define IDirectMusicSynthSink_IMETHODS \ + IUnknown_IMETHODS \ + IDirectMusicSynthSink_METHODS +ICOM_DEFINE(IDirectMusicSynthSink,IUnknown) +#undef ICOM_INTERFACE + +/*** IUnknown methods ***/ +#define IDirectMusicSynthSink_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) +#define IDirectMusicSynthSink_AddRef(p) ICOM_CALL (AddRef,p) +#define IDirectMusicSynthSink_Release(p) ICOM_CALL (Release,p) +/*** IDirectMusicSynth methods ***/ +#define IDirectMusicSynthSink_Init(p,a) ICOM_CALL1(Init,p,a) +#define IDirectMusicSynthSink_SetMasterClock(p,a) ICOM_CALL1(SetMasterClock,p,a) +#define IDirectMusicSynthSink_GetLatencyClock(p,a) ICOM_CALL1(GetLatencyClock,p,a) +#define IDirectMusicSynthSink_Activate(p,a) ICOM_CALL1(Activate,p,a) +#define IDirectMusicSynthSink_SampleToRefTime(p,a,b) ICOM_CALL2(SampleToRefTime,p,a,b) +#define IDirectMusicSynthSink_RefTimeToSample(p,a,b) ICOM_CALL2(RefTimeToSample,p,a,b) +#define IDirectMusicSynthSink_SetDirectSound(p,a,b) ICOM_CALL2(SetDirectSound,p,a,b) +#define IDirectMusicSynthSink_GetDesiredBufferSize(p,a) ICOM_CALL1(GetDesiredBufferSize,p,a) + +#endif /* __WINE_DMUSIC_SOFTWARESYNTH_H */ diff --git a/libs/uuid/dxguid.c b/libs/uuid/dxguid.c index 6344e9b9622..00cbc6cd86c 100644 --- a/libs/uuid/dxguid.c +++ b/libs/uuid/dxguid.c @@ -34,6 +34,9 @@ #include "ddraw.h" #include "dsound.h" #include "dmusicc.h" +#include "dmusici.h" +#include "dmusics.h" +#include "dmplugin.h" #include "dplay.h" #include "dplobby.h" #include "dinput.h"