Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 1 | /* DirectMusic Core API Stuff |
| 2 | * |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 3 | * Copyright (C) 2003-2004 Rok Mandeljc |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 4 | * |
Alexandre Julliard | 7718d2b | 2007-05-30 12:54:07 +0200 | [diff] [blame] | 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2.1 of the License, or (at your option) any later version. |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
Alexandre Julliard | 7718d2b | 2007-05-30 12:54:07 +0200 | [diff] [blame] | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 14 | * |
Alexandre Julliard | 7718d2b | 2007-05-30 12:54:07 +0200 | [diff] [blame] | 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 18 | */ |
| 19 | |
| 20 | #ifndef __WINE_DMUSIC_CORE_H |
| 21 | #define __WINE_DMUSIC_CORE_H |
| 22 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 23 | #ifndef __WINESRC__ |
| 24 | #include <windows.h> |
| 25 | #endif /* __WINESRC__ */ |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 26 | |
Francois Gouget | 6688acc | 2006-11-07 00:45:16 +0100 | [diff] [blame] | 27 | #define COM_NO_WINDOWS_H |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 28 | #include <objbase.h> |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 29 | #include <mmsystem.h> |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 30 | |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 31 | #include <dls1.h> |
| 32 | #include <dmerror.h> |
| 33 | #include <dmdls.h> |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 34 | #include <dsound.h> |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 35 | #include <dmusbuff.h> |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 36 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 37 | #include <pshpack8.h> |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 38 | |
| 39 | #ifdef __cplusplus |
| 40 | extern "C" { |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 41 | #endif |
| 42 | |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 43 | |
| 44 | /***************************************************************************** |
| 45 | * Predeclare the interfaces |
| 46 | */ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 47 | /* CLSIDs */ |
| 48 | DEFINE_GUID(CLSID_DirectMusic, 0x636b9f10,0x0c7d,0x11d1,0x95,0xb2,0x00,0x20,0xaf,0xdc,0x74,0x21); |
| 49 | DEFINE_GUID(CLSID_DirectMusicCollection, 0x480ff4b0,0x28b2,0x11d1,0xbe,0xf7,0x00,0xc0,0x4f,0xbf,0x8f,0xef); |
| 50 | DEFINE_GUID(CLSID_DirectMusicSynth, 0x58c2b4d0,0x46e7,0x11d1,0x89,0xac,0x00,0xa0,0xc9,0x05,0x41,0x29); |
| 51 | |
| 52 | /* IIDs */ |
| 53 | DEFINE_GUID(IID_IDirectMusic, 0x6536115a,0x7b2d,0x11d2,0xba,0x18,0x00,0x00,0xf8,0x75,0xac,0x12); |
| 54 | DEFINE_GUID(IID_IDirectMusic2, 0x6fc2cae1,0xbc78,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6); |
| 55 | DEFINE_GUID(IID_IDirectMusic8, 0x2d3629f7,0x813d,0x4939,0x85,0x08,0xf0,0x5c,0x6b,0x75,0xfd,0x97); |
| 56 | DEFINE_GUID(IID_IDirectMusicBuffer, 0xd2ac2878,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 57 | DEFINE_GUID(IID_IDirectMusicCollection, 0xd2ac287c,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 58 | DEFINE_GUID(IID_IDirectMusicDownload, 0xd2ac287b,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 59 | DEFINE_GUID(IID_IDirectMusicDownloadedInstrument, 0xd2ac287e,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 60 | DEFINE_GUID(IID_IDirectMusicInstrument, 0xd2ac287d,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 61 | DEFINE_GUID(IID_IDirectMusicPort, 0x08f2d8c9,0x37c2,0x11d2,0xb9,0xf9,0x00,0x00,0xf8,0x75,0xac,0x12); |
| 62 | DEFINE_GUID(IID_IDirectMusicPortDownload, 0xd2ac287a,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 63 | DEFINE_GUID(IID_IDirectMusicThru, 0xced153e7,0x3606,0x11d2,0xb9,0xf9,0x00,0x00,0xf8,0x75,0xac,0x12); |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 64 | |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 65 | #define IID_IDirectMusicCollection8 IID_IDirectMusicCollection |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 66 | #define IID_IDirectMusicDownload8 IID_IDirectMusicDownload |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 67 | #define IID_IDirectMusicDownloadedInstrument8 IID_IDirectMusicDownloadedInstrument |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 68 | #define IID_IDirectMusicInstrument8 IID_IDirectMusicInstrument |
| 69 | #define IID_IDirectMusicPort8 IID_IDirectMusicPort |
| 70 | #define IID_IDirectMusicPortDownload8 IID_IDirectMusicPortDownload |
| 71 | #define IID_IDirectMusicThru8 IID_IDirectMusicThru |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 72 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 73 | /* GUIDs - property set */ |
| 74 | DEFINE_GUID(GUID_DMUS_PROP_GM_Hardware, 0x178f2f24,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12); |
| 75 | DEFINE_GUID(GUID_DMUS_PROP_GS_Capable, 0x6496aba2,0x61b0,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6); |
| 76 | DEFINE_GUID(GUID_DMUS_PROP_GS_Hardware, 0x178f2f25,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12); |
| 77 | DEFINE_GUID(GUID_DMUS_PROP_DLS1, 0x178f2f27,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12); |
| 78 | DEFINE_GUID(GUID_DMUS_PROP_DLS2, 0xf14599e5,0x4689,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6); |
| 79 | DEFINE_GUID(GUID_DMUS_PROP_Effects, 0xcda8d611,0x684a,0x11d2,0x87,0x1e,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 80 | DEFINE_GUID(GUID_DMUS_PROP_INSTRUMENT2, 0x865fd372,0x9f67,0x11d2,0x87,0x2a,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 81 | DEFINE_GUID(GUID_DMUS_PROP_LegacyCaps, 0xcfa7cdc2,0x00a1,0x11d2,0xaa,0xd5,0x00,0x00,0xf8,0x75,0xac,0x12); |
| 82 | DEFINE_GUID(GUID_DMUS_PROP_MemorySize, 0x178f2f28,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12); |
| 83 | DEFINE_GUID(GUID_DMUS_PROP_SampleMemorySize, 0x178f2f28,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12); |
| 84 | DEFINE_GUID(GUID_DMUS_PROP_SamplePlaybackRate, 0x2a91f713,0xa4bf,0x11d2,0xbb,0xdf,0x00,0x60,0x08,0x33,0xdb,0xd8); |
| 85 | DEFINE_GUID(GUID_DMUS_PROP_SynthSink_DSOUND, 0x0aa97844,0xc877,0x11d1,0x87,0x0c,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 86 | DEFINE_GUID(GUID_DMUS_PROP_SynthSink_WAVE, 0x0aa97845,0xc877,0x11d1,0x87,0x0c,0x00,0x60,0x08,0x93,0xb1,0xbd); |
| 87 | DEFINE_GUID(GUID_DMUS_PROP_Volume, 0xfedfae25,0xe46e,0x11d1,0xaa,0xce,0x00,0x00,0xf8,0x75,0xac,0x12); |
| 88 | DEFINE_GUID(GUID_DMUS_PROP_WavesReverb, 0x04cb5622,0x32e5,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6); |
| 89 | DEFINE_GUID(GUID_DMUS_PROP_WriteLatency, 0x268a0fa0,0x60f2,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6); |
| 90 | DEFINE_GUID(GUID_DMUS_PROP_WritePeriod, 0x268a0fa1,0x60f2,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6); |
| 91 | DEFINE_GUID(GUID_DMUS_PROP_XG_Capable, 0x6496aba1,0x61b0,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6); |
| 92 | DEFINE_GUID(GUID_DMUS_PROP_XG_Hardware, 0x178f2f26,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12); |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 93 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 94 | /* typedef definitions */ |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 95 | typedef struct IDirectMusic *LPDIRECTMUSIC; |
| 96 | typedef struct IDirectMusic8 *LPDIRECTMUSIC8; |
| 97 | typedef struct IDirectMusicBuffer *LPDIRECTMUSICBUFFER; |
| 98 | typedef struct IDirectMusicBuffer IDirectMusicBuffer8, *LPDIRECTMUSICBUFFER8; |
| 99 | typedef struct IDirectMusicInstrument *LPDIRECTMUSICINSTRUMENT; |
| 100 | typedef struct IDirectMusicInstrument IDirectMusicInstrument8, *LPDIRECTMUSICINSTRUMENT8; |
| 101 | typedef struct IDirectMusicDownloadedInstrument *LPDIRECTMUSICDOWNLOADEDINSTRUMENT; |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 102 | typedef struct IDirectMusicDownloadedInstrument IDirectMusicDownloadedInstrument8, *LPDIRECTMUSICDOWNLOADEDINSTRUMENT8; |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 103 | typedef struct IDirectMusicCollection *LPDIRECTMUSICCOLLECTION; |
| 104 | typedef struct IDirectMusicCollection IDirectMusicCollection8, *LPDIRECTMUSICCOLLECTION8; |
| 105 | typedef struct IDirectMusicDownload *LPDIRECTMUSICDOWNLOAD; |
| 106 | typedef struct IDirectMusicDownload IDirectMusicDownload8, *LPDIRECTMUSICDOWNLOAD8; |
| 107 | typedef struct IDirectMusicPortDownload *LPDIRECTMUSICPORTDOWNLOAD; |
| 108 | typedef struct IDirectMusicPortDownload IDirectMusicPortDownload8, *LPDIRECTMUSICPORTDOWNLOAD8; |
| 109 | typedef struct IDirectMusicPort *LPDIRECTMUSICPORT; |
| 110 | typedef struct IDirectMusicPort IDirectMusicPort8, *LPDIRECTMUSICPORT8; |
| 111 | typedef struct IDirectMusicThru *LPDIRECTMUSICTHRU; |
| 112 | typedef struct IDirectMusicThru IDirectMusicThru8, *LPDIRECTMUSICTHRU8; |
| 113 | typedef struct IReferenceClock *LPREFERENCECLOCK; |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 114 | |
| 115 | |
| 116 | /***************************************************************************** |
| 117 | * Typedef definitions |
| 118 | */ |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 119 | typedef ULONGLONG SAMPLE_TIME, *LPSAMPLE_TIME; |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 120 | typedef ULONGLONG SAMPLE_POSITION, *LPSAMPLE_POSITION; |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 121 | |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 122 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 123 | /***************************************************************************** |
| 124 | * Flags |
| 125 | */ |
| 126 | #ifndef _DIRECTAUDIO_PRIORITIES_DEFINED_ |
Alexandre Julliard | d0ee9f9 | 2005-03-02 12:23:20 +0000 | [diff] [blame] | 127 | #define _DIRECTAUDIO_PRIORITIES_DEFINED_ |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 128 | |
Alexandre Julliard | d0ee9f9 | 2005-03-02 12:23:20 +0000 | [diff] [blame] | 129 | #define DAUD_CRITICAL_VOICE_PRIORITY 0xF0000000 |
| 130 | #define DAUD_HIGH_VOICE_PRIORITY 0xC0000000 |
| 131 | #define DAUD_STANDARD_VOICE_PRIORITY 0x80000000 |
| 132 | #define DAUD_LOW_VOICE_PRIORITY 0x40000000 |
| 133 | #define DAUD_PERSIST_VOICE_PRIORITY 0x10000000 |
| 134 | |
| 135 | #define DAUD_CHAN1_VOICE_PRIORITY_OFFSET 0x0000000E |
| 136 | #define DAUD_CHAN2_VOICE_PRIORITY_OFFSET 0x0000000D |
| 137 | #define DAUD_CHAN3_VOICE_PRIORITY_OFFSET 0x0000000C |
| 138 | #define DAUD_CHAN4_VOICE_PRIORITY_OFFSET 0x0000000B |
| 139 | #define DAUD_CHAN5_VOICE_PRIORITY_OFFSET 0x0000000A |
| 140 | #define DAUD_CHAN6_VOICE_PRIORITY_OFFSET 0x00000009 |
| 141 | #define DAUD_CHAN7_VOICE_PRIORITY_OFFSET 0x00000008 |
| 142 | #define DAUD_CHAN8_VOICE_PRIORITY_OFFSET 0x00000007 |
| 143 | #define DAUD_CHAN9_VOICE_PRIORITY_OFFSET 0x00000006 |
| 144 | #define DAUD_CHAN10_VOICE_PRIORITY_OFFSET 0x0000000F |
| 145 | #define DAUD_CHAN11_VOICE_PRIORITY_OFFSET 0x00000005 |
| 146 | #define DAUD_CHAN12_VOICE_PRIORITY_OFFSET 0x00000004 |
| 147 | #define DAUD_CHAN13_VOICE_PRIORITY_OFFSET 0x00000003 |
| 148 | #define DAUD_CHAN14_VOICE_PRIORITY_OFFSET 0x00000002 |
| 149 | #define DAUD_CHAN15_VOICE_PRIORITY_OFFSET 0x00000001 |
| 150 | #define DAUD_CHAN16_VOICE_PRIORITY_OFFSET 0x00000000 |
| 151 | |
| 152 | #define DAUD_CHAN1_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN1_VOICE_PRIORITY_OFFSET) |
| 153 | #define DAUD_CHAN2_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN2_VOICE_PRIORITY_OFFSET) |
| 154 | #define DAUD_CHAN3_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN3_VOICE_PRIORITY_OFFSET) |
| 155 | #define DAUD_CHAN4_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN4_VOICE_PRIORITY_OFFSET) |
| 156 | #define DAUD_CHAN5_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN5_VOICE_PRIORITY_OFFSET) |
| 157 | #define DAUD_CHAN6_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN6_VOICE_PRIORITY_OFFSET) |
| 158 | #define DAUD_CHAN7_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN7_VOICE_PRIORITY_OFFSET) |
| 159 | #define DAUD_CHAN8_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN8_VOICE_PRIORITY_OFFSET) |
| 160 | #define DAUD_CHAN9_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN9_VOICE_PRIORITY_OFFSET) |
| 161 | #define DAUD_CHAN10_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN10_VOICE_PRIORITY_OFFSET) |
| 162 | #define DAUD_CHAN11_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN11_VOICE_PRIORITY_OFFSET) |
| 163 | #define DAUD_CHAN12_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN12_VOICE_PRIORITY_OFFSET) |
| 164 | #define DAUD_CHAN13_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN13_VOICE_PRIORITY_OFFSET) |
| 165 | #define DAUD_CHAN14_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN14_VOICE_PRIORITY_OFFSET) |
| 166 | #define DAUD_CHAN15_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN15_VOICE_PRIORITY_OFFSET) |
| 167 | #define DAUD_CHAN16_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN16_VOICE_PRIORITY_OFFSET) |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 168 | #endif /* _DIRECTAUDIO_PRIORITIES_DEFINED_ */ |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 169 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 170 | #define DMUS_CLOCKF_GLOBAL 0x1 |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 171 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 172 | #define DMUS_EFFECT_NONE 0x0 |
| 173 | #define DMUS_EFFECT_REVERB 0x1 |
| 174 | #define DMUS_EFFECT_CHORUS 0x2 |
| 175 | #define DMUS_EFFECT_DELAY 0x4 |
| 176 | |
| 177 | #define DMUS_MAX_DESCRIPTION 0x80 |
| 178 | #define DMUS_MAX_DRIVER 0x80 |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 179 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 180 | #define DMUS_PC_INPUTCLASS 0x0 |
| 181 | #define DMUS_PC_OUTPUTCLASS 0x1 |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 182 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 183 | #define DMUS_PC_DLS 0x00000001 |
| 184 | #define DMUS_PC_EXTERNAL 0x00000002 |
| 185 | #define DMUS_PC_SOFTWARESYNTH 0x00000004 |
| 186 | #define DMUS_PC_MEMORYSIZEFIXED 0x00000008 |
| 187 | #define DMUS_PC_GMINHARDWARE 0x00000010 |
| 188 | #define DMUS_PC_GSINHARDWARE 0x00000020 |
| 189 | #define DMUS_PC_XGINHARDWARE 0x00000040 |
| 190 | #define DMUS_PC_DIRECTSOUND 0x00000080 |
| 191 | #define DMUS_PC_SHAREABLE 0x00000100 |
| 192 | #define DMUS_PC_DLS2 0x00000200 |
| 193 | #define DMUS_PC_AUDIOPATH 0x00000400 |
| 194 | #define DMUS_PC_WAVE 0x00000800 |
| 195 | #define DMUS_PC_SYSTEMMEMORY 0x7FFFFFFF |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 196 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 197 | #define DMUS_PORT_WINMM_DRIVER 0x0 |
| 198 | #define DMUS_PORT_USER_MODE_SYNTH 0x1 |
| 199 | #define DMUS_PORT_KERNEL_MODE 0x2 |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 200 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 201 | #define DMUS_PORT_FEATURE_AUDIOPATH 0x1 |
| 202 | #define DMUS_PORT_FEATURE_STREAMING 0x2 |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 203 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 204 | #define DMUS_PORTPARAMS_VOICES 0x01 |
| 205 | #define DMUS_PORTPARAMS_CHANNELGROUPS 0x02 |
| 206 | #define DMUS_PORTPARAMS_AUDIOCHANNELS 0x04 |
| 207 | #define DMUS_PORTPARAMS_SAMPLERATE 0x08 |
| 208 | #define DMUS_PORTPARAMS_EFFECTS 0x20 |
| 209 | #define DMUS_PORTPARAMS_SHARE 0x40 |
| 210 | #define DMUS_PORTPARAMS_FEATURES 0x80 |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 211 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 212 | #define DMUS_VOLUME_MAX 2000 |
| 213 | #define DMUS_VOLUME_MIN -20000 |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 214 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 215 | #define DMUS_SYNTHSTATS_VOICES 0x01 |
| 216 | #define DMUS_SYNTHSTATS_TOTAL_CPU 0x02 |
| 217 | #define DMUS_SYNTHSTATS_CPU_PER_VOICE 0x04 |
| 218 | #define DMUS_SYNTHSTATS_LOST_NOTES 0x08 |
| 219 | #define DMUS_SYNTHSTATS_PEAK_VOLUME 0x10 |
| 220 | #define DMUS_SYNTHSTATS_FREE_MEMORY 0x20 |
| 221 | #define DMUS_SYNTHSTATS_SYSTEMMEMORY DMUS_PC_SYSTEMMEMORY |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 222 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 223 | #define DSBUSID_FIRST_SPKR_LOC 0x00000000 |
| 224 | #define DSBUSID_FRONT_LEFT 0x00000000 |
| 225 | #define DSBUSID_LEFT 0x00000000 |
| 226 | #define DSBUSID_FRONT_RIGHT 0x00000001 |
| 227 | #define DSBUSID_RIGHT 0x00000001 |
| 228 | #define DSBUSID_FRONT_CENTER 0x00000002 |
| 229 | #define DSBUSID_LOW_FREQUENCY 0x00000003 |
| 230 | #define DSBUSID_BACK_LEFT 0x00000004 |
| 231 | #define DSBUSID_BACK_RIGHT 0x00000005 |
| 232 | #define DSBUSID_FRONT_LEFT_OF_CENTER 0x00000006 |
| 233 | #define DSBUSID_FRONT_RIGHT_OF_CENTER 0x00000007 |
| 234 | #define DSBUSID_BACK_CENTER 0x00000008 |
| 235 | #define DSBUSID_SIDE_LEFT 0x00000009 |
| 236 | #define DSBUSID_SIDE_RIGHT 0x0000000A |
| 237 | #define DSBUSID_TOP_CENTER 0x0000000B |
| 238 | #define DSBUSID_TOP_FRONT_LEFT 0x0000000C |
| 239 | #define DSBUSID_TOP_FRONT_CENTER 0x0000000D |
| 240 | #define DSBUSID_TOP_FRONT_RIGHT 0x0000000E |
| 241 | #define DSBUSID_TOP_BACK_LEFT 0x0000000F |
| 242 | #define DSBUSID_TOP_BACK_CENTER 0x00000010 |
| 243 | #define DSBUSID_TOP_BACK_RIGHT 0x011 |
| 244 | #define DSBUSID_LAST_SPKR_LOC 0x00000011 |
| 245 | #define DSBUSID_IS_SPKR_LOC(id) (((id) >= DSBUSID_FIRST_SPKR_LOC) && ((id) <= DSBUSID_LAST_SPKR_LOC)) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 246 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 247 | #define DSBUSID_REVERB_SEND 0x00000040 |
| 248 | #define DSBUSID_CHORUS_SEND 0x00000041 |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 249 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 250 | #define DSBUSID_DYNAMIC_0 0x00000200 |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 251 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 252 | #define DSBUSID_NULL 0xFFFFFFFF |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 253 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 254 | /***************************************************************************** |
| 255 | * Enumerations |
| 256 | */ |
| 257 | typedef enum { |
| 258 | DMUS_CLOCK_SYSTEM = 0x0, |
| 259 | DMUS_CLOCK_WAVE = 0x1 |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 260 | } DMUS_CLOCKTYPE; |
| 261 | |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 262 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 263 | /***************************************************************************** |
| 264 | * Structures |
| 265 | */ |
| 266 | /* typedef definitions */ |
| 267 | typedef struct _DMUS_BUFFERDESC DMUS_BUFFERDESC, *LPDMUS_BUFFERDESC; |
| 268 | typedef struct _DMUS_PORTCAPS DMUS_PORTCAPS, *LPDMUS_PORTCAPS; |
| 269 | typedef struct _DMUS_PORTPARAMS DMUS_PORTPARAMS7, *LPDMUS_PORTPARAMS7; |
| 270 | typedef struct _DMUS_PORTPARAMS8 DMUS_PORTPARAMS8, *LPDMUS_PORTPARAMS8; |
| 271 | typedef DMUS_PORTPARAMS8 DMUS_PORTPARAMS, *LPDMUS_PORTPARAMS; |
| 272 | typedef struct _DMUS_SYNTHSTATS DMUS_SYNTHSTATS, *LPDMUS_SYNTHSTATS; |
| 273 | typedef struct _DMUS_SYNTHSTATS8 DMUS_SYNTHSTATS8, *LPDMUS_SYNTHSTATS8; |
| 274 | typedef struct _DMUS_WAVES_REVERB_PARAMS DMUS_WAVES_REVERB_PARAMS, *LPDMUS_WAVES_REVERB_PARAMS; |
| 275 | typedef struct _DMUS_CLOCKINFO7 DMUS_CLOCKINFO7, *LPDMUS_CLOCKINFO7; |
| 276 | typedef struct _DMUS_CLOCKINFO8 DMUS_CLOCKINFO8, *LPDMUS_CLOCKINFO8; |
| 277 | typedef DMUS_CLOCKINFO8 DMUS_CLOCKINFO, *LPDMUS_CLOCKINFO; |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 278 | |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 279 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 280 | /* actual structures */ |
| 281 | struct _DMUS_BUFFERDESC { |
| 282 | DWORD dwSize; |
| 283 | DWORD dwFlags; |
| 284 | GUID guidBufferFormat; |
| 285 | DWORD cbBuffer; |
| 286 | } ; |
| 287 | |
| 288 | struct _DMUS_PORTCAPS { |
| 289 | DWORD dwSize; |
| 290 | DWORD dwFlags; |
| 291 | GUID guidPort; |
| 292 | DWORD dwClass; |
| 293 | DWORD dwType; |
| 294 | DWORD dwMemorySize; |
| 295 | DWORD dwMaxChannelGroups; |
| 296 | DWORD dwMaxVoices; |
| 297 | DWORD dwMaxAudioChannels; |
| 298 | DWORD dwEffectFlags; |
| 299 | WCHAR wszDescription[DMUS_MAX_DESCRIPTION]; |
| 300 | }; |
| 301 | |
| 302 | struct _DMUS_PORTPARAMS { |
| 303 | DWORD dwSize; |
| 304 | DWORD dwValidParams; |
| 305 | DWORD dwVoices; |
| 306 | DWORD dwChannelGroups; |
| 307 | DWORD dwAudioChannels; |
| 308 | DWORD dwSampleRate; |
| 309 | DWORD dwEffectFlags; |
| 310 | BOOL fShare; |
| 311 | }; |
| 312 | |
| 313 | struct _DMUS_PORTPARAMS8 { |
| 314 | DWORD dwSize; |
| 315 | DWORD dwValidParams; |
| 316 | DWORD dwVoices; |
| 317 | DWORD dwChannelGroups; |
| 318 | DWORD dwAudioChannels; |
| 319 | DWORD dwSampleRate; |
| 320 | DWORD dwEffectFlags; |
| 321 | BOOL fShare; |
| 322 | DWORD dwFeatures; |
| 323 | }; |
| 324 | |
| 325 | struct _DMUS_SYNTHSTATS { |
| 326 | DWORD dwSize; |
| 327 | DWORD dwValidStats; |
| 328 | DWORD dwVoices; |
| 329 | DWORD dwTotalCPU; |
| 330 | DWORD dwCPUPerVoice; |
| 331 | DWORD dwLostNotes; |
| 332 | DWORD dwFreeMemory; |
Michael Stefaniuc | ad2dfca | 2009-01-10 02:45:24 +0100 | [diff] [blame] | 333 | LONG lPeakVolume; |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 334 | }; |
| 335 | |
| 336 | struct _DMUS_SYNTHSTATS8 { |
| 337 | DWORD dwSize; |
| 338 | DWORD dwValidStats; |
| 339 | DWORD dwVoices; |
| 340 | DWORD dwTotalCPU; |
| 341 | DWORD dwCPUPerVoice; |
| 342 | DWORD dwLostNotes; |
| 343 | DWORD dwFreeMemory; |
Michael Stefaniuc | ad2dfca | 2009-01-10 02:45:24 +0100 | [diff] [blame] | 344 | LONG lPeakVolume; |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 345 | DWORD dwSynthMemUse; |
| 346 | }; |
| 347 | |
| 348 | struct _DMUS_WAVES_REVERB_PARAMS { |
| 349 | float fInGain; |
| 350 | float fReverbMix; |
| 351 | float fReverbTime; |
| 352 | float fHighFreqRTRatio; |
| 353 | }; |
| 354 | |
| 355 | struct _DMUS_CLOCKINFO7 { |
| 356 | DWORD dwSize; |
| 357 | DMUS_CLOCKTYPE ctType; |
| 358 | GUID guidClock; |
| 359 | WCHAR wszDescription[DMUS_MAX_DESCRIPTION]; |
| 360 | }; |
| 361 | |
| 362 | struct _DMUS_CLOCKINFO8 { |
| 363 | DWORD dwSize; |
| 364 | DMUS_CLOCKTYPE ctType; |
| 365 | GUID guidClock; |
| 366 | WCHAR wszDescription[DMUS_MAX_DESCRIPTION]; |
| 367 | DWORD dwFlags; |
| 368 | }; |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 369 | |
| 370 | |
| 371 | /***************************************************************************** |
| 372 | * IDirectMusic interface |
| 373 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 374 | #define INTERFACE IDirectMusic |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 375 | DECLARE_INTERFACE_(IDirectMusic,IUnknown) |
| 376 | { |
| 377 | /*** IUnknown methods ***/ |
| 378 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 379 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 380 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 381 | /*** IDirectMusic methods ***/ |
| 382 | STDMETHOD(EnumPort)(THIS_ DWORD dwIndex, LPDMUS_PORTCAPS pPortCaps) PURE; |
| 383 | STDMETHOD(CreateMusicBuffer)(THIS_ LPDMUS_BUFFERDESC pBufferDesc, LPDIRECTMUSICBUFFER **ppBuffer, LPUNKNOWN pUnkOuter) PURE; |
| 384 | STDMETHOD(CreatePort)(THIS_ REFCLSID rclsidPort, LPDMUS_PORTPARAMS pPortParams, LPDIRECTMUSICPORT *ppPort, LPUNKNOWN pUnkOuter) PURE; |
| 385 | STDMETHOD(EnumMasterClock)(THIS_ DWORD dwIndex, LPDMUS_CLOCKINFO lpClockInfo) PURE; |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 386 | STDMETHOD(GetMasterClock)(THIS_ LPGUID pguidClock, struct IReferenceClock **ppReferenceClock) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 387 | STDMETHOD(SetMasterClock)(THIS_ REFGUID rguidClock) PURE; |
| 388 | STDMETHOD(Activate)(THIS_ BOOL fEnable) PURE; |
| 389 | STDMETHOD(GetDefaultPort)(THIS_ LPGUID pguidPort) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 390 | STDMETHOD(SetDirectSound)(THIS_ LPDIRECTSOUND pDirectSound, HWND hWnd) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 391 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 392 | #undef INTERFACE |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 393 | |
Francois Gouget | 52ecbf7 | 2004-10-04 19:35:40 +0000 | [diff] [blame] | 394 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 395 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 396 | #define IDirectMusic_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 397 | #define IDirectMusic_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 398 | #define IDirectMusic_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 399 | /*** IDirectMusic methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 400 | #define IDirectMusic_EnumPort(p,a,b) (p)->lpVtbl->EnumPort(p,a,b) |
| 401 | #define IDirectMusic_CreateMusicBuffer(p,a,b,c) (p)->lpVtbl->CreateMusicBuffer(p,a,b,c) |
| 402 | #define IDirectMusic_CreatePort(p,a,b,c,d) (p)->lpVtbl->CreatePort(p,a,b,c,d) |
| 403 | #define IDirectMusic_EnumMasterClock(p,a,b) (p)->lpVtbl->EnumMasterClock(p,a,b) |
| 404 | #define IDirectMusic_GetMasterClock(p,a,b) (p)->lpVtbl->GetMasterClock(p,a,b) |
| 405 | #define IDirectMusic_SetMasterClock(p,a) (p)->lpVtbl->SetMasterClock(p,a) |
| 406 | #define IDirectMusic_Activate(p,a) (p)->lpVtbl->Activate(p,a) |
| 407 | #define IDirectMusic_GetDefaultPort(p,a) (p)->lpVtbl->GetDefaultPort(p,a) |
| 408 | #define IDirectMusic_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 409 | #endif |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 410 | |
| 411 | |
| 412 | /***************************************************************************** |
| 413 | * IDirectMusic8 interface |
| 414 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 415 | #define INTERFACE IDirectMusic8 |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 416 | DECLARE_INTERFACE_(IDirectMusic8,IDirectMusic) |
| 417 | { |
| 418 | /*** IUnknown methods ***/ |
| 419 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 420 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 421 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 422 | /*** IDirectMusic methods ***/ |
| 423 | STDMETHOD(EnumPort)(THIS_ DWORD dwIndex, LPDMUS_PORTCAPS pPortCaps) PURE; |
| 424 | STDMETHOD(CreateMusicBuffer)(THIS_ LPDMUS_BUFFERDESC pBufferDesc, LPDIRECTMUSICBUFFER **ppBuffer, LPUNKNOWN pUnkOuter) PURE; |
| 425 | STDMETHOD(CreatePort)(THIS_ REFCLSID rclsidPort, LPDMUS_PORTPARAMS pPortParams, LPDIRECTMUSICPORT *ppPort, LPUNKNOWN pUnkOuter) PURE; |
| 426 | STDMETHOD(EnumMasterClock)(THIS_ DWORD dwIndex, LPDMUS_CLOCKINFO lpClockInfo) PURE; |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 427 | STDMETHOD(GetMasterClock)(THIS_ LPGUID pguidClock, struct IReferenceClock **ppReferenceClock) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 428 | STDMETHOD(SetMasterClock)(THIS_ REFGUID rguidClock) PURE; |
| 429 | STDMETHOD(Activate)(THIS_ BOOL fEnable) PURE; |
| 430 | STDMETHOD(GetDefaultPort)(THIS_ LPGUID pguidPort) PURE; |
| 431 | STDMETHOD(SetDirectSound)(THIS_ LPDIRECTSOUND pDirectSound, HWND hWnd) PURE; |
| 432 | /*** IDirectMusic8 methods ***/ |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 433 | STDMETHOD(SetExternalMasterClock)(THIS_ struct IReferenceClock *pClock) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 434 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 435 | #undef INTERFACE |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 436 | |
Francois Gouget | 52ecbf7 | 2004-10-04 19:35:40 +0000 | [diff] [blame] | 437 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 438 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 439 | #define IDirectMusic8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 440 | #define IDirectMusic8_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 441 | #define IDirectMusic8_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 442 | /*** IDirectMusic methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 443 | #define IDirectMusic8_EnumPort(p,a,b) (p)->lpVtbl->EnumPort(p,a,b) |
| 444 | #define IDirectMusic8_CreateMusicBuffer(p,a,b,c) (p)->lpVtbl->CreateMusicBuffer(p,a,b,c) |
| 445 | #define IDirectMusic8_CreatePort(p,a,b,c,d) (p)->lpVtbl->CreatePort(p,a,b,c,d) |
| 446 | #define IDirectMusic8_EnumMasterClock(p,a,b) (p)->lpVtbl->EnumMasterClock(p,a,b) |
| 447 | #define IDirectMusic8_GetMasterClock(p,a,b) (p)->lpVtbl->GetMasterClock(p,a,b) |
| 448 | #define IDirectMusic8_SetMasterClock(p,a) (p)->lpVtbl->SetMasterClock(p,a) |
| 449 | #define IDirectMusic8_Activate(p,a) (p)->lpVtbl->Activate(p,a) |
| 450 | #define IDirectMusic8_GetDefaultPort(p,a) (p)->lpVtbl->GetDefaultPort(p,a) |
| 451 | #define IDirectMusic8_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 452 | /*** IDirectMusic8 methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 453 | #define IDirectMusic8_SetExternalMasterClock(p,a) (p)->lpVtbl->SetExternalMasterClock(p,a) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 454 | #endif |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 455 | |
| 456 | |
| 457 | /***************************************************************************** |
| 458 | * IDirectMusicBuffer interface |
| 459 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 460 | #define INTERFACE IDirectMusicBuffer |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 461 | DECLARE_INTERFACE_(IDirectMusicBuffer,IUnknown) |
| 462 | { |
| 463 | /*** IUnknown methods ***/ |
| 464 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 465 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 466 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 467 | /*** IDirectMusicBuffer methods ***/ |
| 468 | STDMETHOD(Flush)(THIS) PURE; |
| 469 | STDMETHOD(TotalTime)(THIS_ LPREFERENCE_TIME prtTime) PURE; |
| 470 | STDMETHOD(PackStructured)(THIS_ REFERENCE_TIME rt, DWORD dwChannelGroup, DWORD dwChannelMessage) PURE; |
| 471 | STDMETHOD(PackUnstructured)(THIS_ REFERENCE_TIME rt, DWORD dwChannelGroup, DWORD cb, LPBYTE lpb) PURE; |
| 472 | STDMETHOD(ResetReadPtr)(THIS) PURE; |
| 473 | STDMETHOD(GetNextEvent)(THIS_ LPREFERENCE_TIME prt, LPDWORD pdwChannelGroup, LPDWORD pdwLength, LPBYTE *ppData) PURE; |
| 474 | STDMETHOD(GetRawBufferPtr)(THIS_ LPBYTE *ppData) PURE; |
| 475 | STDMETHOD(GetStartTime)(THIS_ LPREFERENCE_TIME prt) PURE; |
| 476 | STDMETHOD(GetUsedBytes)(THIS_ LPDWORD pcb) PURE; |
| 477 | STDMETHOD(GetMaxBytes)(THIS_ LPDWORD pcb) PURE; |
| 478 | STDMETHOD(GetBufferFormat)(THIS_ LPGUID pGuidFormat) PURE; |
| 479 | STDMETHOD(SetStartTime)(THIS_ REFERENCE_TIME rt) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 480 | STDMETHOD(SetUsedBytes)(THIS_ DWORD cb) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 481 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 482 | #undef INTERFACE |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 483 | |
Francois Gouget | 52ecbf7 | 2004-10-04 19:35:40 +0000 | [diff] [blame] | 484 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 485 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 486 | #define IDirectMusicBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 487 | #define IDirectMusicBuffer_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 488 | #define IDirectMusicBuffer_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 489 | /*** IDirectMusicBuffer methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 490 | #define IDirectMusicBuffer_Flush(p) (p)->lpVtbl->Flush(p) |
| 491 | #define IDirectMusicBuffer_TotalTime(p,a) (p)->lpVtbl->TotalTime(p,a) |
| 492 | #define IDirectMusicBuffer_PackStructured(p,a,b,c) (p)->lpVtbl->PackStructured(p,a,b,c) |
| 493 | #define IDirectMusicBuffer_PackUnstructured(p,a,b,c,d) (p)->lpVtbl->PackUnstructured(p,a,b,c,d) |
| 494 | #define IDirectMusicBuffer_ResetReadPtr(p) (p)->lpVtbl->ResetReadPtr(p) |
| 495 | #define IDirectMusicBuffer_GetNextEvent(p,a,b,c,d) (p)->lpVtbl->GetNextEvent(p,a,b,c,d) |
| 496 | #define IDirectMusicBuffer_GetRawBufferPtr(p,a) (p)->lpVtbl->GetRawBufferPtr(p,a) |
| 497 | #define IDirectMusicBuffer_GetStartTime(p,a) (p)->lpVtbl->GetStartTime(p,a) |
| 498 | #define IDirectMusicBuffer_GetUsedBytes(p,a) (p)->lpVtbl->GetUsedBytes(p,a) |
| 499 | #define IDirectMusicBuffer_GetMaxBytes(p,a) (p)->lpVtbl->GetMaxBytes(p,a) |
| 500 | #define IDirectMusicBuffer_GetBufferFormat(p,a) (p)->lpVtbl->GetBufferFormat(p,a) |
| 501 | #define IDirectMusicBuffer_SetStartTime(p,a) (p)->lpVtbl->SetStartTime(p,a) |
| 502 | #define IDirectMusicBuffer_SetUsedBytes(p,a) (p)->lpVtbl->SetUsedBytes(p,a) |
| 503 | #endif |
| 504 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 505 | |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 506 | /***************************************************************************** |
| 507 | * IDirectMusicInstrument interface |
| 508 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 509 | #define INTERFACE IDirectMusicInstrument |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 510 | DECLARE_INTERFACE_(IDirectMusicInstrument,IUnknown) |
| 511 | { |
| 512 | /*** IUnknown methods ***/ |
| 513 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 514 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 515 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 516 | /*** IDirectMusicInstrument methods ***/ |
| 517 | STDMETHOD(GetPatch)(THIS_ DWORD *pdwPatch) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 518 | STDMETHOD(SetPatch)(THIS_ DWORD dwPatch) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 519 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 520 | #undef INTERFACE |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 521 | |
Francois Gouget | 52ecbf7 | 2004-10-04 19:35:40 +0000 | [diff] [blame] | 522 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 523 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 524 | #define IDirectMusicInstrument_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 525 | #define IDirectMusicInstrument_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 526 | #define IDirectMusicInstrument_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 527 | /*** IDirectMusicInstrument methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 528 | #define IDirectMusicInstrument_GetPatch(p,a) (p)->lpVtbl->GetPatch(p,a) |
| 529 | #define IDirectMusicInstrument_SetPatch(p,a) (p)->lpVtbl->SetPatch(p,a) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 530 | #endif |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 531 | |
| 532 | |
| 533 | /***************************************************************************** |
| 534 | * IDirectMusicDownloadedInstrument interface |
| 535 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 536 | #define INTERFACE IDirectMusicDownloadedInstrument |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 537 | DECLARE_INTERFACE_(IDirectMusicDownloadedInstrument,IUnknown) |
| 538 | { |
| 539 | /*** IUnknown methods ***/ |
| 540 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 541 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 542 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
Alexandre Julliard | aae3cb6 | 2003-04-11 00:31:02 +0000 | [diff] [blame] | 543 | /* no IDirectMusicDownloadedInstrument methods at this time */ |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 544 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 545 | #undef INTERFACE |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 546 | |
Francois Gouget | 52ecbf7 | 2004-10-04 19:35:40 +0000 | [diff] [blame] | 547 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 548 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 549 | #define IDirectMusicDownloadedInstrument_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 550 | #define IDirectMusicDownloadedInstrument_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 551 | #define IDirectMusicDownloadedInstrument_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 552 | /*** IDirectMusicDownloadedInstrument methods ***/ |
| 553 | /* none at this time */ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 554 | #endif |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 555 | |
| 556 | |
| 557 | /***************************************************************************** |
| 558 | * IDirectMusicCollection interface |
| 559 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 560 | #define INTERFACE IDirectMusicCollection |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 561 | DECLARE_INTERFACE_(IDirectMusicCollection,IUnknown) |
| 562 | { |
| 563 | /*** IUnknown methods ***/ |
| 564 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 565 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 566 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 567 | /*** IDirectMusicCollection methods ***/ |
| 568 | STDMETHOD(GetInstrument)(THIS_ DWORD dwPatch, IDirectMusicInstrument **ppInstrument) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 569 | STDMETHOD(EnumInstrument)(THIS_ DWORD dwIndex, DWORD *pdwPatch, LPWSTR pwszName, DWORD dwNameLen) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 570 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 571 | #undef INTERFACE |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 572 | |
Francois Gouget | 52ecbf7 | 2004-10-04 19:35:40 +0000 | [diff] [blame] | 573 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 574 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 575 | #define IDirectMusicCollection_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 576 | #define IDirectMusicCollection_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 577 | #define IDirectMusicCollection_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 578 | /*** IDirectMusicCollection methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 579 | #define IDirectMusicCollection_GetInstrument(p,a,b) (p)->lpVtbl->GetInstrument(p,a,b) |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 580 | #define IDirectMusicCollection_EnumInstrument(p,a,b,c,d) (p)->lpVtbl->EnumInstrument(p,a,b,c,d) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 581 | #endif |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 582 | |
| 583 | |
| 584 | /***************************************************************************** |
| 585 | * IDirectMusicDownload interface |
| 586 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 587 | #define INTERFACE IDirectMusicDownload |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 588 | DECLARE_INTERFACE_(IDirectMusicDownload,IUnknown) |
| 589 | { |
| 590 | /*** IUnknown methods ***/ |
| 591 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 592 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 593 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 594 | /*** IDirectMusicDownload methods ***/ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 595 | STDMETHOD(GetBuffer)(THIS_ void **ppvBuffer, DWORD *pdwSize) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 596 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 597 | #undef INTERFACE |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 598 | |
Francois Gouget | 52ecbf7 | 2004-10-04 19:35:40 +0000 | [diff] [blame] | 599 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 600 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 601 | #define IDirectMusicDownload_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 602 | #define IDirectMusicDownload_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 603 | #define IDirectMusicDownload_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 604 | /*** IDirectMusicDownload methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 605 | #define IDirectMusicDownload_GetBuffer(p,a,b) (p)->lpVtbl->GetBuffer(p,a,b) |
| 606 | #endif |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 607 | |
| 608 | |
| 609 | /***************************************************************************** |
| 610 | * IDirectMusicPortDownload interface |
| 611 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 612 | #define INTERFACE IDirectMusicPortDownload |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 613 | DECLARE_INTERFACE_(IDirectMusicPortDownload,IUnknown) |
| 614 | { |
| 615 | /*** IUnknown methods ***/ |
| 616 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 617 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 618 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 619 | /*** IDirectMusicPortDownload methods ***/ |
| 620 | STDMETHOD(GetBuffer)(THIS_ DWORD dwDLId, IDirectMusicDownload **ppIDMDownload) PURE; |
| 621 | STDMETHOD(AllocateBuffer)(THIS_ DWORD dwSize, IDirectMusicDownload **ppIDMDownload) PURE; |
| 622 | STDMETHOD(GetDLId)(THIS_ DWORD *pdwStartDLId, DWORD dwCount) PURE; |
| 623 | STDMETHOD(GetAppend)(THIS_ DWORD *pdwAppend) PURE; |
| 624 | STDMETHOD(Download)(THIS_ IDirectMusicDownload *pIDMDownload) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 625 | STDMETHOD(Unload)(THIS_ IDirectMusicDownload *pIDMDownload) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 626 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 627 | #undef INTERFACE |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 628 | |
Francois Gouget | 52ecbf7 | 2004-10-04 19:35:40 +0000 | [diff] [blame] | 629 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 630 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 631 | #define IDirectMusicPortDownload_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 632 | #define IDirectMusicPortDownload_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 633 | #define IDirectMusicPortDownload_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 634 | /*** IDirectMusicPortDownload methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 635 | #define IDirectMusicPortDownload_GetBuffer(p,a,b) (p)->lpVtbl->GetBuffer(p,a,b) |
| 636 | #define IDirectMusicPortDownload_AllocateBuffer(p,a,b) (p)->lpVtbl->AllocateBuffer(p,a,b) |
| 637 | #define IDirectMusicPortDownload_GetDLId(p,a,b) (p)->lpVtbl->GetDLId(p,a,b) |
| 638 | #define IDirectMusicPortDownload_GetAppend(p,a) (p)->lpVtbl->GetAppend(p,a) |
| 639 | #define IDirectMusicPortDownload_Download(p,a) (p)->lpVtbl->Download(p,a) |
| 640 | #define IDirectMusicPortDownload_Unload(p,a) (p)->lpVtbl->GetBuffer(p,a) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 641 | #endif |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 642 | |
| 643 | |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 644 | /***************************************************************************** |
| 645 | * IDirectMusicPort interface |
| 646 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 647 | #define INTERFACE IDirectMusicPort |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 648 | DECLARE_INTERFACE_(IDirectMusicPort,IUnknown) |
| 649 | { |
| 650 | /*** IUnknown methods ***/ |
| 651 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 652 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 653 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 654 | /*** IDirectMusicPort methods ***/ |
| 655 | STDMETHOD(PlayBuffer)(THIS_ LPDIRECTMUSICBUFFER pBuffer) PURE; |
| 656 | STDMETHOD(SetReadNotificationHandle)(THIS_ HANDLE hEvent) PURE; |
| 657 | STDMETHOD(Read)(THIS_ LPDIRECTMUSICBUFFER pBuffer) PURE; |
| 658 | STDMETHOD(DownloadInstrument)(THIS_ IDirectMusicInstrument *pInstrument, IDirectMusicDownloadedInstrument **ppDownloadedInstrument, DMUS_NOTERANGE *pNoteRanges, DWORD dwNumNoteRanges) PURE; |
| 659 | STDMETHOD(UnloadInstrument)(THIS_ IDirectMusicDownloadedInstrument *pDownloadedInstrument) PURE; |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 660 | STDMETHOD(GetLatencyClock)(THIS_ struct IReferenceClock **ppClock) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 661 | STDMETHOD(GetRunningStats)(THIS_ LPDMUS_SYNTHSTATS pStats) PURE; |
| 662 | STDMETHOD(Compact)(THIS) PURE; |
| 663 | STDMETHOD(GetCaps)(THIS_ LPDMUS_PORTCAPS pPortCaps) PURE; |
| 664 | STDMETHOD(DeviceIoControl)(THIS_ DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped) PURE; |
| 665 | STDMETHOD(SetNumChannelGroups)(THIS_ DWORD dwChannelGroups) PURE; |
| 666 | STDMETHOD(GetNumChannelGroups)(THIS_ LPDWORD pdwChannelGroups) PURE; |
| 667 | STDMETHOD(Activate)(THIS_ BOOL fActive) PURE; |
| 668 | STDMETHOD(SetChannelPriority)(THIS_ DWORD dwChannelGroup, DWORD dwChannel, DWORD dwPriority) PURE; |
| 669 | STDMETHOD(GetChannelPriority)(THIS_ DWORD dwChannelGroup, DWORD dwChannel, LPDWORD pdwPriority) PURE; |
| 670 | STDMETHOD(SetDirectSound)(THIS_ LPDIRECTSOUND pDirectSound, LPDIRECTSOUNDBUFFER pDirectSoundBuffer) PURE; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 671 | STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX pWaveFormatEx, LPDWORD pdwWaveFormatExSize, LPDWORD pdwBufferSize) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 672 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 673 | #undef INTERFACE |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 674 | |
Francois Gouget | 52ecbf7 | 2004-10-04 19:35:40 +0000 | [diff] [blame] | 675 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 676 | /*** IUnknown methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 677 | #define IDirectMusicPort_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 678 | #define IDirectMusicPort_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 679 | #define IDirectMusicPort_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 680 | /*** IDirectMusicPort methods ***/ |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 681 | #define IDirectMusicPort_PlayBuffer(p,a) (p)->lpVtbl->PlayBuffer(p,a) |
| 682 | #define IDirectMusicPort_SetReadNotificationHandle(p,a) (p)->lpVtbl->SetReadNotificationHandle(p,a) |
| 683 | #define IDirectMusicPort_Read(p,a) (p)->lpVtbl->Read(p,a) |
| 684 | #define IDirectMusicPort_DownloadInstrument(p,a,b,c,d) (p)->lpVtbl->DownloadInstrument(p,a,b,c,d) |
| 685 | #define IDirectMusicPort_UnloadInstrument(p,a) (p)->lpVtbl->UnloadInstrument(p,a) |
| 686 | #define IDirectMusicPort_GetLatencyClock(p,a) (p)->lpVtbl->GetLatencyClock(p,a) |
| 687 | #define IDirectMusicPort_GetRunningStats(p,a) (p)->lpVtbl->GetRunningStats(p,a) |
| 688 | #define IDirectMusicPort_Compact(p) (p)->lpVtbl->Compact(p) |
| 689 | #define IDirectMusicPort_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) |
| 690 | #define IDirectMusicPort_DeviceIoControl(p,a,b,c,d,e,f,g) (p)->lpVtbl->DeviceIoControl(p,a,b,c,d,e,f,g) |
| 691 | #define IDirectMusicPort_SetNumChannelGroups(p,a) (p)->lpVtbl->SetNumChannelGroups(p,a) |
| 692 | #define IDirectMusicPort_GetNumChannelGroups(p,a) (p)->lpVtbl->GetNumChannelGroups(p,a) |
| 693 | #define IDirectMusicPort_Activate(p,a) (p)->lpVtbl->Activate(p,a) |
| 694 | #define IDirectMusicPort_SetChannelPriority(p,a,b,c) (p)->lpVtbl->SetChannelPriority(p,a,b,c) |
| 695 | #define IDirectMusicPort_GetChannelPriority(p,a,b,c) (p)->lpVtbl->GetChannelPriority(p,a,b,c) |
| 696 | #define IDirectMusicPort_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b) |
| 697 | #define IDirectMusicPort_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c) |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 698 | #endif |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 699 | |
| 700 | |
| 701 | /***************************************************************************** |
| 702 | * IDirectMusicThru interface |
| 703 | */ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 704 | #define INTERFACE IDirectMusicThru |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 705 | DECLARE_INTERFACE_(IDirectMusicThru,IUnknown) |
| 706 | { |
| 707 | /*** IUnknown methods ***/ |
| 708 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 709 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 710 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 711 | /*** IDirectMusicThru methods ***/ |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 712 | STDMETHOD(ThruChannel)(THIS_ DWORD dwSourceChannelGroup, DWORD dwSourceChannel, DWORD dwDestinationChannelGroup, DWORD dwDestinationChannel, LPDIRECTMUSICPORT pDestinationPort) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 713 | }; |
Alexandre Julliard | f00c46f | 2003-04-10 00:19:24 +0000 | [diff] [blame] | 714 | #undef INTERFACE |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 715 | |
Francois Gouget | 52ecbf7 | 2004-10-04 19:35:40 +0000 | [diff] [blame] | 716 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 717 | /*** IUnknown methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 718 | #define IDirectMusicThru_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 719 | #define IDirectMusicThru_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 720 | #define IDirectMusicThru_Release(p) (p)->lpVtbl->Release(p) |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 721 | /*** IDirectMusicThru methods ***/ |
Alexandre Julliard | 5537911 | 2003-04-10 21:13:58 +0000 | [diff] [blame] | 722 | #define IDirectMusicThru_ThruChannel(p,a,b,c,d,e) (p)->lpVtbl->ThruChannel(p,a,b,c,d,e) |
| 723 | #endif |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 724 | |
| 725 | |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 726 | #ifndef __IReferenceClock_INTERFACE_DEFINED__ |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 727 | #define __IReferenceClock_INTERFACE_DEFINED__ |
| 728 | DEFINE_GUID(IID_IReferenceClock,0x56a86897,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); |
| 729 | |
| 730 | /***************************************************************************** |
| 731 | * IReferenceClock interface |
| 732 | */ |
| 733 | #define INTERFACE IReferenceClock |
| 734 | DECLARE_INTERFACE_(IReferenceClock,IUnknown) |
| 735 | { |
| 736 | /*** IUnknown methods ***/ |
| 737 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 738 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 739 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 740 | /*** IReferenceClock methods ***/ |
| 741 | STDMETHOD(GetTime)(THIS_ REFERENCE_TIME *pTime) PURE; |
| 742 | STDMETHOD(AdviseTime)(THIS_ REFERENCE_TIME baseTime, REFERENCE_TIME streamTime, HANDLE hEvent, DWORD *pdwAdviseCookie) PURE; |
| 743 | STDMETHOD(AdvisePeriodic)(THIS_ REFERENCE_TIME startTime, REFERENCE_TIME periodTime, HANDLE hSemaphore, DWORD *pdwAdviseCookie) PURE; |
| 744 | STDMETHOD(Unadvise)(THIS_ DWORD dwAdviseCookie) PURE; |
| 745 | }; |
| 746 | #undef INTERFACE |
| 747 | |
| 748 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 749 | /*** IUnknown methods ***/ |
| 750 | #define IReferenceClock_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 751 | #define IReferenceClock_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 752 | #define IReferenceClock_Release(p) (p)->lpVtbl->Release(p) |
| 753 | /*** IReferenceClock methods ***/ |
| 754 | #define IReferenceClock_GetTime(p,a) (p)->lpVtbl->GetTime(p,a) |
| 755 | #define IReferenceClock_AdviseTime(p,a,b,c,d) (p)->lpVtbl->AdviseTime(p,a,b,c,d) |
| 756 | #define IReferenceClock_AdvisePeriodic(p,a,b,c,d) (p)->lpVtbl->AdvisePeriodic(p,a,b,c,d) |
| 757 | #define IReferenceClock_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a) |
| 758 | #endif |
| 759 | |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 760 | #endif /* __IReferenceClock_INTERFACE_DEFINED__ */ |
| 761 | |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 762 | #ifdef __cplusplus |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 763 | } |
| 764 | #endif |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 765 | |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 766 | #include <poppack.h> |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 767 | |
| 768 | #endif /* __WINE_DMUSIC_CORE_H */ |