@@ -39,8 +39,7 @@ static inline IDirectMusicBandImpl *impl_from_IDirectMusicBand(IDirectMusicBand
39
39
return CONTAINING_RECORD (iface , IDirectMusicBandImpl , IDirectMusicBand_iface );
40
40
}
41
41
42
- /* DirectMusicBandImpl IDirectMusicBand part: */
43
- static HRESULT WINAPI IDirectMusicBandImpl_QueryInterface (IDirectMusicBand * iface , REFIID riid ,
42
+ static HRESULT WINAPI band_QueryInterface (IDirectMusicBand * iface , REFIID riid ,
44
43
void * * ret_iface )
45
44
{
46
45
IDirectMusicBandImpl * This = impl_from_IDirectMusicBand (iface );
@@ -64,7 +63,7 @@ static HRESULT WINAPI IDirectMusicBandImpl_QueryInterface(IDirectMusicBand *ifac
64
63
return S_OK ;
65
64
}
66
65
67
- static ULONG WINAPI IDirectMusicBandImpl_AddRef (IDirectMusicBand * iface )
66
+ static ULONG WINAPI band_AddRef (IDirectMusicBand * iface )
68
67
{
69
68
IDirectMusicBandImpl * This = impl_from_IDirectMusicBand (iface );
70
69
LONG ref = InterlockedIncrement (& This -> ref );
@@ -74,7 +73,7 @@ static ULONG WINAPI IDirectMusicBandImpl_AddRef(IDirectMusicBand *iface)
74
73
return ref ;
75
74
}
76
75
77
- static ULONG WINAPI IDirectMusicBandImpl_Release (IDirectMusicBand * iface )
76
+ static ULONG WINAPI band_Release (IDirectMusicBand * iface )
78
77
{
79
78
IDirectMusicBandImpl * This = impl_from_IDirectMusicBand (iface );
80
79
LONG ref = InterlockedDecrement (& This -> ref );
@@ -86,7 +85,7 @@ static ULONG WINAPI IDirectMusicBandImpl_Release(IDirectMusicBand *iface)
86
85
return ref ;
87
86
}
88
87
89
- static HRESULT WINAPI IDirectMusicBandImpl_CreateSegment (IDirectMusicBand * iface ,
88
+ static HRESULT WINAPI band_CreateSegment (IDirectMusicBand * iface ,
90
89
IDirectMusicSegment * * segment )
91
90
{
92
91
IDirectMusicBandImpl * This = impl_from_IDirectMusicBand (iface );
@@ -110,33 +109,33 @@ static HRESULT WINAPI IDirectMusicBandImpl_CreateSegment(IDirectMusicBand *iface
110
109
return hr ;
111
110
}
112
111
113
- static HRESULT WINAPI IDirectMusicBandImpl_Download (IDirectMusicBand * iface ,
112
+ static HRESULT WINAPI band_Download (IDirectMusicBand * iface ,
114
113
IDirectMusicPerformance * pPerformance )
115
114
{
116
115
IDirectMusicBandImpl * This = impl_from_IDirectMusicBand (iface );
117
116
FIXME ("(%p, %p): stub\n" , This , pPerformance );
118
117
return S_OK ;
119
118
}
120
119
121
- static HRESULT WINAPI IDirectMusicBandImpl_Unload (IDirectMusicBand * iface ,
120
+ static HRESULT WINAPI band_Unload (IDirectMusicBand * iface ,
122
121
IDirectMusicPerformance * pPerformance )
123
122
{
124
123
IDirectMusicBandImpl * This = impl_from_IDirectMusicBand (iface );
125
124
FIXME ("(%p, %p): stub\n" , This , pPerformance );
126
125
return S_OK ;
127
126
}
128
127
129
- static const IDirectMusicBandVtbl dmband_vtbl = {
130
- IDirectMusicBandImpl_QueryInterface ,
131
- IDirectMusicBandImpl_AddRef ,
132
- IDirectMusicBandImpl_Release ,
133
- IDirectMusicBandImpl_CreateSegment ,
134
- IDirectMusicBandImpl_Download ,
135
- IDirectMusicBandImpl_Unload
128
+ static const IDirectMusicBandVtbl band_vtbl =
129
+ {
130
+ band_QueryInterface ,
131
+ band_AddRef ,
132
+ band_Release ,
133
+ band_CreateSegment ,
134
+ band_Download ,
135
+ band_Unload ,
136
136
};
137
137
138
- /* IDirectMusicBandImpl IDirectMusicObject part: */
139
- static HRESULT WINAPI band_IDirectMusicObject_ParseDescriptor (IDirectMusicObject * iface ,
138
+ static HRESULT WINAPI band_object_ParseDescriptor (IDirectMusicObject * iface ,
140
139
IStream * stream , DMUS_OBJECTDESC * desc )
141
140
{
142
141
struct chunk_entry riff = {0 };
@@ -175,18 +174,18 @@ static HRESULT WINAPI band_IDirectMusicObject_ParseDescriptor(IDirectMusicObject
175
174
return S_OK ;
176
175
}
177
176
178
- static const IDirectMusicObjectVtbl dmobject_vtbl = {
177
+ static const IDirectMusicObjectVtbl band_object_vtbl =
178
+ {
179
179
dmobj_IDirectMusicObject_QueryInterface ,
180
180
dmobj_IDirectMusicObject_AddRef ,
181
181
dmobj_IDirectMusicObject_Release ,
182
182
dmobj_IDirectMusicObject_GetDescriptor ,
183
183
dmobj_IDirectMusicObject_SetDescriptor ,
184
- band_IDirectMusicObject_ParseDescriptor
184
+ band_object_ParseDescriptor ,
185
185
};
186
186
187
187
#define DMUS_IO_INSTRUMENT_DX7_SIZE offsetof(DMUS_IO_INSTRUMENT, nPitchBendRange)
188
188
189
- /* IDirectMusicBandImpl IPersistStream part: */
190
189
static HRESULT parse_instrument (IDirectMusicBandImpl * This , DMUS_PRIVATE_CHUNK * pChunk ,
191
190
IStream * pStm )
192
191
{
@@ -447,7 +446,7 @@ static inline IDirectMusicBandImpl *impl_from_IPersistStream(IPersistStream *ifa
447
446
return CONTAINING_RECORD (iface , IDirectMusicBandImpl , dmobj .IPersistStream_iface );
448
447
}
449
448
450
- static HRESULT WINAPI IPersistStreamImpl_Load (IPersistStream * iface , IStream * pStm )
449
+ static HRESULT WINAPI band_persist_stream_Load (IPersistStream * iface , IStream * pStm )
451
450
{
452
451
IDirectMusicBandImpl * This = impl_from_IPersistStream (iface );
453
452
DMUS_PRIVATE_CHUNK Chunk ;
@@ -490,30 +489,30 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *pS
490
489
return S_OK ;
491
490
}
492
491
493
- static const IPersistStreamVtbl persiststream_vtbl = {
492
+ static const IPersistStreamVtbl band_persist_stream_vtbl =
493
+ {
494
494
dmobj_IPersistStream_QueryInterface ,
495
495
dmobj_IPersistStream_AddRef ,
496
496
dmobj_IPersistStream_Release ,
497
497
unimpl_IPersistStream_GetClassID ,
498
498
unimpl_IPersistStream_IsDirty ,
499
- IPersistStreamImpl_Load ,
499
+ band_persist_stream_Load ,
500
500
unimpl_IPersistStream_Save ,
501
- unimpl_IPersistStream_GetSizeMax
501
+ unimpl_IPersistStream_GetSizeMax ,
502
502
};
503
503
504
- /* for ClassFactory */
505
504
HRESULT create_dmband (REFIID lpcGUID , void * * ppobj )
506
505
{
507
506
IDirectMusicBandImpl * obj ;
508
507
HRESULT hr ;
509
508
510
509
* ppobj = NULL ;
511
510
if (!(obj = calloc (1 , sizeof (* obj )))) return E_OUTOFMEMORY ;
512
- obj -> IDirectMusicBand_iface .lpVtbl = & dmband_vtbl ;
511
+ obj -> IDirectMusicBand_iface .lpVtbl = & band_vtbl ;
513
512
obj -> ref = 1 ;
514
513
dmobject_init (& obj -> dmobj , & CLSID_DirectMusicBand , (IUnknown * )& obj -> IDirectMusicBand_iface );
515
- obj -> dmobj .IDirectMusicObject_iface .lpVtbl = & dmobject_vtbl ;
516
- obj -> dmobj .IPersistStream_iface .lpVtbl = & persiststream_vtbl ;
514
+ obj -> dmobj .IDirectMusicObject_iface .lpVtbl = & band_object_vtbl ;
515
+ obj -> dmobj .IPersistStream_iface .lpVtbl = & band_persist_stream_vtbl ;
517
516
list_init (& obj -> Instruments );
518
517
519
518
hr = IDirectMusicBand_QueryInterface (& obj -> IDirectMusicBand_iface , lpcGUID , ppobj );
0 commit comments