dmusici.h revision af062818b47340eef15700d2f0211576ba3506ee
/*
* DirectMusic Performance API
*
* Copyright (C) 2003-2004 Rok Mandeljc
*
* 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 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
* Lesser General Public License for more details.
*
* 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
*/
#ifndef __WINE_DMUSIC_PERFORMANCE_H
#define __WINE_DMUSIC_PERFORMANCE_H
#ifndef __WINESRC__
#include <windows.h>
#else
#include <oleauto.h> /* VARIANT */
#endif /* __WINESRC__ */
#define COM_NO_WINDOWS_H
#include <objbase.h>
#include <mmsystem.h>
#include <dmusicc.h>
#include <dmplugin.h>
#include <pshpack8.h>
#ifdef WINE_NO_UNICODE_MACROS
#endif
#ifdef __cplusplus
extern "C" {
#endif
/*****************************************************************************
* Predeclare the interfaces
*/
/* CLSIDs */
DEFINE_GUID(CLSID_DirectMusicAudioPathConfig, 0xee0b9ca0,0xa81e,0x11d3,0x9b,0xd1,0x00,0x80,0xc7,0x15,0x0a,0x74);
DEFINE_GUID(CLSID_DirectMusicBand, 0x79ba9e00,0xb6ee,0x11d1,0x86,0xbe,0x00,0xc0,0x4f,0xbf,0x8f,0xef);
DEFINE_GUID(CLSID_DirectMusicChordMap, 0xd2ac288f,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(CLSID_DirectMusicComposer, 0xd2ac2890,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(CLSID_DirectMusicContainer, 0x9301e380,0x1f22,0x11d3,0x82,0x26,0xd2,0xfa,0x76,0x25,0x5d,0x47);
DEFINE_GUID(CLSID_DirectMusicGraph, 0xd2ac2884,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(CLSID_DirectMusicLoader, 0xd2ac2892,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(CLSID_DirectMusicPatternTrack, 0xd2ac2897,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(CLSID_DirectMusicPerformance, 0xd2ac2881,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(CLSID_DirectMusicScript, 0x810b5013,0xe88d,0x11d2,0x8b,0xc1,0x00,0x60,0x08,0x93,0xb1,0xb6);
DEFINE_GUID(CLSID_DirectMusicSegment, 0xd2ac2882,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(CLSID_DirectMusicSegmentState, 0xd2ac2883,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(CLSID_DirectMusicStyle, 0xd2ac288a,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(CLSID_DirectSoundWave, 0x8a667154,0xf9cb,0x11d2,0xad,0x8a,0x00,0x60,0xb0,0x57,0x5a,0xbc);
/* MS doesn't support this in DX 9.0 and newer... but there's no harm in keeping it around */
DEFINE_GUID(CLSID_DirectMusicSong, 0xaed5f0a5,0xd972,0x483d,0xa3,0x84,0x64,0x9d,0xfe,0xb9,0xc1,0x81);
/* these CLSIDs aren't officially declared in any dmusic header, but are used by wine's regsvr implementations*/
DEFINE_GUID(CLSID_DirectMusicSynthSink, 0xaec17ce3,0xa514,0x11d1,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
DEFINE_GUID(CLSID_DirectMusicSection, 0x3f037241,0x414e,0x11d1,0xa7,0xce,0x00,0xa0,0xc9,0x13,0xf7,0x3c);
DEFINE_GUID(CLSID_DirectMusicAuditionTrack, 0xd2ac2897,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(CLSID_DirectMusicSegTriggerTrack, 0xbae4d665,0x4ea1,0x11d3,0x8b,0xda,0x00,0x60,0x08,0x93,0xb1,0xb6);
DEFINE_GUID(CLSID_DirectMusicAudioPath, 0xee0b9ca0,0xa81e,0x11d3,0x9b,0xd1,0x00,0x80,0xc7,0x15,0x0a,0x74);
DEFINE_GUID(CLSID_DirectMusicTemplate, 0xd30bcc65,0x60e8,0x11d1,0xa7,0xce,0x00,0xa0,0xc9,0x13,0xf7,0x3c);
DEFINE_GUID(CLSID_DirectMusicScriptAutoImpSegment, 0x4062c116,0x0270,0x11d3,0x8b,0xcb,0x00,0x60,0x08,0x93,0xb1,0xb6);
DEFINE_GUID(CLSID_DirectMusicScriptAutoImpPerformance, 0xa861c6e2,0xfcfc,0x11d2,0x8b,0xc9,0x00,0x60,0x08,0x93,0xb1,0xb6);
DEFINE_GUID(CLSID_DirectMusicScriptSourceCodeLoader, 0xc70eb77f,0xefd4,0x4678,0xa2,0x7b,0xbf,0x16,0x48,0xf3,0x0d,0x04);
DEFINE_GUID(CLSID_DirectMusicScriptAutoImpSegmentState, 0xebf2320a,0x2502,0x11d3,0x8b,0xd1,0x00,0x60,0x08,0x93,0xb1,0xb6);
DEFINE_GUID(CLSID_DirectMusicScriptAutoImpAudioPathConfig, 0x1cebde3e,0x6b91,0x484a,0xaf,0x48,0x5e,0x4f,0x4e,0xd6,0xb1,0xe1);
DEFINE_GUID(CLSID_DirectMusicScriptAutoImpAudioPath, 0x2c5f9b72,0x7148,0x4d97,0xbf,0xc9,0x68,0xa0,0xe0,0x76,0xbe,0xbd);
DEFINE_GUID(CLSID_DirectMusicScriptAutoImpSong, 0xa16f1761,0xb6d8,0x42eb,0x8d,0x57,0x4a,0x44,0xfe,0xdd,0x3b,0xd2);
/* IIDs */
DEFINE_GUID(IID_IDirectMusicAudioPath, 0xc87631f5,0x23be,0x4986,0x88,0x36,0x05,0x83,0x2f,0xcc,0x48,0xf9);
DEFINE_GUID(IID_IDirectMusicBand, 0xd2ac28c0,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(IID_IDirectMusicChordMap, 0xd2ac28be,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(IID_IDirectMusicComposer, 0xd2ac28bf,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(IID_IDirectMusicContainer, 0x9301e386,0x1f22,0x11d3,0x82,0x26,0xd2,0xfa,0x76,0x25,0x5d,0x47);
DEFINE_GUID(IID_IDirectMusicGetLoader, 0x68a04844,0xd13d,0x11d1,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
DEFINE_GUID(IID_IDirectMusicGraph, 0x2befc277,0x5497,0x11d2,0xbc,0xcb,0x00,0xa0,0xc9,0x22,0xe6,0xeb);
DEFINE_GUID(IID_IDirectMusicLoader, 0x2ffaaca2,0x5dca,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
DEFINE_GUID(IID_IDirectMusicLoader8, 0x19e7c08c,0x0a44,0x4e6a,0xa1,0x16,0x59,0x5a,0x7c,0xd5,0xde,0x8c);
DEFINE_GUID(IID_IDirectMusicObject, 0xd2ac28b5,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(IID_IDirectMusicPatternTrack, 0x51c22e10,0xb49f,0x46fc,0xbe,0xc2,0xe6,0x28,0x8f,0xb9,0xed,0xe6);
DEFINE_GUID(IID_IDirectMusicPerformance, 0x07d43d03,0x6523,0x11d2,0x87,0x1d,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(IID_IDirectMusicPerformance2, 0x6fc2cae0,0xbc78,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
DEFINE_GUID(IID_IDirectMusicPerformance8, 0x679c4137,0xc62e,0x4147,0xb2,0xb4,0x9d,0x56,0x9a,0xcb,0x25,0x4c);
DEFINE_GUID(IID_IDirectMusicScript, 0x2252373a,0x5814,0x489b,0x82,0x09,0x31,0xfe,0xde,0xba,0xf1,0x37);
DEFINE_GUID(IID_IDirectMusicSegment, 0xf96029a2,0x4282,0x11d2,0x87,0x17,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(IID_IDirectMusicSegment2, 0xd38894d1,0xc052,0x11d2,0x87,0x2f,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(IID_IDirectMusicSegment8, 0xc6784488,0x41a3,0x418f,0xaa,0x15,0xb3,0x50,0x93,0xba,0x42,0xd4);
DEFINE_GUID(IID_IDirectMusicSegmentState, 0xa3afdcc7,0xd3ee,0x11d1,0xbc,0x8d,0x00,0xa0,0xc9,0x22,0xe6,0xeb);
DEFINE_GUID(IID_IDirectMusicSegmentState8, 0xa50e4730,0x0ae4,0x48a7,0x98,0x39,0xbc,0x04,0xbf,0xe0,0x77,0x72);
DEFINE_GUID(IID_IDirectMusicStyle, 0xd2ac28bd,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(IID_IDirectMusicStyle8, 0xfd24ad8a,0xa260,0x453d,0xbf,0x50,0x6f,0x93,0x84,0xf7,0x09,0x85);
/* IIDs of unchanged interfaces */
/* typedef definitions */
typedef struct IDirectMusicBand *LPDIRECTMUSICBAND;
typedef struct IDirectMusicObject *LPDIRECTMUSICOBJECT;
typedef struct IDirectMusicLoader *LPDIRECTMUSICLOADER;
typedef struct IDirectMusicLoader8 *LPDIRECTMUSICLOADER8;
typedef struct IDirectMusicGetLoader *LPDIRECTMUSICGETLOADER;
typedef struct IDirectMusicAudioPath *LPDIRECTMUSICAUDIOPATH;
typedef struct IDirectMusicStyle *LPDIRECTMUSICSTYLE;
typedef struct IDirectMusicStyle8 *LPDIRECTMUSICSTYLE8;
typedef struct IDirectMusicChordMap *LPDIRECTMUSICCHORDMAP;
typedef struct IDirectMusicComposer *LPDIRECTMUSICCOMPOSER;
typedef struct IDirectMusicPatternTrack *LPDIRECTMUSICPATTERNTRACK;
typedef struct IDirectMusicScript *LPDIRECTMUSICSCRIPT;
typedef struct IDirectMusicContainer *LPDIRECTMUSICCONTAINER;
/* RPC declarations */
typedef struct IDirectMusicBand *LPDMUS_BAND;
typedef struct IDirectMusicLoader *LPDMUS_LOADER;
typedef struct IDirectMusicObject *LPDMUS_OBJECT;
/* GUIDs - all types loader */
DEFINE_GUID(GUID_DirectMusicAllTypes, 0xd2ac2893,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
/* GUIDs - notification */
DEFINE_GUID(GUID_NOTIFICATION_CHORD, 0xd2ac289b,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(GUID_NOTIFICATION_COMMAND, 0xd2ac289c,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(GUID_NOTIFICATION_MEASUREANDBEAT, 0xd2ac289a,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(GUID_NOTIFICATION_PERFORMANCE, 0x81f75bc5,0x4e5d,0x11d2,0xbc,0xc7,0x00,0xa0,0xc9,0x22,0xe6,0xeb);
DEFINE_GUID(GUID_NOTIFICATION_RECOMPOSE, 0xd348372b,0x945b,0x45ae,0xa5,0x22,0x45,0x0f,0x12,0x5b,0x84,0xa5);
DEFINE_GUID(GUID_NOTIFICATION_SEGMENT, 0xd2ac2899,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
/* GUIDs - param types */
DEFINE_GUID(GUID_CommandParamNext, 0x472afe7a,0x281b,0x11d3,0x81,0x7d,0x00,0xc0,0x4f,0xa3,0x6e,0x58);
DEFINE_GUID(GUID_IDirectMusicBand, 0xd2ac28ac,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(GUID_IDirectMusicChordMap, 0xd2ac28ad,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(GUID_IDirectMusicStyle, 0xd2ac28a1,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(GUID_Valid_Start_Time, 0x7f6b1760,0x1fdb,0x11d3,0x82,0x26,0x44,0x45,0x53,0x54,0x00,0x00);
/* GUIDs - param setting */
DEFINE_GUID(GUID_Clear_All_Bands, 0xd2ac28ab,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(GUID_ConnectToDLSCollection, 0x1db1ae6b,0xe92e,0x11d1,0xa8,0xc5,0x00,0xc0,0x4f,0xa3,0x72,0x6e);
DEFINE_GUID(GUID_Disable_Auto_Download, 0xd2ac28aa,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(GUID_DownloadToAudioPath, 0x9f2c0341,0xc5c4,0x11d3,0x9b,0xd1,0x44,0x45,0x53,0x54,0x00,0x00);
DEFINE_GUID(GUID_Enable_Auto_Download, 0xd2ac28a9,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(GUID_StandardMIDIFile, 0x06621075,0xe92e,0x11d1,0xa8,0xc5,0x00,0xc0,0x4f,0xa3,0x72,0x6e);
DEFINE_GUID(GUID_UnloadFromAudioPath, 0x9f2c0342,0xc5c4,0x11d3,0x9b,0xd1,0x44,0x45,0x53,0x54,0x00,0x00);
/* GUIDs - global data */
DEFINE_GUID(GUID_PerfMasterTempo, 0xd2ac28b0,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(GUID_PerfMasterVolume, 0xd2ac28b1,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(GUID_PerfMasterGrooveLevel, 0xd2ac28b2,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
DEFINE_GUID(GUID_PerfAutoDownload, 0xfb09565b,0x3631,0x11d2,0xbc,0xb8,0x00,0xa0,0xc9,0x22,0xe6,0xeb);
/* GUID - default DLS collection */
DEFINE_GUID(GUID_DefaultGMCollection, 0xf17e8673,0xc3b4,0x11d1,0x87,0x0b,0x00,0x60,0x08,0x93,0xb1,0xbd);
/* GUID - default synthesizer */
/* GUIDs - define default buffer configuration */
DEFINE_GUID(GUID_Buffer_EnvReverb, 0x186cc542,0xdb29,0x11d3,0x9b,0xd1,0x00,0x80,0xc7,0x15,0x0a,0x74);
/*****************************************************************************
* Typedef definitions
*/
/*
* typedef __int64 REFERENCE_TIME, *LPREFERENCE_TIME;
* typedef long MUSIC_TIME, *LPMUSIC_TIME;
*/
/*****************************************************************************
* Flags
*/
#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 0x01
#define DMUS_AUDIOF_ENVIRON 0x02
#define DMUS_AUDIOF_EAX 0x04
#define DMUS_AUDIOF_DMOS 0x08
#define DMUS_AUDIOF_STREAMING 0x10
#define DMUS_AUDIOF_BUFFERS 0x20
#define DMUS_AUDIOF_ALL 0x3F
#define DMUS_AUDIOPARAMS_FEATURES 0x1
#define DMUS_AUDIOPARAMS_VOICES 0x2
#define DMUS_AUDIOPARAMS_SAMPLERATE 0x4
#define DMUS_AUDIOPARAMS_DEFAULTSYNTH 0x8
#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_MASTERTEMPO_MAX 100.0f
#define DMUS_MASTERTEMPO_MIN 0.01f
#define DMUS_MAX_NAME 0x40
#define DMUS_MAX_CATEGORY 0x40
#define DMUS_MAX_FILENAME MAX_PATH
#define DMUS_MAXSUBCHORD 0x8
#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_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_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_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_PLAYMODE_FIXED 0x0
#define DMUS_PPQ 768
#define DMUS_SEG_REPEAT_INFINITE 0xFFFFFFFF
#define DMUS_SEG_ALLTRACKS 0x80000000
#define DMUS_SEG_ANYTRACK 0x80000000
#define DMUS_TEMPO_MAX 1000
#define DMUS_TEMPO_MIN 1
#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_WAVEF_OFF 0x01
#define DMUS_WAVEF_STREAMING 0x02
#define DMUS_WAVEF_NOINVALIDATE 0x04
#define DMUS_WAVEF_NOPREROLL 0x08
#define DMUS_WAVEF_IGNORELOOPS 0x20
#define DMUSB_LOADED 0x1
#define DMUSB_DEFAULT 0x2
#define MT_MIN 0x80000000
#define MT_MAX 0x7FFFFFFF
/*****************************************************************************
* Definitions
*/
#define DMUS_PMSG_PART \
MUSIC_TIME mtTime; \
DWORD dwPChannel; \
struct IDirectMusicGraph* pGraph; \
/*****************************************************************************
* Enumerations
*/
/* typedef definitions */
typedef enum enumDMUS_STYLET_TYPES DMUS_STYLET_TYPES;
typedef enum enumDMUS_COMMANDT_TYPES DMUS_COMMANDT_TYPES;
typedef enum enumDMUS_SHAPET_TYPES DMUS_SHAPET_TYPES;
typedef enum enumDMUS_COMPOSEF_FLAGS DMUS_COMPOSEF_FLAGS;
typedef enum enumDMUS_PMSGF_FLAGS DMUS_PMSGF_FLAGS;
typedef enum enumDMUS_PMSGT_TYPES DMUS_PMSGT_TYPES;
typedef enum enumDMUS_SEGF_FLAGS DMUS_SEGF_FLAGS;
typedef enum enumDMUS_TIME_RESOLVE_FLAGS DMUS_TIME_RESOLVE_FLAGS;
typedef enum enumDMUS_CHORDKEYF_FLAGS DMUS_CHORDKEYF_FLAGS;
typedef enum enumDMUS_NOTEF_FLAGS DMUS_NOTEF_FLAGS;
typedef enum enumDMUS_PLAYMODE_FLAGS DMUS_PLAYMODE_FLAGS;
typedef enum enumDMUS_CURVE_FLAGS DMUS_CURVE_FLAGS;
/* actual enumerations */
enum enumDMUS_STYLET_TYPES {
DMUS_STYLET_PATTERN = 0x0,
DMUS_STYLET_MOTIF = 0x1,
};
enum enumDMUS_COMMANDT_TYPES {
DMUS_COMMANDT_GROOVE = 0x0,
DMUS_COMMANDT_FILL = 0x1,
DMUS_COMMANDT_INTRO = 0x2,
DMUS_COMMANDT_BREAK = 0x3,
DMUS_COMMANDT_END = 0x4,
};
enum enumDMUS_SHAPET_TYPES {
DMUS_SHAPET_FALLING = 0x0,
DMUS_SHAPET_LEVEL = 0x1,
DMUS_SHAPET_LOOPABLE = 0x2,
DMUS_SHAPET_LOUD = 0x3,
DMUS_SHAPET_QUIET = 0x4,
DMUS_SHAPET_PEAKING = 0x5,
DMUS_SHAPET_RANDOM = 0x6,
DMUS_SHAPET_RISING = 0x7,
DMUS_SHAPET_SONG = 0x8
};
enum enumDMUS_COMPOSEF_FLAGS {
DMUS_COMPOSEF_NONE = 0x000000,
DMUS_COMPOSEF_ALIGN = 0x000001,
DMUS_COMPOSEF_OVERLAP = 0x000002,
DMUS_COMPOSEF_IMMEDIATE = 0x000004,
DMUS_COMPOSEF_GRID = 0x000008,
DMUS_COMPOSEF_BEAT = 0x000010,
DMUS_COMPOSEF_MEASURE = 0x000020,
DMUS_COMPOSEF_AFTERPREPARETIME = 0x000040,
DMUS_COMPOSEF_VALID_START_BEAT = 0x000080,
DMUS_COMPOSEF_VALID_START_GRID = 0x000100,
DMUS_COMPOSEF_VALID_START_TICK = 0x000200,
DMUS_COMPOSEF_SEGMENTEND = 0x000400,
DMUS_COMPOSEF_MARKER = 0x000800,
DMUS_COMPOSEF_MODULATE = 0x001000,
DMUS_COMPOSEF_LONG = 0x002000,
DMUS_COMPOSEF_ENTIRE_TRANSITION = 0x004000,
DMUS_COMPOSEF_1BAR_TRANSITION = 0x008000,
DMUS_COMPOSEF_ENTIRE_ADDITION = 0x010000,
DMUS_COMPOSEF_1BAR_ADDITION = 0x020000,
DMUS_COMPOSEF_VALID_START_MEASURE = 0x040000,
DMUS_COMPOSEF_DEFAULT = 0x080000,
DMUS_COMPOSEF_NOINVALIDATE = 0x100000,
DMUS_COMPOSEF_USE_AUDIOPATH = 0x200000,
DMUS_COMPOSEF_INVALIDATE_PRI = 0x400000
};
enum enumDMUS_PMSGF_FLAGS {
DMUS_PMSGF_REFTIME = 1,
DMUS_PMSGF_MUSICTIME = 2,
DMUS_PMSGF_TOOL_ATTIME = 0x10,
DMUS_PMSGF_TOOL_FLUSH = 0x20,
DMUS_PMSGF_LOCKTOREFTIME = 0x40,
DMUS_PMSGF_DX8 = 0x80
};
enum enumDMUS_PMSGT_TYPES {
DMUS_PMSGT_MIDI = 0x00,
DMUS_PMSGT_NOTE = 0x01,
DMUS_PMSGT_SYSEX = 0x02,
DMUS_PMSGT_NOTIFICATION = 0x03,
DMUS_PMSGT_TEMPO = 0x04,
DMUS_PMSGT_CURVE = 0x05,
DMUS_PMSGT_TIMESIG = 0x06,
DMUS_PMSGT_PATCH = 0x07,
DMUS_PMSGT_TRANSPOSE = 0x08,
DMUS_PMSGT_CHANNEL_PRIORITY = 0x09,
DMUS_PMSGT_STOP = 0x0A,
DMUS_PMSGT_DIRTY = 0x0B,
DMUS_PMSGT_WAVE = 0x0C,
DMUS_PMSGT_LYRIC = 0x0D,
DMUS_PMSGT_SCRIPTLYRIC = 0x0E,
DMUS_PMSGT_USER = 0xFF
};
enum enumDMUS_SEGF_FLAGS {
DMUS_SEGF_REFTIME = 0x000040,
DMUS_SEGF_SECONDARY = 0x000080,
DMUS_SEGF_QUEUE = 0x000100,
DMUS_SEGF_CONTROL = 0x000200,
DMUS_SEGF_AFTERPREPARETIME = 0x000400,
DMUS_SEGF_GRID = 0x000800,
DMUS_SEGF_BEAT = 0x001000,
DMUS_SEGF_MEASURE = 0x002000,
DMUS_SEGF_DEFAULT = 0x004000,
DMUS_SEGF_NOINVALIDATE = 0x008000,
DMUS_SEGF_ALIGN = 0x0010000,
DMUS_SEGF_VALID_START_BEAT = 0x0020000,
DMUS_SEGF_VALID_START_GRID = 0x0040000,
DMUS_SEGF_VALID_START_TICK = 0x0080000,
DMUS_SEGF_AUTOTRANSITION = 0x0100000,
DMUS_SEGF_AFTERQUEUETIME = 0x0200000,
DMUS_SEGF_AFTERLATENCYTIME = 0x0400000,
DMUS_SEGF_SEGMENTEND = 0x0800000,
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
};
enum enumDMUS_TIME_RESOLVE_FLAGS {
};
enum enumDMUS_CHORDKEYF_FLAGS {
DMUS_CHORDKEYF_SILENT = 0x1,
};
enum enumDMUS_NOTEF_FLAGS {
DMUS_NOTEF_NOTEON = 0x01,
/* DX8 */
DMUS_NOTEF_NOINVALIDATE = 0x02,
DMUS_NOTEF_NOINVALIDATE_INSCALE = 0x04,
DMUS_NOTEF_NOINVALIDATE_INCHORD = 0x08,
DMUS_NOTEF_REGENERATE = 0x10,
};
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,
};
enum enumDMUS_CURVE_FLAGS {
DMUS_CURVE_RESET = 0x1,
};
enum {
DMUS_CURVES_LINEAR = 0x0,
DMUS_CURVES_INSTANT = 0x1,
DMUS_CURVES_EXP = 0x2,
DMUS_CURVES_LOG = 0x3,
DMUS_CURVES_SINE = 0x4
};
/*****************************************************************************
* Structures
*/
/* typedef definitions */
/*typedef struct _DMUS_PMSG DMUS_PMSG, *LPDMUS_PMSG; */
typedef struct _DMUS_CHANNEL_PRIORITY_PMSG DMUS_CHANNEL_PRIORITY_PMSG, *LPDMUS_CHANNEL_PRIORITY_PMSG;
/* actual structures */
struct _DMUS_PMSG {
};
struct _DMUS_AUDIOPARAMS {
};
struct _DMUS_SUBCHORD {
};
struct _DMUS_CHORD_KEY {
};
struct _DMUS_NOTE_PMSG {
short nOffset;
char cTranspose;
};
struct _DMUS_MIDI_PMSG {
};
struct _DMUS_PATCH_PMSG {
};
struct _DMUS_TRANSPOSE_PMSG {
short nTranspose;
/* DX8 */
};
struct _DMUS_CHANNEL_PRIORITY_PMSG {
};
struct _DMUS_TEMPO_PMSG {
double dblTempo;
};
struct _DMUS_SYSEX_PMSG {
};
struct _DMUS_CURVE_PMSG {
short nStartValue;
short nEndValue;
short nResetValue;
short nOffset;
/* DX8 */
};
struct _DMUS_TIMESIG_PMSG {
};
struct _DMUS_NOTIFICATION_PMSG {
};
struct _DMUS_WAVE_PMSG {
long lOffset;
long lVolume;
long lPitch;
};
struct _DMUS_LYRIC_PMSG {
};
struct _DMUS_VERSION {
};
struct _DMUS_TIMESIGNATURE {
};
struct _DMUS_VALID_START_PARAM {
};
struct _DMUS_PLAY_MARKER_PARAM {
};
struct _DMUS_OBJECTDESC {
};
struct _DMUS_SCRIPT_ERRORINFO {
};
struct _DMUS_COMMAND_PARAM {
};
struct _DMUS_COMMAND_PARAM_2 {
};
struct _DMUS_BAND_PARAM {
struct IDirectMusicBand *pBand;
};
struct _DMUS_VARIATIONS_PARAM {
};
/*****************************************************************************
* IDirectMusicBand interface
*/
#define INTERFACE IDirectMusicBand
{
/*** IUnknown methods ***/
/*** IDirectMusicBand methods ***/
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicBand methods ***/
#endif
/*****************************************************************************
* IDirectMusicObject interface
*/
#define INTERFACE IDirectMusicObject
{
/*** IUnknown methods ***/
/*** IDirectMusicObject methods ***/
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicObject methods ***/
#endif
/*****************************************************************************
* IDirectMusicLoader interface
*/
#define INTERFACE IDirectMusicLoader
{
/*** IUnknown methods ***/
/*** IDirectMusicLoader methods ***/
STDMETHOD(ScanDirectory)(THIS_ REFGUID rguidClass, WCHAR *pwzFileExtension, WCHAR *pwzScanFileName) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicLoader methods ***/
#endif
/*****************************************************************************
* IDirectMusicLoader8 interface
*/
#define INTERFACE IDirectMusicLoader8
{
/*** IUnknown methods ***/
/*** IDirectMusicLoader methods ***/
STDMETHOD(ScanDirectory)(THIS_ REFGUID rguidClass, WCHAR *pwzFileExtension, WCHAR *pwzScanFileName) PURE;
/*** IDirectMusicLoader8 methods ***/
STDMETHOD(LoadObjectFromFile)(THIS_ REFGUID rguidClassID, REFIID iidInterfaceID, WCHAR *pwzFilePath, void **ppObject) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicLoader methods ***/
/*** IDirectMusicLoader8 methods ***/
#define IDirectMusicLoader8_LoadObjectFromFile(p,a,b,c,d) (p)->lpVtbl->LoadObjectFromFile(p,a,b,c,d)
#endif
/*****************************************************************************
* IDirectMusicGetLoader interface
*/
#define INTERFACE IDirectMusicGetLoader
{
/*** IUnknown methods ***/
/*** IDirectMusicGetLoader methods ***/
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicGetLoader methods ***/
#endif
/*****************************************************************************
* IDirectMusicSegment interface
*/
#define INTERFACE IDirectMusicSegment
{
/*** IUnknown methods ***/
/*** IDirectMusicSegment methods ***/
STDMETHOD(GetTrack)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, IDirectMusicTrack **ppTrack) PURE;
STDMETHOD(InitPlay)(THIS_ struct IDirectMusicSegmentState **ppSegState, struct IDirectMusicPerformance *pPerformance, DWORD dwFlags) PURE;
STDMETHOD(GetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE;
STDMETHOD(SetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, void *pParam) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicSegment methods ***/
#endif
/*****************************************************************************
* IDirectMusicSegment8 interface
*/
#define INTERFACE IDirectMusicSegment8
{
/*** IUnknown methods ***/
/*** IDirectMusicSegment methods ***/
STDMETHOD(GetTrack)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, IDirectMusicTrack **ppTrack) PURE;
STDMETHOD(InitPlay)(THIS_ struct IDirectMusicSegmentState **ppSegState, struct IDirectMusicPerformance *pPerformance, DWORD dwFlags) PURE;
STDMETHOD(GetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE;
STDMETHOD(SetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, void *pParam) PURE;
/*** IDirectMusicSegment8 methods ***/
STDMETHOD(SetTrackConfig)(THIS_ REFGUID rguidTrackClassID, DWORD dwGroupBits, DWORD dwIndex, DWORD dwFlagsOn, DWORD dwFlagsOff) PURE;
STDMETHOD(Compose)(THIS_ MUSIC_TIME mtTime, IDirectMusicSegment *pFromSegment, IDirectMusicSegment *pToSegment, IDirectMusicSegment **ppComposedSegment) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicSegment methods ***/
/*** IDirectMusicSegment8 methods ***/
#endif
/*****************************************************************************
* IDirectMusicSegmentState interface
*/
#define INTERFACE IDirectMusicSegmentState
{
/*** IUnknown methods ***/
/*** IDirectMusicSegmentState methods ***/
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicSegmentState methods ***/
#endif
/*****************************************************************************
* IDirectMusicSegmentState8 interface
*/
#define INTERFACE IDirectMusicSegmentState8
{
/*** IUnknown methods ***/
/*** IDirectMusicSegmentState methods ***/
/*** IDirectMusicSegmentState8 methods ***/
STDMETHOD(SetTrackConfig)(THIS_ REFGUID rguidTrackClassID, DWORD dwGroupBits, DWORD dwIndex, DWORD dwFlagsOn, DWORD dwFlagsOff) PURE;
STDMETHOD(GetObjectInPath)(THIS_ DWORD dwPChannel, DWORD dwStage, DWORD dwBuffer, REFGUID guidObject, DWORD dwIndex, REFGUID iidInterface, void **ppObject) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicSegmentState methods ***/
/*** IDirectMusicSegmentState8 methods ***/
#define IDirectMusicSegmentState8_SetTrackConfig(p,a,b,c,d,e) (p)->lpVtbl->SetTrackConfig(p,a,b,c,d,e)
#define IDirectMusicSegmentState8_GetObjectInPath(p,a,b,c,d,e,f,g) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d,e,f,g)
#endif
/*****************************************************************************
* IDirectMusicAudioPath interface
*/
#define INTERFACE IDirectMusicAudioPath
{
/*** IUnknown methods ***/
/*** IDirectMusicAudioPath methods ***/
STDMETHOD(GetObjectInPath)(THIS_ DWORD dwPChannel, DWORD dwStage, DWORD dwBuffer, REFGUID guidObject, WORD dwIndex, REFGUID iidInterface, void **ppObject) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicAudioPath methods ***/
#define IDirectMusicAudioPath_GetObjectInPath(p,a,b,c,d,e,f,g) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d,e,f,g)
#endif
/*****************************************************************************
* IDirectMusicPerformance interface
*/
#define INTERFACE IDirectMusicPerformance
{
/*** IUnknown methods ***/
/*** IDirectMusicPerformance methods ***/
STDMETHOD(PlaySegment)(THIS_ IDirectMusicSegment *pSegment, DWORD dwFlags, __int64 i64StartTime, IDirectMusicSegmentState **ppSegmentState) PURE;
STDMETHOD(Stop)(THIS_ IDirectMusicSegment *pSegment, IDirectMusicSegmentState *pSegmentState, MUSIC_TIME mtTime, DWORD dwFlags) PURE;
STDMETHOD(GetSegmentState)(THIS_ IDirectMusicSegmentState **ppSegmentState, MUSIC_TIME mtTime) PURE;
STDMETHOD(IsPlaying)(THIS_ IDirectMusicSegment *pSegment, IDirectMusicSegmentState *pSegState) PURE;
STDMETHOD(AssignPChannelBlock)(THIS_ DWORD dwBlockNum, IDirectMusicPort *pPort, DWORD dwGroup) PURE;
STDMETHOD(AssignPChannel)(THIS_ DWORD dwPChannel, IDirectMusicPort *pPort, DWORD dwGroup, DWORD dwMChannel) PURE;
STDMETHOD(PChannelInfo)(THIS_ DWORD dwPChannel, IDirectMusicPort **ppPort, DWORD *pdwGroup, DWORD *pdwMChannel) PURE;
STDMETHOD(DownloadInstrument)(THIS_ IDirectMusicInstrument *pInst, DWORD dwPChannel, IDirectMusicDownloadedInstrument **ppDownInst, DMUS_NOTERANGE *pNoteRanges, DWORD dwNumNoteRanges, IDirectMusicPort **ppPort, DWORD *pdwGroup, DWORD *pdwMChannel) PURE;
STDMETHOD(GetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE;
STDMETHOD(SetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, void *pParam) PURE;
STDMETHOD(GetResolvedTime)(THIS_ REFERENCE_TIME rtTime, REFERENCE_TIME *prtResolved, DWORD dwTimeResolveFlags) PURE;
STDMETHOD(MIDIToMusic)(THIS_ BYTE bMIDIValue, DMUS_CHORD_KEY *pChord, BYTE bPlayMode, BYTE bChordLevel, WORD *pwMusicValue) PURE;
STDMETHOD(MusicToMIDI)(THIS_ WORD wMusicValue, DMUS_CHORD_KEY *pChord, BYTE bPlayMode, BYTE bChordLevel, BYTE *pbMIDIValue) PURE;
STDMETHOD(TimeToRhythm)(THIS_ MUSIC_TIME mtTime, DMUS_TIMESIGNATURE *pTimeSig, WORD *pwMeasure, BYTE *pbBeat, BYTE *pbGrid, short *pnOffset) PURE;
STDMETHOD(RhythmToTime)(THIS_ WORD wMeasure, BYTE bBeat, BYTE bGrid, short nOffset, DMUS_TIMESIGNATURE *pTimeSig, MUSIC_TIME *pmtTime) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicPerformance methods ***/
#define IDirectMusicPerformance_MusicToReferenceTime(p,a,b) (p)->lpVtbl->MusicToReferenceTime(p,a,b)
#define IDirectMusicPerformance_ReferenceToMusicTime(p,a,b) (p)->lpVtbl->ReferenceToMusicTime(p,a,b)
#define IDirectMusicPerformance_SetNotificationHandle(p,a,b) (p)->lpVtbl->SetNotificationHandle(p,a,b)
#define IDirectMusicPerformance_RemoveNotificationType(p,a) (p)->lpVtbl->RemoveNotificationType(p,a)
#define IDirectMusicPerformance_AssignPChannelBlock(p,a,b,c) (p)->lpVtbl->AssignPChannelBlock(p,a,b,c)
#define IDirectMusicPerformance_DownloadInstrument(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DownloadInstrument(p,a,b,c,d,e,f,g,h)
#define IDirectMusicPerformance_TimeToRhythm(p,a,b,c,d,e,f) (p)->lpVtbl->TimeToRhythm(p,a,b,c,d,e,f)
#define IDirectMusicPerformance_RhythmToTime(p,a,b,c,d,e,f) (p)->lpVtbl->RhythmToTime(p,a,b,c,d,e,f)
#endif
/*****************************************************************************
* IDirectMusicPerformance8 interface
*/
#define INTERFACE IDirectMusicPerformance8
{
/*** IUnknown methods ***/
/*** IDirectMusicPerformance methods ***/
STDMETHOD(PlaySegment)(THIS_ IDirectMusicSegment *pSegment, DWORD dwFlags, __int64 i64StartTime, IDirectMusicSegmentState **ppSegmentState) PURE;
STDMETHOD(Stop)(THIS_ IDirectMusicSegment *pSegment, IDirectMusicSegmentState *pSegmentState, MUSIC_TIME mtTime, DWORD dwFlags) PURE;
STDMETHOD(GetSegmentState)(THIS_ IDirectMusicSegmentState **ppSegmentState, MUSIC_TIME mtTime) PURE;
STDMETHOD(IsPlaying)(THIS_ IDirectMusicSegment *pSegment, IDirectMusicSegmentState *pSegState) PURE;
STDMETHOD(AssignPChannelBlock)(THIS_ DWORD dwBlockNum, IDirectMusicPort *pPort, DWORD dwGroup) PURE;
STDMETHOD(AssignPChannel)(THIS_ DWORD dwPChannel, IDirectMusicPort *pPort, DWORD dwGroup, DWORD dwMChannel) PURE;
STDMETHOD(PChannelInfo)(THIS_ DWORD dwPChannel, IDirectMusicPort **ppPort, DWORD *pdwGroup, DWORD *pdwMChannel) PURE;
STDMETHOD(DownloadInstrument)(THIS_ IDirectMusicInstrument *pInst, DWORD dwPChannel, IDirectMusicDownloadedInstrument **ppDownInst, DMUS_NOTERANGE *pNoteRanges, DWORD dwNumNoteRanges, IDirectMusicPort **ppPort, DWORD *pdwGroup, DWORD *pdwMChannel) PURE;
STDMETHOD(GetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE;
STDMETHOD(SetParam)(THIS_ REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, void *pParam) PURE;
STDMETHOD(GetResolvedTime)(THIS_ REFERENCE_TIME rtTime, REFERENCE_TIME *prtResolved, DWORD dwTimeResolveFlags) PURE;
STDMETHOD(MIDIToMusic)(THIS_ BYTE bMIDIValue, DMUS_CHORD_KEY *pChord, BYTE bPlayMode, BYTE bChordLevel, WORD *pwMusicValue) PURE;
STDMETHOD(MusicToMIDI)(THIS_ WORD wMusicValue, DMUS_CHORD_KEY *pChord, BYTE bPlayMode, BYTE bChordLevel, BYTE *pbMIDIValue) PURE;
STDMETHOD(TimeToRhythm)(THIS_ MUSIC_TIME mtTime, DMUS_TIMESIGNATURE *pTimeSig, WORD *pwMeasure, BYTE *pbBeat, BYTE *pbGrid, short *pnOffset) PURE;
STDMETHOD(RhythmToTime)(THIS_ WORD wMeasure, BYTE bBeat, BYTE bGrid, short nOffset, DMUS_TIMESIGNATURE *pTimeSig, MUSIC_TIME *pmtTime) PURE;
/*** IDirectMusicPerformance8 methods ***/
STDMETHOD(InitAudio)(THIS_ IDirectMusic **ppDirectMusic, IDirectSound **ppDirectSound, HWND hWnd, DWORD dwDefaultPathType, DWORD dwPChannelCount, DWORD dwFlags, DMUS_AUDIOPARAMS *pParams) PURE;
STDMETHOD(PlaySegmentEx)(THIS_ IUnknown *pSource, WCHAR *pwzSegmentName, IUnknown *pTransition, DWORD dwFlags, __int64 i64StartTime, IDirectMusicSegmentState **ppSegmentState, IUnknown *pFrom, IUnknown *pAudioPath) PURE;
STDMETHOD(CreateAudioPath)(THIS_ IUnknown *pSourceConfig, BOOL fActivate, IDirectMusicAudioPath **ppNewPath) PURE;
STDMETHOD(CreateStandardAudioPath)(THIS_ DWORD dwType, DWORD dwPChannelCount, BOOL fActivate, IDirectMusicAudioPath **ppNewPath) PURE;
STDMETHOD(GetParamEx)(THIS_ REFGUID rguidType, DWORD dwTrackID, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicPerformance methods ***/
#define IDirectMusicPerformance8_MusicToReferenceTime(p,a,b) (p)->lpVtbl->MusicToReferenceTime(p,a,b)
#define IDirectMusicPerformance8_ReferenceToMusicTime(p,a,b) (p)->lpVtbl->ReferenceToMusicTime(p,a,b)
#define IDirectMusicPerformance8_SetNotificationHandle(p,a,b) (p)->lpVtbl->SetNotificationHandle(p,a,b)
#define IDirectMusicPerformance8_RemoveNotificationType(p,a) (p)->lpVtbl->RemoveNotificationType(p,a)
#define IDirectMusicPerformance8_AssignPChannelBlock(p,a,b,c) (p)->lpVtbl->AssignPChannelBlock(p,a,b,c)
#define IDirectMusicPerformance8_DownloadInstrument(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DownloadInstrument(p,a,b,c,d,e,f,g,h)
#define IDirectMusicPerformance8_TimeToRhythm(p,a,b,c,d,e,f) (p)->lpVtbl->TimeToRhythm(p,a,b,c,d,e,f)
#define IDirectMusicPerformance8_RhythmToTime(p,a,b,c,d,e,f) (p)->lpVtbl->RhythmToTime(p,a,b,c,d,e,f)
/* IDirectMusicPerformance8 methods*/
#define IDirectMusicPerformance8_PlaySegmentEx(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->PlaySegmentEx(p,a,b,c,d,e,f,g,h)
#define IDirectMusicPerformance8_CreateStandardAudioPath(p,a,b,c,d) (p)->lpVtbl->CreateStandardAudioPath(p,a,b,c,d)
#define IDirectMusicPerformance8_GetParamEx(p,a,b,c,d,e,f,g) (p)->lpVtbl->GetParamEx(p,a,b,c,d,e,f,g)
#endif
/*****************************************************************************
* IDirectMusicGraph interface
*/
#define INTERFACE IDirectMusicGraph
{
/*** IUnknown methods ***/
/*** IDirectMusicGraph methods ***/
STDMETHOD(InsertTool)(THIS_ IDirectMusicTool *pTool, DWORD *pdwPChannels, DWORD cPChannels, LONG lIndex) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicGraph methods ***/
#endif
/*****************************************************************************
* IDirectMusicStyle interface
*/
#define INTERFACE IDirectMusicStyle
{
/*** IUnknown methods ***/
/*** IDirectMusicStyle methods ***/
STDMETHOD(GetEmbellishmentLength)(THIS_ DWORD dwType, DWORD dwLevel, DWORD *pdwMin, DWORD *pdwMax) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicStyle methods ***/
#define IDirectMusicStyle_GetEmbellishmentLength(p,a,b,c,d) (p)->lpVtbl->GetEmbellishmentLength(p,a,b,c,d)
#endif
/*****************************************************************************
* IDirectMusicStyle8 interface
*/
#define INTERFACE IDirectMusicStyle8
{
/*** IUnknown methods ***/
/*** IDirectMusicStyle methods ***/
STDMETHOD(GetEmbellishmentLength)(THIS_ DWORD dwType, DWORD dwLevel, DWORD *pdwMin, DWORD *pdwMax) PURE;
/*** IDirectMusicStyle8 methods ***/
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicStyle methods ***/
#define IDirectMusicStyle8_GetEmbellishmentLength(p,a,b,c,d) (p)->lpVtbl->GetEmbellishmentLength(p,a,b,c,d)
/*** IDirectMusicStyle8 methods ***/
#endif
/*****************************************************************************
* IDirectMusicChordMap interface
*/
#define INTERFACE IDirectMusicChordMap
{
/*** IUnknown methods ***/
/*** IDirectMusicChordMap methods ***/
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicChordMap methods ***/
#endif
/*****************************************************************************
* IDirectMusicComposer interface
*/
#define INTERFACE IDirectMusicComposer
{
/*** IUnknown methods ***/
/*** IDirectMusicComposer methods ***/
STDMETHOD(ComposeSegmentFromTemplate)(THIS_ IDirectMusicStyle *pStyle, IDirectMusicSegment *pTemplate, WORD wActivity, IDirectMusicChordMap *pChordMap, IDirectMusicSegment **ppSegment) PURE;
STDMETHOD(ComposeSegmentFromShape)(THIS_ IDirectMusicStyle *pStyle, WORD wNumMeasures, WORD wShape, WORD wActivity, BOOL fIntro, BOOL fEnd, IDirectMusicChordMap *pChordMap, IDirectMusicSegment **ppSegment) PURE;
STDMETHOD(ComposeTransition)(THIS_ IDirectMusicSegment *pFromSeg, IDirectMusicSegment *pToSeg, MUSIC_TIME mtTime, WORD wCommand, DWORD dwFlags, IDirectMusicChordMap *pChordMap, IDirectMusicSegment **ppTransSeg) PURE;
STDMETHOD(AutoTransition)(THIS_ IDirectMusicPerformance *pPerformance, IDirectMusicSegment *pToSeg, WORD wCommand, DWORD dwFlags, IDirectMusicChordMap *pChordMap, IDirectMusicSegment **ppTransSeg, IDirectMusicSegmentState **ppToSegState, IDirectMusicSegmentState **ppTransSegState) PURE;
STDMETHOD(ComposeTemplateFromShape)(THIS_ WORD wNumMeasures, WORD wShape, BOOL fIntro, BOOL fEnd, WORD wEndLength, IDirectMusicSegment **ppTemplate) PURE;
STDMETHOD(ChangeChordMap)(THIS_ IDirectMusicSegment *pSegment, BOOL fTrackScale, IDirectMusicChordMap *pChordMap) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicComposer methods ***/
#define IDirectMusicComposer_ComposeSegmentFromTemplate(p,a,b,c,d,e) (p)->lpVtbl->ComposeSegmentFromTemplate(p,a,b,c,d,e)
#define IDirectMusicComposer_ComposeSegmentFromShape(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->ComposeSegmentFromShape(p,a,b,c,d,e,f,g,h)
#define IDirectMusicComposer_ComposeTransition(p,a,b,c,d,e,f,g) (p)->lpVtbl->ComposeTransition(p,a,b,c,d,e,f,g)
#define IDirectMusicComposer_AutoTransition(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->AutoTransition(p,a,b,c,d,e,f,g,h)
#define IDirectMusicComposer_ComposeTemplateFromShape(p,a,b,c,d,e,f) (p)->lpVtbl->ComposeTemplateFromShape(p,a,b,c,d,e,f)
#endif
/*****************************************************************************
* IDirectMusicPatternTrack interface
*/
#define INTERFACE IDirectMusicPatternTrack
{
/*** IUnknown methods ***/
/*** IDirectMusicPatternTrack methods ***/
STDMETHOD(SetVariation)(THIS_ IDirectMusicSegmentState *pSegState, DWORD dwVariationFlags, DWORD dwPart) PURE;
STDMETHOD(SetPatternByName)(THIS_ IDirectMusicSegmentState *pSegState, WCHAR *wszName, IDirectMusicStyle *pStyle, DWORD dwPatternType, DWORD *pdwLength) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicPatternTrack methods ***/
#define IDirectMusicPatternTrack_SetPatternByName(p,a,b,c,d,e) (p)->lpVtbl->SetPatternByName(p,a,b,c,d,e)
#endif
/*****************************************************************************
* IDirectMusicScript interface
*/
#define INTERFACE IDirectMusicScript
{
/*** IUnknown methods ***/
/*** IDirectMusicScript methods ***/
STDMETHOD(Init)(THIS_ IDirectMusicPerformance *pPerformance, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
STDMETHOD(SetVariableVariant)(THIS_ WCHAR *pwszVariableName, VARIANT varValue, BOOL fSetRef, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
STDMETHOD(GetVariableVariant)(THIS_ WCHAR *pwszVariableName, VARIANT *pvarValue, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
STDMETHOD(SetVariableNumber)(THIS_ WCHAR *pwszVariableName, LONG lValue, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
STDMETHOD(GetVariableNumber)(THIS_ WCHAR *pwszVariableName, LONG *plValue, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
STDMETHOD(SetVariableObject)(THIS_ WCHAR *pwszVariableName, IUnknown *punkValue, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
STDMETHOD(GetVariableObject)(THIS_ WCHAR *pwszVariableName, REFIID riid, LPVOID *ppv, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicScript methods ***/
#define IDirectMusicPatternTrack_SetVariableVariant(p,a,b,c,d) (p)->lpVtbl->SetVariableVariant(p,a,b,c,d)
#define IDirectMusicPatternTrack_GetVariableVariant(p,a,b,c) (p)->lpVtbl->GetVariableVariant(p,a,b,c)
#define IDirectMusicPatternTrack_GetVariableObject(p,a,b,c,d) (p)->lpVtbl->GetVariableObject(p,a,b,c,d)
#endif
/*****************************************************************************
* IDirectMusicContainer interface
*/
#define INTERFACE IDirectMusicContainer
{
/*** IUnknown methods ***/
/*** IDirectMusicContainer methods ***/
STDMETHOD(EnumObject)(THIS_ REFGUID rguidClass, DWORD dwIndex, LPDMUS_OBJECTDESC pDesc, WCHAR *pwszAlias) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
/*** IDirectMusicContainer methods ***/
#endif
#ifdef __cplusplus
}
#endif
#include <poppack.h>
#endif /* __WINE_DMUSIC_PERFORMANCE_H */