dmplugin.h revision af062818b47340eef15700d2f0211576ba3506ee
4b3769ce483ece06f60f983193712492b920144fJake Feasel * DirectMusic Performance Layer Plugins API
4b3769ce483ece06f60f983193712492b920144fJake Feasel * Copyright (C) 2003-2004 Rok Mandeljc
4b3769ce483ece06f60f983193712492b920144fJake Feasel * This program is free software; you can redistribute it and/or
4b3769ce483ece06f60f983193712492b920144fJake Feasel * modify it under the terms of the GNU Lesser General Public
4b3769ce483ece06f60f983193712492b920144fJake Feasel * License as published by the Free Software Foundation; either
4b3769ce483ece06f60f983193712492b920144fJake Feasel * version 2.1 of the License, or (at your option) any later version.
4b3769ce483ece06f60f983193712492b920144fJake Feasel * This program is distributed in the hope that it will be useful,
4b3769ce483ece06f60f983193712492b920144fJake Feasel * but WITHOUT ANY WARRANTY; without even the implied warranty of
4b3769ce483ece06f60f983193712492b920144fJake Feasel * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4b3769ce483ece06f60f983193712492b920144fJake Feasel * Lesser General Public License for more details.
4b3769ce483ece06f60f983193712492b920144fJake Feasel * You should have received a copy of the GNU Lesser General Public
194cdefb77cf5217ac87c29c6412db51bd6b8c8dBrendan Mmiller * License along with this program; if not, write to the Free Software
194cdefb77cf5217ac87c29c6412db51bd6b8c8dBrendan Mmiller * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
194cdefb77cf5217ac87c29c6412db51bd6b8c8dBrendan Mmiller#endif /* __WINESRC__ */
4b3769ce483ece06f60f983193712492b920144fJake Feasel/*****************************************************************************
4b3769ce483ece06f60f983193712492b920144fJake Feasel * Registry path
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan Mmiller#define DMUS_REGSTR_PATH_TOOLS "Software\\Microsoft\\DirectMusic\\Tools"
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan Mmiller/*****************************************************************************
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan Mmiller * Predeclare the interfaces
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan MmillerDEFINE_GUID(CLSID_DirectMusicBandTrack, 0xd2ac2894,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan MmillerDEFINE_GUID(CLSID_DirectMusicChordTrack, 0xd2ac288b,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan MmillerDEFINE_GUID(CLSID_DirectMusicChordMapTrack, 0xd2ac2896,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan MmillerDEFINE_GUID(CLSID_DirectMusicCommandTrack, 0xd2ac288c,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan MmillerDEFINE_GUID(CLSID_DirectMusicLyricsTrack, 0x995c1cf5,0x54ff,0x11d3,0x8b,0xda,0x00,0x60,0x08,0x93,0xb1,0xb6);
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan MmillerDEFINE_GUID(CLSID_DirectMusicMarkerTrack, 0x55a8fd00,0x4288,0x11d3,0x9b,0xd1,0x8a,0x0d,0x61,0xc8,0x88,0x35);
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan MmillerDEFINE_GUID(CLSID_DirectMusicMotifTrack, 0xd2ac288e,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan MmillerDEFINE_GUID(CLSID_DirectMusicMuteTrack, 0xd2ac2898,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan MmillerDEFINE_GUID(CLSID_DirectMusicParamControlTrack, 0x4be0537b,0x5c19,0x11d3,0x8b,0xdc,0x00,0x60,0x08,0x93,0xb1,0xb6);
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan MmillerDEFINE_GUID(CLSID_DirectMusicScriptTrack, 0x4108fa85,0x3586,0x11d3,0x8b,0xd7,0x00,0x60,0x08,0x93,0xb1,0xb6);
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan MmillerDEFINE_GUID(CLSID_DirectMusicSegmentTriggerTrack, 0xbae4d665,0x4ea1,0x11d3,0x8b,0xda,0x00,0x60,0x08,0x93,0xb1,0xb6);
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan MmillerDEFINE_GUID(CLSID_DirectMusicSeqTrack, 0xd2ac2886,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan MmillerDEFINE_GUID(CLSID_DirectMusicSignPostTrack, 0xf17e8672,0xc3b4,0x11d1,0x87,0x0b,0x00,0x60,0x08,0x93,0xb1,0xbd);
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan MmillerDEFINE_GUID(CLSID_DirectMusicStyleTrack, 0xd2ac288d,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan MmillerDEFINE_GUID(CLSID_DirectMusicSysExTrack, 0xd2ac2887,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan MmillerDEFINE_GUID(CLSID_DirectMusicTempoTrack, 0xd2ac2885,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
4b3769ce483ece06f60f983193712492b920144fJake FeaselDEFINE_GUID(CLSID_DirectMusicTimeSigTrack, 0xd2ac2888,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
4b3769ce483ece06f60f983193712492b920144fJake FeaselDEFINE_GUID(CLSID_DirectMusicWaveTrack, 0xeed36461,0x9ea5,0x11d3,0x9b,0xd1,0x00,0x80,0xc7,0x15,0x0a,0x74);
4b3769ce483ece06f60f983193712492b920144fJake Feasel/* MS doesn't support this in DX 9.0 and newer... but there's no harm in keeping it around */
4b3769ce483ece06f60f983193712492b920144fJake FeaselDEFINE_GUID(CLSID_DirectMusicMelodyFormulationTrack, 0xb0684266,0xb57f,0x11d2,0x97,0xf9,0x00,0xc0,0x4f,0xa3,0x6e,0x58);
4b3769ce483ece06f60f983193712492b920144fJake FeaselDEFINE_GUID(IID_IDirectMusicTool, 0xd2ac28ba,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
db4f02cbee52b92fd37a39aeee44dcd2272bc99cAlin BriciDEFINE_GUID(IID_IDirectMusicTool8, 0x0e674303,0x3b05,0x11d3,0x9b,0xd1,0xf9,0xe7,0xf0,0xa0,0x15,0x36);
4b3769ce483ece06f60f983193712492b920144fJake FeaselDEFINE_GUID(IID_IDirectMusicTrack, 0xf96029a1,0x4282,0x11d2,0x87,0x17,0x00,0x60,0x08,0x93,0xb1,0xbd);
4b3769ce483ece06f60f983193712492b920144fJake FeaselDEFINE_GUID(IID_IDirectMusicTrack8, 0x0e674304,0x3b05,0x11d3,0x9b,0xd1,0xf9,0xe7,0xf0,0xa0,0x15,0x36);
4b3769ce483ece06f60f983193712492b920144fJake Feasel/* typedef definitions */
4b3769ce483ece06f60f983193712492b920144fJake Feaseltypedef struct IDirectMusicTrack *LPDIRECTMUSICTRACK;
4b3769ce483ece06f60f983193712492b920144fJake Feaseltypedef struct IDirectMusicTrack8 *LPDIRECTMUSICTRACK8;
4b3769ce483ece06f60f983193712492b920144fJake Feaseltypedef struct IDirectMusicTool *LPDIRECTMUSICTOOL;
4b3769ce483ece06f60f983193712492b920144fJake Feaseltypedef struct IDirectMusicTool8 *LPDIRECTMUSICTOOL8;
4b3769ce483ece06f60f983193712492b920144fJake Feasel/* these are from dmusici.h and are needed here */
4b3769ce483ece06f60f983193712492b920144fJake Feaseltypedef struct IDirectMusicPerformance *LPDIRECTMUSICPERFORMANCE;
4b3769ce483ece06f60f983193712492b920144fJake Feaseltypedef struct IDirectMusicPerformance8 *LPDIRECTMUSICPERFORMANCE8;
4b3769ce483ece06f60f983193712492b920144fJake Feaseltypedef struct IDirectMusicSegment *LPDIRECTMUSICSEGMENT;
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan Mmillertypedef struct IDirectMusicSegment8 *LPDIRECTMUSICSEGMENT8;
typedef long MUSIC_TIME;
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>