2003-07-22 00:10:14 +02:00
|
|
|
/* DirectMusicStyle Private Include
|
|
|
|
*
|
2004-01-20 01:21:40 +01:00
|
|
|
* Copyright (C) 2003-2004 Rok Mandeljc
|
2003-07-22 00:10:14 +02:00
|
|
|
*
|
2007-05-30 12:54:07 +02:00
|
|
|
* This program 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.
|
2003-07-22 00:10:14 +02:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-05-30 12:54:07 +02:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2003-07-22 00:10:14 +02:00
|
|
|
*
|
2007-05-30 12:54:07 +02:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-07-22 00:10:14 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_DMSTYLE_PRIVATE_H
|
|
|
|
#define __WINE_DMSTYLE_PRIVATE_H
|
|
|
|
|
2004-02-25 02:30:03 +01:00
|
|
|
#include <stdio.h>
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
2004-02-25 02:30:03 +01:00
|
|
|
#include <string.h>
|
2003-09-06 01:08:26 +02:00
|
|
|
|
2004-08-11 21:43:45 +02:00
|
|
|
#define COBJMACROS
|
|
|
|
|
2003-07-22 00:10:14 +02:00
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "winnt.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "wingdi.h"
|
2004-01-20 01:21:40 +01:00
|
|
|
#include "winuser.h"
|
|
|
|
|
|
|
|
#include "wine/debug.h"
|
|
|
|
#include "wine/list.h"
|
|
|
|
#include "wine/unicode.h"
|
|
|
|
#include "winreg.h"
|
2004-08-22 23:38:46 +02:00
|
|
|
#include "objbase.h"
|
2004-01-20 01:21:40 +01:00
|
|
|
|
2003-07-22 00:10:14 +02:00
|
|
|
#include "dmusici.h"
|
|
|
|
#include "dmusicf.h"
|
2004-01-20 01:21:40 +01:00
|
|
|
#include "dmusics.h"
|
2003-07-22 00:10:14 +02:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Interfaces
|
|
|
|
*/
|
2003-08-23 01:53:27 +02:00
|
|
|
typedef struct IDirectMusicAuditionTrack IDirectMusicAuditionTrack;
|
|
|
|
typedef struct IDirectMusicChordTrack IDirectMusicChordTrack;
|
|
|
|
typedef struct IDirectMusicCommandTrack IDirectMusicCommandTrack;
|
|
|
|
typedef struct IDirectMusicMelodyFormulationTrack IDirectMusicMelodyFormulationTrack;
|
|
|
|
typedef struct IDirectMusicMotifTrack IDirectMusicMotifTrack;
|
|
|
|
typedef struct IDirectMusicMuteTrack IDirectMusicMuteTrack;
|
|
|
|
typedef struct IDirectMusicStyleTrack IDirectMusicStyleTrack;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
2004-01-20 01:21:40 +01:00
|
|
|
* ClassFactory
|
2003-08-23 01:53:27 +02:00
|
|
|
*/
|
2014-01-15 01:08:41 +01:00
|
|
|
extern HRESULT WINAPI create_dmstyle(REFIID lpcGUID, LPVOID* ppobj) DECLSPEC_HIDDEN;
|
|
|
|
extern HRESULT WINAPI create_dmauditiontrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
|
|
|
|
extern HRESULT WINAPI create_dmchordtrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
|
|
|
|
extern HRESULT WINAPI create_dmcommandtrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
|
|
|
|
extern HRESULT WINAPI create_dmmotiftrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
|
|
|
|
extern HRESULT WINAPI create_dmmutetrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
|
|
|
|
extern HRESULT WINAPI create_dmstyletrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
|
2003-08-23 01:53:27 +02:00
|
|
|
|
2004-05-14 23:36:15 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Auxiliary definitions
|
|
|
|
*/
|
|
|
|
typedef struct _DMUS_PRIVATE_STYLE_BAND {
|
|
|
|
struct list entry; /* for listing elements */
|
|
|
|
IDirectMusicBand* pBand;
|
|
|
|
} DMUS_PRIVATE_STYLE_BAND, *LPDMUS_PRIVATE_STYLE_BAND;
|
|
|
|
|
2005-01-05 14:22:57 +01:00
|
|
|
typedef struct _DMUS_PRIVATE_STYLE_PARTREF_ITEM {
|
2004-05-14 23:36:15 +02:00
|
|
|
struct list entry; /* for listing elements */
|
|
|
|
DMUS_OBJECTDESC desc;
|
2005-01-05 14:22:57 +01:00
|
|
|
DMUS_IO_PARTREF part_ref;
|
|
|
|
} DMUS_PRIVATE_STYLE_PARTREF_ITEM, *LPDMUS_PRIVATE_STYLE_PARTREF_ITEM;
|
|
|
|
|
|
|
|
typedef struct _DMUS_PRIVATE_STYLE_MOTIF {
|
|
|
|
struct list entry; /* for listing elements */
|
2006-11-07 00:38:49 +01:00
|
|
|
DWORD dwRhythm;
|
2004-05-14 23:36:15 +02:00
|
|
|
DMUS_IO_PATTERN pattern;
|
2005-01-05 14:22:57 +01:00
|
|
|
DMUS_OBJECTDESC desc;
|
|
|
|
/** optional for motifs */
|
2004-05-14 23:36:15 +02:00
|
|
|
DMUS_IO_MOTIFSETTINGS settings;
|
|
|
|
IDirectMusicBand* pBand;
|
2005-01-05 14:22:57 +01:00
|
|
|
|
|
|
|
struct list Items;
|
2004-05-14 23:36:15 +02:00
|
|
|
} DMUS_PRIVATE_STYLE_MOTIF, *LPDMUS_PRIVATE_STYLE_MOTIF;
|
|
|
|
|
2005-01-05 14:22:57 +01:00
|
|
|
typedef struct _DMUS_PRIVATE_STYLE_ITEM {
|
|
|
|
struct list entry; /* for listing elements */
|
|
|
|
DWORD dwTimeStamp;
|
|
|
|
IDirectMusicStyle8* pObject;
|
|
|
|
} DMUS_PRIVATE_STYLE_ITEM, *LPDMUS_PRIVATE_STYLE_ITEM;
|
|
|
|
|
2003-08-23 01:53:27 +02:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectMusicAuditionTrack implementation structure
|
|
|
|
*/
|
2004-01-20 01:21:40 +01:00
|
|
|
struct IDirectMusicAuditionTrack {
|
2003-08-23 01:53:27 +02:00
|
|
|
/* IUnknown fields */
|
2005-05-30 12:01:08 +02:00
|
|
|
const IUnknownVtbl *UnknownVtbl;
|
|
|
|
const IDirectMusicTrack8Vtbl *TrackVtbl;
|
|
|
|
const IPersistStreamVtbl *PersistStreamVtbl;
|
2005-07-12 19:03:19 +02:00
|
|
|
LONG ref;
|
2003-08-23 01:53:27 +02:00
|
|
|
|
|
|
|
/* IDirectMusicAuditionTrack fields */
|
2004-01-20 01:21:40 +01:00
|
|
|
LPDMUS_OBJECTDESC pDesc;
|
2003-08-23 01:53:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectMusicChordTrack implementation structure
|
|
|
|
*/
|
2004-01-20 01:21:40 +01:00
|
|
|
struct IDirectMusicChordTrack {
|
2003-08-23 01:53:27 +02:00
|
|
|
/* IUnknown fields */
|
2005-05-30 12:01:08 +02:00
|
|
|
const IUnknownVtbl *UnknownVtbl;
|
|
|
|
const IDirectMusicTrack8Vtbl *TrackVtbl;
|
|
|
|
const IPersistStreamVtbl *PersistStreamVtbl;
|
2005-07-12 19:03:19 +02:00
|
|
|
LONG ref;
|
2003-08-23 01:53:27 +02:00
|
|
|
|
|
|
|
/* IDirectMusicChordTrack fields */
|
2004-01-20 01:21:40 +01:00
|
|
|
LPDMUS_OBJECTDESC pDesc;
|
2004-05-12 00:18:43 +02:00
|
|
|
DWORD dwScale;
|
2003-08-23 01:53:27 +02:00
|
|
|
};
|
|
|
|
|
2004-01-20 01:21:40 +01:00
|
|
|
typedef struct _DMUS_PRIVATE_COMMAND {
|
|
|
|
struct list entry; /* for listing elements */
|
|
|
|
DMUS_IO_COMMAND pCommand;
|
|
|
|
IDirectMusicCollection* ppReferenceCollection;
|
|
|
|
} DMUS_PRIVATE_COMMAND, *LPDMUS_PRIVATE_COMMAND;
|
2003-08-23 01:53:27 +02:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectMusicCommandTrack implementation structure
|
|
|
|
*/
|
2004-01-20 01:21:40 +01:00
|
|
|
struct IDirectMusicCommandTrack {
|
2003-08-23 01:53:27 +02:00
|
|
|
/* IUnknown fields */
|
2005-05-30 12:01:08 +02:00
|
|
|
const IUnknownVtbl *UnknownVtbl;
|
|
|
|
const IDirectMusicTrack8Vtbl *TrackVtbl;
|
|
|
|
const IPersistStreamVtbl *PersistStreamVtbl;
|
2005-07-12 19:03:19 +02:00
|
|
|
LONG ref;
|
2003-08-23 01:53:27 +02:00
|
|
|
|
|
|
|
/* IDirectMusicCommandTrack fields */
|
2004-01-20 01:21:40 +01:00
|
|
|
LPDMUS_OBJECTDESC pDesc;
|
2003-08-23 01:53:27 +02:00
|
|
|
/* track data */
|
2004-01-20 01:21:40 +01:00
|
|
|
struct list Commands;
|
2003-08-23 01:53:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectMusicMelodyFormulationTrack implementation structure
|
|
|
|
*/
|
2004-01-20 01:21:40 +01:00
|
|
|
struct IDirectMusicMelodyFormulationTrack {
|
2003-08-23 01:53:27 +02:00
|
|
|
/* IUnknown fields */
|
2005-05-30 12:01:08 +02:00
|
|
|
const IUnknownVtbl *UnknownVtbl;
|
|
|
|
const IDirectMusicTrack8Vtbl *TrackVtbl;
|
|
|
|
const IPersistStreamVtbl *PersistStreamVtbl;
|
2005-07-12 19:03:19 +02:00
|
|
|
LONG ref;
|
2003-08-23 01:53:27 +02:00
|
|
|
|
|
|
|
/* IDirectMusicMelodyFormulationTrack fields */
|
2004-01-20 01:21:40 +01:00
|
|
|
LPDMUS_OBJECTDESC pDesc;
|
2003-08-23 01:53:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/* IUnknown: */
|
2011-05-13 16:59:26 +02:00
|
|
|
extern HRESULT WINAPI IDirectMusicMelodyFormulationTrack_IUnknown_QueryInterface (LPUNKNOWN iface, REFIID riid, LPVOID *ppobj) DECLSPEC_HIDDEN;
|
|
|
|
extern ULONG WINAPI IDirectMusicMelodyFormulationTrack_IUnknown_AddRef (LPUNKNOWN iface) DECLSPEC_HIDDEN;
|
2004-01-20 01:21:40 +01:00
|
|
|
/* IDirectMusicTrack(8): */
|
2011-05-13 16:59:26 +02:00
|
|
|
extern ULONG WINAPI IDirectMusicMelodyFormulationTrack_IDirectMusicTrack_AddRef (LPDIRECTMUSICTRACK8 iface) DECLSPEC_HIDDEN;
|
2003-08-23 01:53:27 +02:00
|
|
|
/* IPersistStream: */
|
2011-05-13 16:59:26 +02:00
|
|
|
extern ULONG WINAPI IDirectMusicMelodyFormulationTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface) DECLSPEC_HIDDEN;
|
2003-08-23 01:53:27 +02:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectMusicMotifTrack implementation structure
|
|
|
|
*/
|
2004-01-20 01:21:40 +01:00
|
|
|
struct IDirectMusicMotifTrack {
|
2003-08-23 01:53:27 +02:00
|
|
|
/* IUnknown fields */
|
2005-05-30 12:01:08 +02:00
|
|
|
const IUnknownVtbl *UnknownVtbl;
|
|
|
|
const IDirectMusicTrack8Vtbl *TrackVtbl;
|
|
|
|
const IPersistStreamVtbl *PersistStreamVtbl;
|
2005-07-12 19:03:19 +02:00
|
|
|
LONG ref;
|
2003-08-23 01:53:27 +02:00
|
|
|
|
|
|
|
/* IDirectMusicMotifTrack fields */
|
2004-01-20 01:21:40 +01:00
|
|
|
LPDMUS_OBJECTDESC pDesc;
|
2003-08-23 01:53:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectMusicMuteTrack implementation structure
|
|
|
|
*/
|
2004-01-20 01:21:40 +01:00
|
|
|
struct IDirectMusicMuteTrack {
|
2003-08-23 01:53:27 +02:00
|
|
|
/* IUnknown fields */
|
2005-05-30 12:01:08 +02:00
|
|
|
const IUnknownVtbl *UnknownVtbl;
|
|
|
|
const IDirectMusicTrack8Vtbl *TrackVtbl;
|
|
|
|
const IPersistStreamVtbl *PersistStreamVtbl;
|
2005-07-12 19:03:19 +02:00
|
|
|
LONG ref;
|
2003-08-23 01:53:27 +02:00
|
|
|
|
|
|
|
/* IDirectMusicMuteTrack fields */
|
2004-01-20 01:21:40 +01:00
|
|
|
LPDMUS_OBJECTDESC pDesc;
|
2003-08-23 01:53:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/*****************************************************************************
|
2004-01-20 01:21:40 +01:00
|
|
|
* IDirectMusicStyleTrack implementation structure
|
2003-08-23 01:53:27 +02:00
|
|
|
*/
|
2004-01-20 01:21:40 +01:00
|
|
|
struct IDirectMusicStyleTrack {
|
2003-08-23 01:53:27 +02:00
|
|
|
/* IUnknown fields */
|
2005-05-30 12:01:08 +02:00
|
|
|
const IUnknownVtbl *UnknownVtbl;
|
|
|
|
const IDirectMusicTrack8Vtbl *TrackVtbl;
|
|
|
|
const IPersistStreamVtbl *PersistStreamVtbl;
|
2005-07-12 19:03:19 +02:00
|
|
|
LONG ref;
|
2003-08-23 01:53:27 +02:00
|
|
|
|
2004-01-20 01:21:40 +01:00
|
|
|
/* IDirectMusicStyleTrack fields */
|
|
|
|
LPDMUS_OBJECTDESC pDesc;
|
2005-01-05 14:22:57 +01:00
|
|
|
|
|
|
|
struct list Items;
|
2003-08-23 01:53:27 +02:00
|
|
|
};
|
|
|
|
|
2005-01-24 20:33:23 +01:00
|
|
|
/**********************************************************************
|
|
|
|
* Dll lifetime tracking declaration for dmstyle.dll
|
|
|
|
*/
|
2011-05-13 16:59:26 +02:00
|
|
|
extern LONG DMSTYLE_refCount DECLSPEC_HIDDEN;
|
2005-06-20 16:18:03 +02:00
|
|
|
static inline void DMSTYLE_LockModule(void) { InterlockedIncrement( &DMSTYLE_refCount ); }
|
|
|
|
static inline void DMSTYLE_UnlockModule(void) { InterlockedDecrement( &DMSTYLE_refCount ); }
|
2003-08-23 01:53:27 +02:00
|
|
|
|
|
|
|
/*****************************************************************************
|
2004-01-20 01:21:40 +01:00
|
|
|
* Misc.
|
2003-08-23 01:53:27 +02:00
|
|
|
*/
|
2004-05-14 06:57:02 +02:00
|
|
|
#include "dmutils.h"
|
2003-08-23 01:53:27 +02:00
|
|
|
|
2003-07-22 00:10:14 +02:00
|
|
|
#endif /* __WINE_DMSTYLE_PRIVATE_H */
|