dmplugin.h revision 589fd26cedb2b4ebbed14f2964cad03cc8ebbca2
20593760b116c90f3e439552763eef632a3bbb17vboxsync * DirectMusic Performance Layer Plugins API
20593760b116c90f3e439552763eef632a3bbb17vboxsync * Copyright (C) 2003-2004 Rok Mandeljc
20593760b116c90f3e439552763eef632a3bbb17vboxsync * This program is free software; you can redistribute it and/or
20593760b116c90f3e439552763eef632a3bbb17vboxsync * modify it under the terms of the GNU Lesser General Public
20593760b116c90f3e439552763eef632a3bbb17vboxsync * License as published by the Free Software Foundation; either
20593760b116c90f3e439552763eef632a3bbb17vboxsync * version 2.1 of the License, or (at your option) any later version.
20593760b116c90f3e439552763eef632a3bbb17vboxsync * This program is distributed in the hope that it will be useful,
20593760b116c90f3e439552763eef632a3bbb17vboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
20593760b116c90f3e439552763eef632a3bbb17vboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20593760b116c90f3e439552763eef632a3bbb17vboxsync * Lesser General Public License for more details.
20593760b116c90f3e439552763eef632a3bbb17vboxsync * You should have received a copy of the GNU Lesser General Public
20593760b116c90f3e439552763eef632a3bbb17vboxsync * License along with this program; if not, write to the Free Software
20593760b116c90f3e439552763eef632a3bbb17vboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20593760b116c90f3e439552763eef632a3bbb17vboxsync * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
20593760b116c90f3e439552763eef632a3bbb17vboxsync * other than GPL or LGPL is available it will apply instead, Sun elects to use only
20593760b116c90f3e439552763eef632a3bbb17vboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
20593760b116c90f3e439552763eef632a3bbb17vboxsync * a choice of LGPL license versions is made available with the language indicating
20593760b116c90f3e439552763eef632a3bbb17vboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
20593760b116c90f3e439552763eef632a3bbb17vboxsync * of the LGPL is applied is otherwise unspecified.
20593760b116c90f3e439552763eef632a3bbb17vboxsync#endif /* __WINESRC__ */
ea9fe8748652b3e7b3f1245001f9d7cd8c9eaaccvboxsyncextern "C" {
20593760b116c90f3e439552763eef632a3bbb17vboxsync/*****************************************************************************
20593760b116c90f3e439552763eef632a3bbb17vboxsync * Registry path
20593760b116c90f3e439552763eef632a3bbb17vboxsync#define DMUS_REGSTR_PATH_TOOLS "Software\\Microsoft\\DirectMusic\\Tools"
20593760b116c90f3e439552763eef632a3bbb17vboxsync/*****************************************************************************
20593760b116c90f3e439552763eef632a3bbb17vboxsync * Predeclare the interfaces
ea9fe8748652b3e7b3f1245001f9d7cd8c9eaaccvboxsync/* CLSIDs */
ea9fe8748652b3e7b3f1245001f9d7cd8c9eaaccvboxsyncDEFINE_GUID(CLSID_DirectMusicBandTrack, 0xd2ac2894,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicChordTrack, 0xd2ac288b,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
ea9fe8748652b3e7b3f1245001f9d7cd8c9eaaccvboxsyncDEFINE_GUID(CLSID_DirectMusicChordMapTrack, 0xd2ac2896,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicCommandTrack, 0xd2ac288c,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicLyricsTrack, 0x995c1cf5,0x54ff,0x11d3,0x8b,0xda,0x00,0x60,0x08,0x93,0xb1,0xb6);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicMarkerTrack, 0x55a8fd00,0x4288,0x11d3,0x9b,0xd1,0x8a,0x0d,0x61,0xc8,0x88,0x35);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicMotifTrack, 0xd2ac288e,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicMuteTrack, 0xd2ac2898,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicParamControlTrack, 0x4be0537b,0x5c19,0x11d3,0x8b,0xdc,0x00,0x60,0x08,0x93,0xb1,0xb6);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicScriptTrack, 0x4108fa85,0x3586,0x11d3,0x8b,0xd7,0x00,0x60,0x08,0x93,0xb1,0xb6);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicSegmentTriggerTrack, 0xbae4d665,0x4ea1,0x11d3,0x8b,0xda,0x00,0x60,0x08,0x93,0xb1,0xb6);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicSeqTrack, 0xd2ac2886,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicSignPostTrack, 0xf17e8672,0xc3b4,0x11d1,0x87,0x0b,0x00,0x60,0x08,0x93,0xb1,0xbd);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicStyleTrack, 0xd2ac288d,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicSysExTrack, 0xd2ac2887,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicTempoTrack, 0xd2ac2885,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicTimeSigTrack, 0xd2ac2888,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicWaveTrack, 0xeed36461,0x9ea5,0x11d3,0x9b,0xd1,0x00,0x80,0xc7,0x15,0x0a,0x74);
20593760b116c90f3e439552763eef632a3bbb17vboxsync/* MS doesn't support this in DX 9.0 and newer... but there's no harm in keeping it around */
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(CLSID_DirectMusicMelodyFormulationTrack, 0xb0684266,0xb57f,0x11d2,0x97,0xf9,0x00,0xc0,0x4f,0xa3,0x6e,0x58);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(IID_IDirectMusicTool, 0xd2ac28ba,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(IID_IDirectMusicTool8, 0x0e674303,0x3b05,0x11d3,0x9b,0xd1,0xf9,0xe7,0xf0,0xa0,0x15,0x36);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(IID_IDirectMusicTrack, 0xf96029a1,0x4282,0x11d2,0x87,0x17,0x00,0x60,0x08,0x93,0xb1,0xbd);
20593760b116c90f3e439552763eef632a3bbb17vboxsyncDEFINE_GUID(IID_IDirectMusicTrack8, 0x0e674304,0x3b05,0x11d3,0x9b,0xd1,0xf9,0xe7,0xf0,0xa0,0x15,0x36);
20593760b116c90f3e439552763eef632a3bbb17vboxsync/* typedef definitions */
20593760b116c90f3e439552763eef632a3bbb17vboxsynctypedef struct IDirectMusicTrack *LPDIRECTMUSICTRACK;
20593760b116c90f3e439552763eef632a3bbb17vboxsynctypedef struct IDirectMusicTrack8 *LPDIRECTMUSICTRACK8;
20593760b116c90f3e439552763eef632a3bbb17vboxsynctypedef struct IDirectMusicTool8 *LPDIRECTMUSICTOOL8;
20593760b116c90f3e439552763eef632a3bbb17vboxsync/* these are from dmusici.h and are needed here */
20593760b116c90f3e439552763eef632a3bbb17vboxsynctypedef struct IDirectMusicPerformance *LPDIRECTMUSICPERFORMANCE;
20593760b116c90f3e439552763eef632a3bbb17vboxsynctypedef struct IDirectMusicPerformance8 *LPDIRECTMUSICPERFORMANCE8;
20593760b116c90f3e439552763eef632a3bbb17vboxsynctypedef struct IDirectMusicSegment *LPDIRECTMUSICSEGMENT;
20593760b116c90f3e439552763eef632a3bbb17vboxsynctypedef struct IDirectMusicSegment8 *LPDIRECTMUSICSEGMENT8;
20593760b116c90f3e439552763eef632a3bbb17vboxsynctypedef struct IDirectMusicSegmentState *LPDIRECTMUSICSEGMENTSTATE;
20593760b116c90f3e439552763eef632a3bbb17vboxsynctypedef struct IDirectMusicSegmentState8 *LPDIRECTMUSICSEGMENTSTATE8;
20593760b116c90f3e439552763eef632a3bbb17vboxsynctypedef struct IDirectMusicGraph *LPDIRECTMUSICGRAPH;
20593760b116c90f3e439552763eef632a3bbb17vboxsynctypedef struct IDirectMusicGraph IDirectMusicGraph8, *LPDIRECTMUSICGRAPH8;
20593760b116c90f3e439552763eef632a3bbb17vboxsync/*****************************************************************************
enum enumDMUS_TRACKF_FLAGS {
STDMETHOD(Flush)(THIS_ struct IDirectMusicPerformance *pPerf, DMUS_PMSG *pPMSG, REFERENCE_TIME rtTime) PURE;
STDMETHOD(Flush)(THIS_ struct IDirectMusicPerformance *pPerf, DMUS_PMSG *pPMSG, REFERENCE_TIME rtTime) PURE;
STDMETHOD(InitPlay)(THIS_ struct IDirectMusicSegmentState *pSegmentState, struct IDirectMusicPerformance *pPerformance, void **ppStateData, DWORD dwVirtualTrackID, DWORD dwFlags) PURE;
STDMETHOD(Play)(THIS_ void *pStateData, MUSIC_TIME mtStart, MUSIC_TIME mtEnd, MUSIC_TIME mtOffset, DWORD dwFlags, struct IDirectMusicPerformance *pPerf, struct IDirectMusicSegmentState *pSegSt, DWORD dwVirtualID) PURE;
STDMETHOD(GetParam)(THIS_ REFGUID rguidType, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE;
STDMETHOD(InitPlay)(THIS_ struct IDirectMusicSegmentState *pSegmentState, struct IDirectMusicPerformance *pPerformance, void **ppStateData, DWORD dwVirtualTrackID, DWORD dwFlags) PURE;
STDMETHOD(Play)(THIS_ void *pStateData, MUSIC_TIME mtStart, MUSIC_TIME mtEnd, MUSIC_TIME mtOffset, DWORD dwFlags, struct IDirectMusicPerformance *pPerf, struct IDirectMusicSegmentState *pSegSt, DWORD dwVirtualID) PURE;
STDMETHOD(GetParam)(THIS_ REFGUID rguidType, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE;
STDMETHOD(PlayEx)(THIS_ void *pStateData, REFERENCE_TIME rtStart, REFERENCE_TIME rtEnd, REFERENCE_TIME rtOffset, DWORD dwFlags, struct IDirectMusicPerformance *pPerf, struct IDirectMusicSegmentState *pSegSt, DWORD dwVirtualID) PURE;
STDMETHOD(GetParamEx)(THIS_ REFGUID rguidType, REFERENCE_TIME rtTime, REFERENCE_TIME *prtNext, void *pParam, void *pStateData, DWORD dwFlags) PURE;
STDMETHOD(SetParamEx)(THIS_ REFGUID rguidType, REFERENCE_TIME rtTime, void *pParam, void *pStateData, DWORD dwFlags) PURE;
STDMETHOD(Compose)(THIS_ IUnknown *pContext, DWORD dwTrackGroup, IDirectMusicTrack **ppResultTrack) PURE;
STDMETHOD(Join)(THIS_ IDirectMusicTrack *pNewTrack, MUSIC_TIME mtJoin, IUnknown *pContext, DWORD dwTrackGroup, IDirectMusicTrack **ppResultTrack) PURE;
#ifdef __cplusplus
#include <poppack.h>