dmusicc.h revision 3194da424708abdd288b28d96892b3a5f3f7df0b
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* DirectMusic Core API Stuff
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Copyright (C) 2003-2004 Rok Mandeljc
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * This program is free software; you can redistribute it and/or
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * modify it under the terms of the GNU Lesser General Public
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * License as published by the Free Software Foundation; either
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * version 2.1 of the License, or (at your option) any later version.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * This program is distributed in the hope that it will be useful,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Lesser General Public License for more details.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * You should have received a copy of the GNU Lesser General Public
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * License along with this program; if not, write to the Free Software
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncextern "C" {
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Predeclare the interfaces
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* CLSIDs */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(CLSID_DirectMusic, 0x636b9f10,0x0c7d,0x11d1,0x95,0xb2,0x00,0x20,0xaf,0xdc,0x74,0x21);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(CLSID_DirectMusicCollection, 0x480ff4b0,0x28b2,0x11d1,0xbe,0xf7,0x00,0xc0,0x4f,0xbf,0x8f,0xef);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(CLSID_DirectMusicSynth, 0x58c2b4d0,0x46e7,0x11d1,0x89,0xac,0x00,0xa0,0xc9,0x05,0x41,0x29);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_IDirectMusic, 0x6536115a,0x7b2d,0x11d2,0xba,0x18,0x00,0x00,0xf8,0x75,0xac,0x12);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_IDirectMusic2, 0x6fc2cae1,0xbc78,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_IDirectMusic8, 0x2d3629f7,0x813d,0x4939,0x85,0x08,0xf0,0x5c,0x6b,0x75,0xfd,0x97);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_IDirectMusicBuffer, 0xd2ac2878,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_IDirectMusicCollection, 0xd2ac287c,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_IDirectMusicDownload, 0xd2ac287b,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_IDirectMusicDownloadedInstrument, 0xd2ac287e,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_IDirectMusicInstrument, 0xd2ac287d,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_IDirectMusicPort, 0x08f2d8c9,0x37c2,0x11d2,0xb9,0xf9,0x00,0x00,0xf8,0x75,0xac,0x12);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_IDirectMusicPortDownload, 0xd2ac287a,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_IDirectMusicThru, 0xced153e7,0x3606,0x11d2,0xb9,0xf9,0x00,0x00,0xf8,0x75,0xac,0x12);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IID_IDirectMusicCollection8 IID_IDirectMusicCollection
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IID_IDirectMusicDownload8 IID_IDirectMusicDownload
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IID_IDirectMusicDownloadedInstrument8 IID_IDirectMusicDownloadedInstrument
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IID_IDirectMusicInstrument8 IID_IDirectMusicInstrument
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IID_IDirectMusicPortDownload8 IID_IDirectMusicPortDownload
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* GUIDs - property set */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_GM_Hardware, 0x178f2f24,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_GS_Capable, 0x6496aba2,0x61b0,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_GS_Hardware, 0x178f2f25,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_DLS1, 0x178f2f27,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_DLS2, 0xf14599e5,0x4689,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_Effects, 0xcda8d611,0x684a,0x11d2,0x87,0x1e,0x00,0x60,0x08,0x93,0xb1,0xbd);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_INSTRUMENT2, 0x865fd372,0x9f67,0x11d2,0x87,0x2a,0x00,0x60,0x08,0x93,0xb1,0xbd);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_LegacyCaps, 0xcfa7cdc2,0x00a1,0x11d2,0xaa,0xd5,0x00,0x00,0xf8,0x75,0xac,0x12);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_MemorySize, 0x178f2f28,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_SampleMemorySize, 0x178f2f28,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_SamplePlaybackRate, 0x2a91f713,0xa4bf,0x11d2,0xbb,0xdf,0x00,0x60,0x08,0x33,0xdb,0xd8);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_SynthSink_DSOUND, 0x0aa97844,0xc877,0x11d1,0x87,0x0c,0x00,0x60,0x08,0x93,0xb1,0xbd);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_SynthSink_WAVE, 0x0aa97845,0xc877,0x11d1,0x87,0x0c,0x00,0x60,0x08,0x93,0xb1,0xbd);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_Volume, 0xfedfae25,0xe46e,0x11d1,0xaa,0xce,0x00,0x00,0xf8,0x75,0xac,0x12);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_WavesReverb, 0x04cb5622,0x32e5,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_WriteLatency, 0x268a0fa0,0x60f2,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_WritePeriod, 0x268a0fa1,0x60f2,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_XG_Capable, 0x6496aba1,0x61b0,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(GUID_DMUS_PROP_XG_Hardware, 0x178f2f26,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* typedef definitions */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct IDirectMusicBuffer *LPDIRECTMUSICBUFFER;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct IDirectMusicBuffer IDirectMusicBuffer8, *LPDIRECTMUSICBUFFER8;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct IDirectMusicInstrument *LPDIRECTMUSICINSTRUMENT;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct IDirectMusicInstrument IDirectMusicInstrument8, *LPDIRECTMUSICINSTRUMENT8;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct IDirectMusicDownloadedInstrument *LPDIRECTMUSICDOWNLOADEDINSTRUMENT;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct IDirectMusicDownloadedInstrument IDirectMusicDownloadedInstrument8, *LPDIRECTMUSICDOWNLOADEDINSTRUMENT8;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct IDirectMusicCollection *LPDIRECTMUSICCOLLECTION;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct IDirectMusicCollection IDirectMusicCollection8, *LPDIRECTMUSICCOLLECTION8;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct IDirectMusicDownload *LPDIRECTMUSICDOWNLOAD;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct IDirectMusicDownload IDirectMusicDownload8, *LPDIRECTMUSICDOWNLOAD8;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct IDirectMusicPortDownload *LPDIRECTMUSICPORTDOWNLOAD;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct IDirectMusicPortDownload IDirectMusicPortDownload8, *LPDIRECTMUSICPORTDOWNLOAD8;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct IDirectMusicPort IDirectMusicPort8, *LPDIRECTMUSICPORT8;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct IDirectMusicThru IDirectMusicThru8, *LPDIRECTMUSICTHRU8;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Typedef definitions
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef ULONGLONG SAMPLE_POSITION, *LPSAMPLE_POSITION;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN10_VOICE_PRIORITY_OFFSET 0x0000000F
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN11_VOICE_PRIORITY_OFFSET 0x00000005
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN12_VOICE_PRIORITY_OFFSET 0x00000004
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN13_VOICE_PRIORITY_OFFSET 0x00000003
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN14_VOICE_PRIORITY_OFFSET 0x00000002
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN15_VOICE_PRIORITY_OFFSET 0x00000001
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN16_VOICE_PRIORITY_OFFSET 0x00000000
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN1_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN1_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN2_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN2_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN3_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN3_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN4_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN4_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN5_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN5_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN6_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN6_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN7_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN7_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN8_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN8_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN9_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN9_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN10_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN10_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN11_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN11_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN12_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN12_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN13_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN13_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN14_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN14_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN15_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN15_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DAUD_CHAN16_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN16_VOICE_PRIORITY_OFFSET)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#endif /* _DIRECTAUDIO_PRIORITIES_DEFINED_ */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DMUS_SYNTHSTATS_SYSTEMMEMORY DMUS_PC_SYSTEMMEMORY
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define DSBUSID_IS_SPKR_LOC(id) (((id) >= DSBUSID_FIRST_SPKR_LOC) && ((id) <= DSBUSID_LAST_SPKR_LOC))
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Enumerations
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef enum {
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Structures
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* typedef definitions */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct _DMUS_BUFFERDESC DMUS_BUFFERDESC, *LPDMUS_BUFFERDESC;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct _DMUS_PORTCAPS DMUS_PORTCAPS, *LPDMUS_PORTCAPS;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct _DMUS_PORTPARAMS DMUS_PORTPARAMS7, *LPDMUS_PORTPARAMS7;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct _DMUS_PORTPARAMS8 DMUS_PORTPARAMS8, *LPDMUS_PORTPARAMS8;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef DMUS_PORTPARAMS8 DMUS_PORTPARAMS, *LPDMUS_PORTPARAMS;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct _DMUS_SYNTHSTATS DMUS_SYNTHSTATS, *LPDMUS_SYNTHSTATS;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct _DMUS_SYNTHSTATS8 DMUS_SYNTHSTATS8, *LPDMUS_SYNTHSTATS8;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct _DMUS_WAVES_REVERB_PARAMS DMUS_WAVES_REVERB_PARAMS, *LPDMUS_WAVES_REVERB_PARAMS;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct _DMUS_CLOCKINFO7 DMUS_CLOCKINFO7, *LPDMUS_CLOCKINFO7;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct _DMUS_CLOCKINFO8 DMUS_CLOCKINFO8, *LPDMUS_CLOCKINFO8;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef DMUS_CLOCKINFO8 DMUS_CLOCKINFO, *LPDMUS_CLOCKINFO;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* actual structures */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * IDirectMusic interface
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IDirectMusic methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(EnumPort)(THIS_ DWORD dwIndex, LPDMUS_PORTCAPS pPortCaps) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(CreateMusicBuffer)(THIS_ LPDMUS_BUFFERDESC pBufferDesc, LPDIRECTMUSICBUFFER *ppBuffer, LPUNKNOWN pUnkOuter) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(CreatePort)(THIS_ REFCLSID rclsidPort, LPDMUS_PORTPARAMS pPortParams, LPDIRECTMUSICPORT *ppPort, LPUNKNOWN pUnkOuter) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(EnumMasterClock)(THIS_ DWORD dwIndex, LPDMUS_CLOCKINFO lpClockInfo) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetMasterClock)(THIS_ LPGUID pguidClock, struct IReferenceClock **ppReferenceClock) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(SetMasterClock)(THIS_ REFGUID rguidClock) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetDefaultPort)(THIS_ LPGUID pguidPort) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(SetDirectSound)(THIS_ LPDIRECTSOUND pDirectSound, HWND hWnd) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic_AddRef(p) (p)->lpVtbl->AddRef(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic_Release(p) (p)->lpVtbl->Release(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IDirectMusic methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic_EnumPort(p,a,b) (p)->lpVtbl->EnumPort(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic_CreateMusicBuffer(p,a,b,c) (p)->lpVtbl->CreateMusicBuffer(p,a,b,c)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic_CreatePort(p,a,b,c,d) (p)->lpVtbl->CreatePort(p,a,b,c,d)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic_EnumMasterClock(p,a,b) (p)->lpVtbl->EnumMasterClock(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic_GetMasterClock(p,a,b) (p)->lpVtbl->GetMasterClock(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic_SetMasterClock(p,a) (p)->lpVtbl->SetMasterClock(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic_Activate(p,a) (p)->lpVtbl->Activate(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic_GetDefaultPort(p,a) (p)->lpVtbl->GetDefaultPort(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * IDirectMusic8 interface
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IDirectMusic methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(EnumPort)(THIS_ DWORD dwIndex, LPDMUS_PORTCAPS pPortCaps) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(CreateMusicBuffer)(THIS_ LPDMUS_BUFFERDESC pBufferDesc, LPDIRECTMUSICBUFFER *ppBuffer, LPUNKNOWN pUnkOuter) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(CreatePort)(THIS_ REFCLSID rclsidPort, LPDMUS_PORTPARAMS pPortParams, LPDIRECTMUSICPORT *ppPort, LPUNKNOWN pUnkOuter) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(EnumMasterClock)(THIS_ DWORD dwIndex, LPDMUS_CLOCKINFO lpClockInfo) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetMasterClock)(THIS_ LPGUID pguidClock, struct IReferenceClock **ppReferenceClock) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(SetMasterClock)(THIS_ REFGUID rguidClock) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetDefaultPort)(THIS_ LPGUID pguidPort) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(SetDirectSound)(THIS_ LPDIRECTSOUND pDirectSound, HWND hWnd) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IDirectMusic8 methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(SetExternalMasterClock)(THIS_ struct IReferenceClock *pClock) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic8_AddRef(p) (p)->lpVtbl->AddRef(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic8_Release(p) (p)->lpVtbl->Release(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IDirectMusic methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic8_EnumPort(p,a,b) (p)->lpVtbl->EnumPort(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic8_CreateMusicBuffer(p,a,b,c) (p)->lpVtbl->CreateMusicBuffer(p,a,b,c)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic8_CreatePort(p,a,b,c,d) (p)->lpVtbl->CreatePort(p,a,b,c,d)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic8_EnumMasterClock(p,a,b) (p)->lpVtbl->EnumMasterClock(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic8_GetMasterClock(p,a,b) (p)->lpVtbl->GetMasterClock(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic8_SetMasterClock(p,a) (p)->lpVtbl->SetMasterClock(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic8_Activate(p,a) (p)->lpVtbl->Activate(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic8_GetDefaultPort(p,a) (p)->lpVtbl->GetDefaultPort(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic8_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IDirectMusic8 methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusic8_SetExternalMasterClock(p,a) (p)->lpVtbl->SetExternalMasterClock(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * IDirectMusicBuffer interface
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IDirectMusicBuffer methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(TotalTime)(THIS_ LPREFERENCE_TIME prtTime) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(PackStructured)(THIS_ REFERENCE_TIME rt, DWORD dwChannelGroup, DWORD dwChannelMessage) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(PackUnstructured)(THIS_ REFERENCE_TIME rt, DWORD dwChannelGroup, DWORD cb, LPBYTE lpb) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetNextEvent)(THIS_ LPREFERENCE_TIME prt, LPDWORD pdwChannelGroup, LPDWORD pdwLength, LPBYTE *ppData) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetRawBufferPtr)(THIS_ LPBYTE *ppData) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetStartTime)(THIS_ LPREFERENCE_TIME prt) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetBufferFormat)(THIS_ LPGUID pGuidFormat) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(SetStartTime)(THIS_ REFERENCE_TIME rt) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_Release(p) (p)->lpVtbl->Release(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IDirectMusicBuffer methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_Flush(p) (p)->lpVtbl->Flush(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_TotalTime(p,a) (p)->lpVtbl->TotalTime(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_PackStructured(p,a,b,c) (p)->lpVtbl->PackStructured(p,a,b,c)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_PackUnstructured(p,a,b,c,d) (p)->lpVtbl->PackUnstructured(p,a,b,c,d)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_ResetReadPtr(p) (p)->lpVtbl->ResetReadPtr(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_GetNextEvent(p,a,b,c,d) (p)->lpVtbl->GetNextEvent(p,a,b,c,d)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_GetRawBufferPtr(p,a) (p)->lpVtbl->GetRawBufferPtr(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_GetStartTime(p,a) (p)->lpVtbl->GetStartTime(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_GetUsedBytes(p,a) (p)->lpVtbl->GetUsedBytes(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_GetMaxBytes(p,a) (p)->lpVtbl->GetMaxBytes(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_GetBufferFormat(p,a) (p)->lpVtbl->GetBufferFormat(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_SetStartTime(p,a) (p)->lpVtbl->SetStartTime(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicBuffer_SetUsedBytes(p,a) (p)->lpVtbl->SetUsedBytes(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * IDirectMusicInstrument interface
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IDirectMusicInstrument methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicInstrument_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicInstrument_AddRef(p) (p)->lpVtbl->AddRef(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicInstrument_Release(p) (p)->lpVtbl->Release(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IDirectMusicInstrument methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicInstrument_GetPatch(p,a) (p)->lpVtbl->GetPatch(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicInstrument_SetPatch(p,a) (p)->lpVtbl->SetPatch(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * IDirectMusicDownloadedInstrument interface
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDECLARE_INTERFACE_(IDirectMusicDownloadedInstrument,IUnknown)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /* no IDirectMusicDownloadedInstrument methods at this time */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicDownloadedInstrument_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicDownloadedInstrument_AddRef(p) (p)->lpVtbl->AddRef(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicDownloadedInstrument_Release(p) (p)->lpVtbl->Release(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IDirectMusicDownloadedInstrument methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* none at this time */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * IDirectMusicCollection interface
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IDirectMusicCollection methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetInstrument)(THIS_ DWORD dwPatch, IDirectMusicInstrument **ppInstrument) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(EnumInstrument)(THIS_ DWORD dwIndex, DWORD *pdwPatch, LPWSTR pwszName, DWORD dwNameLen) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicCollection_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicCollection_AddRef(p) (p)->lpVtbl->AddRef(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicCollection_Release(p) (p)->lpVtbl->Release(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IDirectMusicCollection methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicCollection_GetInstrument(p,a,b) (p)->lpVtbl->GetInstrument(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicCollection_EnumInstrument(p,a,b,c,d) (p)->lpVtbl->EnumInstrument(p,a,b,c,d)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * IDirectMusicDownload interface
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IDirectMusicDownload methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetBuffer)(THIS_ void **ppvBuffer, DWORD *pdwSize) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicDownload_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicDownload_AddRef(p) (p)->lpVtbl->AddRef(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicDownload_Release(p) (p)->lpVtbl->Release(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IDirectMusicDownload methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicDownload_GetBuffer(p,a,b) (p)->lpVtbl->GetBuffer(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * IDirectMusicPortDownload interface
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDECLARE_INTERFACE_(IDirectMusicPortDownload,IUnknown)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IDirectMusicPortDownload methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetBuffer)(THIS_ DWORD dwDLId, IDirectMusicDownload **ppIDMDownload) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(AllocateBuffer)(THIS_ DWORD dwSize, IDirectMusicDownload **ppIDMDownload) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetDLId)(THIS_ DWORD *pdwStartDLId, DWORD dwCount) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(Download)(THIS_ IDirectMusicDownload *pIDMDownload) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(Unload)(THIS_ IDirectMusicDownload *pIDMDownload) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPortDownload_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPortDownload_AddRef(p) (p)->lpVtbl->AddRef(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPortDownload_Release(p) (p)->lpVtbl->Release(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IDirectMusicPortDownload methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPortDownload_GetBuffer(p,a,b) (p)->lpVtbl->GetBuffer(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPortDownload_AllocateBuffer(p,a,b) (p)->lpVtbl->AllocateBuffer(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPortDownload_GetDLId(p,a,b) (p)->lpVtbl->GetDLId(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPortDownload_GetAppend(p,a) (p)->lpVtbl->GetAppend(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPortDownload_Download(p,a) (p)->lpVtbl->Download(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPortDownload_Unload(p,a) (p)->lpVtbl->GetBuffer(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * IDirectMusicPort interface
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IDirectMusicPort methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(PlayBuffer)(THIS_ LPDIRECTMUSICBUFFER pBuffer) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(SetReadNotificationHandle)(THIS_ HANDLE hEvent) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(Read)(THIS_ LPDIRECTMUSICBUFFER pBuffer) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(DownloadInstrument)(THIS_ IDirectMusicInstrument *pInstrument, IDirectMusicDownloadedInstrument **ppDownloadedInstrument, DMUS_NOTERANGE *pNoteRanges, DWORD dwNumNoteRanges) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(UnloadInstrument)(THIS_ IDirectMusicDownloadedInstrument *pDownloadedInstrument) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetLatencyClock)(THIS_ struct IReferenceClock **ppClock) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetRunningStats)(THIS_ LPDMUS_SYNTHSTATS pStats) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetCaps)(THIS_ LPDMUS_PORTCAPS pPortCaps) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(DeviceIoControl)(THIS_ DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(SetNumChannelGroups)(THIS_ DWORD dwChannelGroups) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetNumChannelGroups)(THIS_ LPDWORD pdwChannelGroups) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(SetChannelPriority)(THIS_ DWORD dwChannelGroup, DWORD dwChannel, DWORD dwPriority) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetChannelPriority)(THIS_ DWORD dwChannelGroup, DWORD dwChannel, LPDWORD pdwPriority) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(SetDirectSound)(THIS_ LPDIRECTSOUND pDirectSound, LPDIRECTSOUNDBUFFER pDirectSoundBuffer) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX pWaveFormatEx, LPDWORD pdwWaveFormatExSize, LPDWORD pdwBufferSize) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_AddRef(p) (p)->lpVtbl->AddRef(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_Release(p) (p)->lpVtbl->Release(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IDirectMusicPort methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_PlayBuffer(p,a) (p)->lpVtbl->PlayBuffer(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_SetReadNotificationHandle(p,a) (p)->lpVtbl->SetReadNotificationHandle(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_Read(p,a) (p)->lpVtbl->Read(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_DownloadInstrument(p,a,b,c,d) (p)->lpVtbl->DownloadInstrument(p,a,b,c,d)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_UnloadInstrument(p,a) (p)->lpVtbl->UnloadInstrument(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_GetLatencyClock(p,a) (p)->lpVtbl->GetLatencyClock(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_GetRunningStats(p,a) (p)->lpVtbl->GetRunningStats(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_Compact(p) (p)->lpVtbl->Compact(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_DeviceIoControl(p,a,b,c,d,e,f,g) (p)->lpVtbl->DeviceIoControl(p,a,b,c,d,e,f,g)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_SetNumChannelGroups(p,a) (p)->lpVtbl->SetNumChannelGroups(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_GetNumChannelGroups(p,a) (p)->lpVtbl->GetNumChannelGroups(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_Activate(p,a) (p)->lpVtbl->Activate(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_SetChannelPriority(p,a,b,c) (p)->lpVtbl->SetChannelPriority(p,a,b,c)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_GetChannelPriority(p,a,b,c) (p)->lpVtbl->GetChannelPriority(p,a,b,c)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicPort_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * IDirectMusicThru interface
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IDirectMusicThru methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(ThruChannel)(THIS_ DWORD dwSourceChannelGroup, DWORD dwSourceChannel, DWORD dwDestinationChannelGroup, DWORD dwDestinationChannel, LPDIRECTMUSICPORT pDestinationPort) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicThru_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicThru_AddRef(p) (p)->lpVtbl->AddRef(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicThru_Release(p) (p)->lpVtbl->Release(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IDirectMusicThru methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IDirectMusicThru_ThruChannel(p,a,b,c,d,e) (p)->lpVtbl->ThruChannel(p,a,b,c,d,e)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_IReferenceClock,0x56a86897,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*****************************************************************************
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * IReferenceClock interface
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /*** IReferenceClock methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetTime)(THIS_ REFERENCE_TIME *pTime) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(AdviseTime)(THIS_ REFERENCE_TIME baseTime, REFERENCE_TIME streamTime, HANDLE hEvent, DWORD *pdwAdviseCookie) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(AdvisePeriodic)(THIS_ REFERENCE_TIME startTime, REFERENCE_TIME periodTime, HANDLE hSemaphore, DWORD *pdwAdviseCookie) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(Unadvise)(THIS_ DWORD dwAdviseCookie) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IUnknown methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IReferenceClock_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IReferenceClock_AddRef(p) (p)->lpVtbl->AddRef(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IReferenceClock_Release(p) (p)->lpVtbl->Release(p)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/*** IReferenceClock methods ***/
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IReferenceClock_GetTime(p,a) (p)->lpVtbl->GetTime(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IReferenceClock_AdviseTime(p,a,b,c,d) (p)->lpVtbl->AdviseTime(p,a,b,c,d)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IReferenceClock_AdvisePeriodic(p,a,b,c,d) (p)->lpVtbl->AdvisePeriodic(p,a,b,c,d)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define IReferenceClock_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#endif /* __IReferenceClock_INTERFACE_DEFINED__ */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#endif /* __WINE_DMUSIC_CORE_H */