| /* DirectMusicComposer Private Include |
| * |
| * 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_DMCOMPOS_PRIVATE_H |
| #define __WINE_DMCOMPOS_PRIVATE_H |
| |
| #include "windef.h" |
| #include "wine/debug.h" |
| #include "winbase.h" |
| #include "winnt.h" |
| #include "dmusicc.h" |
| #include "dmusici.h" |
| #include "dmusics.h" |
| #include "dmplugin.h" |
| #include "dmusicf.h" |
| #include "dsound.h" |
| |
| /***************************************************************************** |
| * Interfaces |
| */ |
| typedef struct IDirectMusicChordMapImpl IDirectMusicChordMapImpl; |
| typedef struct IDirectMusicComposerImpl IDirectMusicComposerImpl; |
| |
| /***************************************************************************** |
| * Predeclare the interface implementation structures |
| */ |
| extern ICOM_VTABLE(IDirectMusicChordMap) DirectMusicChordMap_Vtbl; |
| extern ICOM_VTABLE(IDirectMusicComposer) DirectMusicComposer_Vtbl; |
| |
| /***************************************************************************** |
| * ClassFactory |
| */ |
| |
| /* can support IID_IDirectMusicChordMap |
| * return always an IDirectMusicChordMapImpl |
| */ |
| extern HRESULT WINAPI DMUSIC_CreateDirectMusicChordMap (LPCGUID lpcGUID, LPDIRECTMUSICCHORDMAP* ppDMCM, LPUNKNOWN pUnkOuter); |
| /* can support IID_IDirectMusicComposer |
| * return always an IDirectMusicComposerImpl |
| */ |
| extern HRESULT WINAPI DMUSIC_CreateDirectMusicComposer (LPCGUID lpcGUID, LPDIRECTMUSICCOMPOSER* ppDMCP, LPUNKNOWN pUnkOuter); |
| |
| |
| /***************************************************************************** |
| * IDirectMusicChordMapImpl implementation structure |
| */ |
| struct IDirectMusicChordMapImpl |
| { |
| /* IUnknown fields */ |
| ICOM_VFIELD(IDirectMusicChordMap); |
| DWORD ref; |
| |
| /* IDirectMusicChordMapImpl fields */ |
| DWORD dwScale; |
| }; |
| |
| /* IUnknown: */ |
| extern HRESULT WINAPI IDirectMusicChordMapImpl_QueryInterface (LPDIRECTMUSICCHORDMAP iface, REFIID riid, LPVOID *ppobj); |
| extern ULONG WINAPI IDirectMusicChordMapImpl_AddRef (LPDIRECTMUSICCHORDMAP iface); |
| extern ULONG WINAPI IDirectMusicChordMapImpl_Release (LPDIRECTMUSICCHORDMAP iface); |
| /* IDirectMusicChordMap: */ |
| extern HRESULT WINAPI IDirectMusicChordMapImpl_GetScale (LPDIRECTMUSICCHORDMAP iface, DWORD* pdwScale); |
| |
| |
| /***************************************************************************** |
| * IDirectMusicComposerImpl implementation structure |
| */ |
| struct IDirectMusicComposerImpl |
| { |
| /* IUnknown fields */ |
| ICOM_VFIELD(IDirectMusicComposer); |
| DWORD ref; |
| |
| /* IDirectMusicComposerImpl fields */ |
| }; |
| |
| /* IUnknown: */ |
| extern HRESULT WINAPI IDirectMusicComposerImpl_QueryInterface (LPDIRECTMUSICCOMPOSER iface, REFIID riid, LPVOID *ppobj); |
| extern ULONG WINAPI IDirectMusicComposerImpl_AddRef (LPDIRECTMUSICCOMPOSER iface); |
| extern ULONG WINAPI IDirectMusicComposerImpl_Release (LPDIRECTMUSICCOMPOSER iface); |
| /* IDirectMusicComposer: */ |
| extern HRESULT WINAPI IDirectMusicComposerImpl_ComposeSegmentFromTemplate (LPDIRECTMUSICCOMPOSER iface, IDirectMusicStyle* pStyle, IDirectMusicSegment* pTemplate, WORD wActivity, IDirectMusicChordMap* pChordMap, IDirectMusicSegment** ppSegment);
|
| extern HRESULT WINAPI IDirectMusicComposerImpl_ComposeSegmentFromShape (LPDIRECTMUSICCOMPOSER iface, IDirectMusicStyle* pStyle, WORD wNumMeasures, WORD wShape, WORD wActivity, BOOL fIntro, BOOL fEnd, IDirectMusicChordMap* pChordMap, IDirectMusicSegment** ppSegment);
|
| extern HRESULT WINAPI IDirectMusicComposerImpl_ComposeTransition (LPDIRECTMUSICCOMPOSER iface, IDirectMusicSegment* pFromSeg, IDirectMusicSegment* pToSeg, MUSIC_TIME mtTime, WORD wCommand, DWORD dwFlags, IDirectMusicChordMap* pChordMap, IDirectMusicSegment** ppTransSeg);
|
| extern HRESULT WINAPI IDirectMusicComposerImpl_AutoTransition (LPDIRECTMUSICCOMPOSER iface, IDirectMusicPerformance* pPerformance, IDirectMusicSegment* pToSeg, WORD wCommand, DWORD dwFlags, IDirectMusicChordMap* pChordMap, IDirectMusicSegment** ppTransSeg, IDirectMusicSegmentState** ppToSegState, IDirectMusicSegmentState** ppTransSegState);
|
| extern HRESULT WINAPI IDirectMusicComposerImpl_ComposeTemplateFromShape (LPDIRECTMUSICCOMPOSER iface, WORD wNumMeasures, WORD wShape, BOOL fIntro, BOOL fEnd, WORD wEndLength, IDirectMusicSegment** ppTemplate);
|
| extern HRESULT WINAPI IDirectMusicComposerImpl_ChangeChordMap (LPDIRECTMUSICCOMPOSER iface, IDirectMusicSegment* pSegment, BOOL fTrackScale, IDirectMusicChordMap* pChordMap); |
| |
| #endif /* __WINE_DMCOMPOS_PRIVATE_H */ |