23
23
WINE_DEFAULT_DEBUG_CHANNEL (dmband );
24
24
WINE_DECLARE_DEBUG_CHANNEL (dmfile );
25
25
26
-
27
- /*****************************************************************************
28
- * IDirectMusicBandImpl implementation
29
- */
30
- typedef struct IDirectMusicBandImpl {
26
+ struct band
27
+ {
31
28
IDirectMusicBand IDirectMusicBand_iface ;
32
29
struct dmobject dmobj ;
33
30
LONG ref ;
34
31
struct list Instruments ;
35
- } IDirectMusicBandImpl ;
32
+ };
36
33
37
- static inline IDirectMusicBandImpl * impl_from_IDirectMusicBand (IDirectMusicBand * iface )
34
+ static inline struct band * impl_from_IDirectMusicBand (IDirectMusicBand * iface )
38
35
{
39
- return CONTAINING_RECORD (iface , IDirectMusicBandImpl , IDirectMusicBand_iface );
36
+ return CONTAINING_RECORD (iface , struct band , IDirectMusicBand_iface );
40
37
}
41
38
42
39
static HRESULT WINAPI band_QueryInterface (IDirectMusicBand * iface , REFIID riid ,
43
40
void * * ret_iface )
44
41
{
45
- IDirectMusicBandImpl * This = impl_from_IDirectMusicBand (iface );
42
+ struct band * This = impl_from_IDirectMusicBand (iface );
46
43
47
44
TRACE ("(%p, %s, %p)\n" , This , debugstr_dmguid (riid ), ret_iface );
48
45
@@ -65,7 +62,7 @@ static HRESULT WINAPI band_QueryInterface(IDirectMusicBand *iface, REFIID riid,
65
62
66
63
static ULONG WINAPI band_AddRef (IDirectMusicBand * iface )
67
64
{
68
- IDirectMusicBandImpl * This = impl_from_IDirectMusicBand (iface );
65
+ struct band * This = impl_from_IDirectMusicBand (iface );
69
66
LONG ref = InterlockedIncrement (& This -> ref );
70
67
71
68
TRACE ("(%p) ref=%ld\n" , This , ref );
@@ -75,7 +72,7 @@ static ULONG WINAPI band_AddRef(IDirectMusicBand *iface)
75
72
76
73
static ULONG WINAPI band_Release (IDirectMusicBand * iface )
77
74
{
78
- IDirectMusicBandImpl * This = impl_from_IDirectMusicBand (iface );
75
+ struct band * This = impl_from_IDirectMusicBand (iface );
79
76
LONG ref = InterlockedDecrement (& This -> ref );
80
77
81
78
TRACE ("(%p) ref=%ld\n" , This , ref );
@@ -88,7 +85,7 @@ static ULONG WINAPI band_Release(IDirectMusicBand *iface)
88
85
static HRESULT WINAPI band_CreateSegment (IDirectMusicBand * iface ,
89
86
IDirectMusicSegment * * segment )
90
87
{
91
- IDirectMusicBandImpl * This = impl_from_IDirectMusicBand (iface );
88
+ struct band * This = impl_from_IDirectMusicBand (iface );
92
89
HRESULT hr ;
93
90
DMUS_BAND_PARAM bandparam ;
94
91
@@ -112,15 +109,15 @@ static HRESULT WINAPI band_CreateSegment(IDirectMusicBand *iface,
112
109
static HRESULT WINAPI band_Download (IDirectMusicBand * iface ,
113
110
IDirectMusicPerformance * pPerformance )
114
111
{
115
- IDirectMusicBandImpl * This = impl_from_IDirectMusicBand (iface );
112
+ struct band * This = impl_from_IDirectMusicBand (iface );
116
113
FIXME ("(%p, %p): stub\n" , This , pPerformance );
117
114
return S_OK ;
118
115
}
119
116
120
117
static HRESULT WINAPI band_Unload (IDirectMusicBand * iface ,
121
118
IDirectMusicPerformance * pPerformance )
122
119
{
123
- IDirectMusicBandImpl * This = impl_from_IDirectMusicBand (iface );
120
+ struct band * This = impl_from_IDirectMusicBand (iface );
124
121
FIXME ("(%p, %p): stub\n" , This , pPerformance );
125
122
return S_OK ;
126
123
}
@@ -186,7 +183,7 @@ static const IDirectMusicObjectVtbl band_object_vtbl =
186
183
187
184
#define DMUS_IO_INSTRUMENT_DX7_SIZE offsetof(DMUS_IO_INSTRUMENT, nPitchBendRange)
188
185
189
- static HRESULT parse_instrument (IDirectMusicBandImpl * This , DMUS_PRIVATE_CHUNK * pChunk ,
186
+ static HRESULT parse_instrument (struct band * This , DMUS_PRIVATE_CHUNK * pChunk ,
190
187
IStream * pStm )
191
188
{
192
189
DMUS_PRIVATE_CHUNK Chunk ;
@@ -293,7 +290,7 @@ static HRESULT parse_instrument(IDirectMusicBandImpl *This, DMUS_PRIVATE_CHUNK *
293
290
return S_OK ;
294
291
}
295
292
296
- static HRESULT parse_instruments_list (IDirectMusicBandImpl * This , DMUS_PRIVATE_CHUNK * pChunk ,
293
+ static HRESULT parse_instruments_list (struct band * This , DMUS_PRIVATE_CHUNK * pChunk ,
297
294
IStream * pStm )
298
295
{
299
296
HRESULT hr ;
@@ -348,7 +345,7 @@ static HRESULT parse_instruments_list(IDirectMusicBandImpl *This, DMUS_PRIVATE_C
348
345
return S_OK ;
349
346
}
350
347
351
- static HRESULT parse_band_form (IDirectMusicBandImpl * This , DMUS_PRIVATE_CHUNK * pChunk ,
348
+ static HRESULT parse_band_form (struct band * This , DMUS_PRIVATE_CHUNK * pChunk ,
352
349
IStream * pStm )
353
350
{
354
351
HRESULT hr = E_FAIL ;
@@ -441,14 +438,14 @@ static HRESULT parse_band_form(IDirectMusicBandImpl *This, DMUS_PRIVATE_CHUNK *p
441
438
return S_OK ;
442
439
}
443
440
444
- static inline IDirectMusicBandImpl * impl_from_IPersistStream (IPersistStream * iface )
441
+ static inline struct band * impl_from_IPersistStream (IPersistStream * iface )
445
442
{
446
- return CONTAINING_RECORD (iface , IDirectMusicBandImpl , dmobj .IPersistStream_iface );
443
+ return CONTAINING_RECORD (iface , struct band , dmobj .IPersistStream_iface );
447
444
}
448
445
449
446
static HRESULT WINAPI band_persist_stream_Load (IPersistStream * iface , IStream * pStm )
450
447
{
451
- IDirectMusicBandImpl * This = impl_from_IPersistStream (iface );
448
+ struct band * This = impl_from_IPersistStream (iface );
452
449
DMUS_PRIVATE_CHUNK Chunk ;
453
450
LARGE_INTEGER liMove ;
454
451
HRESULT hr ;
@@ -503,7 +500,7 @@ static const IPersistStreamVtbl band_persist_stream_vtbl =
503
500
504
501
HRESULT create_dmband (REFIID lpcGUID , void * * ppobj )
505
502
{
506
- IDirectMusicBandImpl * obj ;
503
+ struct band * obj ;
507
504
HRESULT hr ;
508
505
509
506
* ppobj = NULL ;
0 commit comments