Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d37c555a
Commit
d37c555a
authored
Jun 10, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Make the virtual table functions static where possible.
parent
f6da014c
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
121 additions
and
151 deletions
+121
-151
buffer.c
dlls/dmusic/buffer.c
+17
-17
clock.c
dlls/dmusic/clock.c
+8
-8
collection.c
dlls/dmusic/collection.c
+27
-22
dmusic.c
dlls/dmusic/dmusic.c
+14
-14
dmusic_private.h
dlls/dmusic/dmusic_private.h
+0
-38
download.c
dlls/dmusic/download.c
+5
-5
downloadedinstrument.c
dlls/dmusic/downloadedinstrument.c
+4
-4
instrument.c
dlls/dmusic/instrument.c
+11
-8
port.c
dlls/dmusic/port.c
+20
-20
portdownload.c
dlls/dmusic/portdownload.c
+10
-10
thru.c
dlls/dmusic/thru.c
+5
-5
No files found.
dlls/dmusic/buffer.c
View file @
d37c555a
...
...
@@ -22,12 +22,12 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dmusic
);
/* IDirectMusicBufferImpl IUnknown part: */
HRESULT
WINAPI
IDirectMusicBufferImpl_QueryInterface
(
LPDIRECTMUSICBUFFER
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirectMusicBufferImpl_QueryInterface
(
LPDIRECTMUSICBUFFER
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
TRACE
(
"(%p, (%s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IDirectMusicBuffer
))
{
I
DirectMusicBufferImpl
_AddRef
(
iface
);
I
Unknown
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -35,7 +35,7 @@ HRESULT WINAPI IDirectMusicBufferImpl_QueryInterface (LPDIRECTMUSICBUFFER iface,
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirectMusicBufferImpl_AddRef
(
LPDIRECTMUSICBUFFER
iface
)
{
static
ULONG
WINAPI
IDirectMusicBufferImpl_AddRef
(
LPDIRECTMUSICBUFFER
iface
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -46,7 +46,7 @@ ULONG WINAPI IDirectMusicBufferImpl_AddRef (LPDIRECTMUSICBUFFER iface) {
return
refCount
;
}
ULONG
WINAPI
IDirectMusicBufferImpl_Release
(
LPDIRECTMUSICBUFFER
iface
)
{
static
ULONG
WINAPI
IDirectMusicBufferImpl_Release
(
LPDIRECTMUSICBUFFER
iface
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -62,79 +62,79 @@ ULONG WINAPI IDirectMusicBufferImpl_Release (LPDIRECTMUSICBUFFER iface) {
}
/* IDirectMusicBufferImpl IDirectMusicBuffer part: */
HRESULT
WINAPI
IDirectMusicBufferImpl_Flush
(
LPDIRECTMUSICBUFFER
iface
)
{
static
HRESULT
WINAPI
IDirectMusicBufferImpl_Flush
(
LPDIRECTMUSICBUFFER
iface
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p): stub
\n
"
,
This
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicBufferImpl_TotalTime
(
LPDIRECTMUSICBUFFER
iface
,
LPREFERENCE_TIME
prtTime
)
{
static
HRESULT
WINAPI
IDirectMusicBufferImpl_TotalTime
(
LPDIRECTMUSICBUFFER
iface
,
LPREFERENCE_TIME
prtTime
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
prtTime
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicBufferImpl_PackStructured
(
LPDIRECTMUSICBUFFER
iface
,
REFERENCE_TIME
rt
,
DWORD
dwChannelGroup
,
DWORD
dwChannelMessage
)
{
static
HRESULT
WINAPI
IDirectMusicBufferImpl_PackStructured
(
LPDIRECTMUSICBUFFER
iface
,
REFERENCE_TIME
rt
,
DWORD
dwChannelGroup
,
DWORD
dwChannelMessage
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p, %lli, %ld, %ld): stub
\n
"
,
This
,
rt
,
dwChannelGroup
,
dwChannelMessage
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicBufferImpl_PackUnstructured
(
LPDIRECTMUSICBUFFER
iface
,
REFERENCE_TIME
rt
,
DWORD
dwChannelGroup
,
DWORD
cb
,
LPBYTE
lpb
)
{
static
HRESULT
WINAPI
IDirectMusicBufferImpl_PackUnstructured
(
LPDIRECTMUSICBUFFER
iface
,
REFERENCE_TIME
rt
,
DWORD
dwChannelGroup
,
DWORD
cb
,
LPBYTE
lpb
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p, %lli, %ld, %ld, %p): stub
\n
"
,
This
,
rt
,
dwChannelGroup
,
cb
,
lpb
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicBufferImpl_ResetReadPtr
(
LPDIRECTMUSICBUFFER
iface
)
{
static
HRESULT
WINAPI
IDirectMusicBufferImpl_ResetReadPtr
(
LPDIRECTMUSICBUFFER
iface
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p): stub
\n
"
,
This
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicBufferImpl_GetNextEvent
(
LPDIRECTMUSICBUFFER
iface
,
LPREFERENCE_TIME
prt
,
LPDWORD
pdwChannelGroup
,
LPDWORD
pdwLength
,
LPBYTE
*
ppData
)
{
static
HRESULT
WINAPI
IDirectMusicBufferImpl_GetNextEvent
(
LPDIRECTMUSICBUFFER
iface
,
LPREFERENCE_TIME
prt
,
LPDWORD
pdwChannelGroup
,
LPDWORD
pdwLength
,
LPBYTE
*
ppData
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p, %p, %p, %p, %p): stub
\n
"
,
This
,
prt
,
pdwChannelGroup
,
pdwLength
,
ppData
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicBufferImpl_GetRawBufferPtr
(
LPDIRECTMUSICBUFFER
iface
,
LPBYTE
*
ppData
)
{
static
HRESULT
WINAPI
IDirectMusicBufferImpl_GetRawBufferPtr
(
LPDIRECTMUSICBUFFER
iface
,
LPBYTE
*
ppData
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
ppData
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicBufferImpl_GetStartTime
(
LPDIRECTMUSICBUFFER
iface
,
LPREFERENCE_TIME
prt
)
{
static
HRESULT
WINAPI
IDirectMusicBufferImpl_GetStartTime
(
LPDIRECTMUSICBUFFER
iface
,
LPREFERENCE_TIME
prt
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
prt
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicBufferImpl_GetUsedBytes
(
LPDIRECTMUSICBUFFER
iface
,
LPDWORD
pcb
)
{
static
HRESULT
WINAPI
IDirectMusicBufferImpl_GetUsedBytes
(
LPDIRECTMUSICBUFFER
iface
,
LPDWORD
pcb
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pcb
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicBufferImpl_GetMaxBytes
(
LPDIRECTMUSICBUFFER
iface
,
LPDWORD
pcb
)
{
static
HRESULT
WINAPI
IDirectMusicBufferImpl_GetMaxBytes
(
LPDIRECTMUSICBUFFER
iface
,
LPDWORD
pcb
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pcb
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicBufferImpl_GetBufferFormat
(
LPDIRECTMUSICBUFFER
iface
,
LPGUID
pGuidFormat
)
{
static
HRESULT
WINAPI
IDirectMusicBufferImpl_GetBufferFormat
(
LPDIRECTMUSICBUFFER
iface
,
LPGUID
pGuidFormat
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pGuidFormat
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicBufferImpl_SetStartTime
(
LPDIRECTMUSICBUFFER
iface
,
REFERENCE_TIME
rt
)
{
static
HRESULT
WINAPI
IDirectMusicBufferImpl_SetStartTime
(
LPDIRECTMUSICBUFFER
iface
,
REFERENCE_TIME
rt
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p, %lli): stub
\n
"
,
This
,
rt
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicBufferImpl_SetUsedBytes
(
LPDIRECTMUSICBUFFER
iface
,
DWORD
cb
)
{
static
HRESULT
WINAPI
IDirectMusicBufferImpl_SetUsedBytes
(
LPDIRECTMUSICBUFFER
iface
,
DWORD
cb
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p, %ld): stub
\n
"
,
This
,
cb
);
return
S_OK
;
...
...
dlls/dmusic/clock.c
View file @
d37c555a
...
...
@@ -22,13 +22,13 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dmusic
);
/* IReferenceClockImpl IUnknown part: */
HRESULT
WINAPI
IReferenceClockImpl_QueryInterface
(
IReferenceClock
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IReferenceClockImpl_QueryInterface
(
IReferenceClock
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IReferenceClockImpl
*
This
=
(
IReferenceClockImpl
*
)
iface
;
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IReferenceClock
))
{
I
ReferenceClockImpl
_AddRef
(
iface
);
I
Unknown
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -36,7 +36,7 @@ HRESULT WINAPI IReferenceClockImpl_QueryInterface (IReferenceClock *iface, REFII
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IReferenceClockImpl_AddRef
(
IReferenceClock
*
iface
)
{
static
ULONG
WINAPI
IReferenceClockImpl_AddRef
(
IReferenceClock
*
iface
)
{
IReferenceClockImpl
*
This
=
(
IReferenceClockImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -47,7 +47,7 @@ ULONG WINAPI IReferenceClockImpl_AddRef (IReferenceClock *iface) {
return
refCount
;
}
ULONG
WINAPI
IReferenceClockImpl_Release
(
IReferenceClock
*
iface
)
{
static
ULONG
WINAPI
IReferenceClockImpl_Release
(
IReferenceClock
*
iface
)
{
IReferenceClockImpl
*
This
=
(
IReferenceClockImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -63,26 +63,26 @@ ULONG WINAPI IReferenceClockImpl_Release (IReferenceClock *iface) {
}
/* IReferenceClockImpl IReferenceClock part: */
HRESULT
WINAPI
IReferenceClockImpl_GetTime
(
IReferenceClock
*
iface
,
REFERENCE_TIME
*
pTime
)
{
static
HRESULT
WINAPI
IReferenceClockImpl_GetTime
(
IReferenceClock
*
iface
,
REFERENCE_TIME
*
pTime
)
{
IReferenceClockImpl
*
This
=
(
IReferenceClockImpl
*
)
iface
;
TRACE
(
"(%p, %p)
\n
"
,
This
,
pTime
);
*
pTime
=
This
->
rtTime
;
return
S_OK
;
}
HRESULT
WINAPI
IReferenceClockImpl_AdviseTime
(
IReferenceClock
*
iface
,
REFERENCE_TIME
baseTime
,
REFERENCE_TIME
streamTime
,
HANDLE
hEvent
,
DWORD
*
pdwAdviseCookie
)
{
static
HRESULT
WINAPI
IReferenceClockImpl_AdviseTime
(
IReferenceClock
*
iface
,
REFERENCE_TIME
baseTime
,
REFERENCE_TIME
streamTime
,
HANDLE
hEvent
,
DWORD
*
pdwAdviseCookie
)
{
IReferenceClockImpl
*
This
=
(
IReferenceClockImpl
*
)
iface
;
FIXME
(
"(%p, %lli, %lli, %p, %p): stub
\n
"
,
This
,
baseTime
,
streamTime
,
hEvent
,
pdwAdviseCookie
);
return
S_OK
;
}
HRESULT
WINAPI
IReferenceClockImpl_AdvisePeriodic
(
IReferenceClock
*
iface
,
REFERENCE_TIME
startTime
,
REFERENCE_TIME
periodTime
,
HANDLE
hSemaphore
,
DWORD
*
pdwAdviseCookie
)
{
static
HRESULT
WINAPI
IReferenceClockImpl_AdvisePeriodic
(
IReferenceClock
*
iface
,
REFERENCE_TIME
startTime
,
REFERENCE_TIME
periodTime
,
HANDLE
hSemaphore
,
DWORD
*
pdwAdviseCookie
)
{
IReferenceClockImpl
*
This
=
(
IReferenceClockImpl
*
)
iface
;
FIXME
(
"(%p, %lli, %lli, %p, %p): stub
\n
"
,
This
,
startTime
,
periodTime
,
hSemaphore
,
pdwAdviseCookie
);
return
S_OK
;
}
HRESULT
WINAPI
IReferenceClockImpl_Unadvise
(
IReferenceClock
*
iface
,
DWORD
dwAdviseCookie
)
{
static
HRESULT
WINAPI
IReferenceClockImpl_Unadvise
(
IReferenceClock
*
iface
,
DWORD
dwAdviseCookie
)
{
IReferenceClockImpl
*
This
=
(
IReferenceClockImpl
*
)
iface
;
FIXME
(
"(%p, %ld): stub
\n
"
,
This
,
dwAdviseCookie
);
return
S_OK
;
...
...
dlls/dmusic/collection.c
View file @
d37c555a
...
...
@@ -22,11 +22,16 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dmusic
);
WINE_DECLARE_DEBUG_CHANNEL
(
dmfile
);
static
ULONG
WINAPI
IDirectMusicCollectionImpl_IUnknown_AddRef
(
LPUNKNOWN
iface
);
static
ULONG
WINAPI
IDirectMusicCollectionImpl_IDirectMusicCollection_AddRef
(
LPDIRECTMUSICCOLLECTION
iface
);
static
ULONG
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_AddRef
(
LPDIRECTMUSICOBJECT
iface
);
static
ULONG
WINAPI
IDirectMusicCollectionImpl_IPersistStream_AddRef
(
LPPERSISTSTREAM
iface
);
/*****************************************************************************
* IDirectMusicCollectionImpl implementation
*/
/* IDirectMusicCollectionImpl IUnknown part: */
HRESULT
WINAPI
IDirectMusicCollectionImpl_IUnknown_QueryInterface
(
LPUNKNOWN
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IUnknown_QueryInterface
(
LPUNKNOWN
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
UnknownVtbl
,
iface
);
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
...
...
@@ -52,7 +57,7 @@ HRESULT WINAPI IDirectMusicCollectionImpl_IUnknown_QueryInterface (LPUNKNOWN ifa
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirectMusicCollectionImpl_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
static
ULONG
WINAPI
IDirectMusicCollectionImpl_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
UnknownVtbl
,
iface
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -63,7 +68,7 @@ ULONG WINAPI IDirectMusicCollectionImpl_IUnknown_AddRef (LPUNKNOWN iface) {
return
refCount
;
}
ULONG
WINAPI
IDirectMusicCollectionImpl_IUnknown_Release
(
LPUNKNOWN
iface
)
{
static
ULONG
WINAPI
IDirectMusicCollectionImpl_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
UnknownVtbl
,
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -85,23 +90,23 @@ static const IUnknownVtbl DirectMusicCollection_Unknown_Vtbl = {
};
/* IDirectMusicCollectionImpl IDirectMusicCollection part: */
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicCollection_QueryInterface
(
LPDIRECTMUSICCOLLECTION
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicCollection_QueryInterface
(
LPDIRECTMUSICCOLLECTION
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
CollectionVtbl
,
iface
);
return
IDirectMusicCollectionImpl_IUnknown_QueryInterface
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
,
riid
,
ppobj
);
}
ULONG
WINAPI
IDirectMusicCollectionImpl_IDirectMusicCollection_AddRef
(
LPDIRECTMUSICCOLLECTION
iface
)
{
static
ULONG
WINAPI
IDirectMusicCollectionImpl_IDirectMusicCollection_AddRef
(
LPDIRECTMUSICCOLLECTION
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
CollectionVtbl
,
iface
);
return
IDirectMusicCollectionImpl_IUnknown_AddRef
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
}
ULONG
WINAPI
IDirectMusicCollectionImpl_IDirectMusicCollection_Release
(
LPDIRECTMUSICCOLLECTION
iface
)
{
static
ULONG
WINAPI
IDirectMusicCollectionImpl_IDirectMusicCollection_Release
(
LPDIRECTMUSICCOLLECTION
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
CollectionVtbl
,
iface
);
return
IDirectMusicCollectionImpl_IUnknown_Release
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
}
/* IDirectMusicCollection Interface follow: */
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicCollection_GetInstrument
(
LPDIRECTMUSICCOLLECTION
iface
,
DWORD
dwPatch
,
IDirectMusicInstrument
**
ppInstrument
)
{
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicCollection_GetInstrument
(
LPDIRECTMUSICCOLLECTION
iface
,
DWORD
dwPatch
,
IDirectMusicInstrument
**
ppInstrument
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
CollectionVtbl
,
iface
);
DMUS_PRIVATE_INSTRUMENTENTRY
*
tmpEntry
;
struct
list
*
listEntry
;
...
...
@@ -126,7 +131,7 @@ HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicCollection_GetInstrument (
return
DMUS_E_INVALIDPATCH
;
}
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicCollection_EnumInstrument
(
LPDIRECTMUSICCOLLECTION
iface
,
DWORD
dwIndex
,
DWORD
*
pdwPatch
,
LPWSTR
pwszName
,
DWORD
dwNameLen
)
{
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicCollection_EnumInstrument
(
LPDIRECTMUSICCOLLECTION
iface
,
DWORD
dwIndex
,
DWORD
*
pdwPatch
,
LPWSTR
pwszName
,
DWORD
dwNameLen
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
CollectionVtbl
,
iface
);
unsigned
int
r
=
0
;
DMUS_PRIVATE_INSTRUMENTENTRY
*
tmpEntry
;
...
...
@@ -161,22 +166,22 @@ static const IDirectMusicCollectionVtbl DirectMusicCollection_Collection_Vtbl =
};
/* IDirectMusicCollectionImpl IDirectMusicObject part: */
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_QueryInterface
(
LPDIRECTMUSICOBJECT
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_QueryInterface
(
LPDIRECTMUSICOBJECT
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
ObjectVtbl
,
iface
);
return
IDirectMusicCollectionImpl_IUnknown_QueryInterface
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
,
riid
,
ppobj
);
}
ULONG
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_AddRef
(
LPDIRECTMUSICOBJECT
iface
)
{
static
ULONG
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_AddRef
(
LPDIRECTMUSICOBJECT
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
ObjectVtbl
,
iface
);
return
IDirectMusicCollectionImpl_IUnknown_AddRef
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
}
ULONG
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_Release
(
LPDIRECTMUSICOBJECT
iface
)
{
static
ULONG
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_Release
(
LPDIRECTMUSICOBJECT
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
ObjectVtbl
,
iface
);
return
IDirectMusicCollectionImpl_IUnknown_Release
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
}
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_GetDescriptor
(
LPDIRECTMUSICOBJECT
iface
,
LPDMUS_OBJECTDESC
pDesc
)
{
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_GetDescriptor
(
LPDIRECTMUSICOBJECT
iface
,
LPDMUS_OBJECTDESC
pDesc
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
ObjectVtbl
,
iface
);
TRACE
(
"(%p, %p)
\n
"
,
This
,
pDesc
);
/* I think we shouldn't return pointer here since then values can be changed; it'd be a mess */
...
...
@@ -184,7 +189,7 @@ HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicObject_GetDescriptor (LPDI
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_SetDescriptor
(
LPDIRECTMUSICOBJECT
iface
,
LPDMUS_OBJECTDESC
pDesc
)
{
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_SetDescriptor
(
LPDIRECTMUSICOBJECT
iface
,
LPDMUS_OBJECTDESC
pDesc
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
ObjectVtbl
,
iface
);
TRACE
(
"(%p, %p): setting descriptor:
\n
%s
\n
"
,
This
,
pDesc
,
debugstr_DMUS_OBJECTDESC
(
pDesc
));
...
...
@@ -218,7 +223,7 @@ HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicObject_SetDescriptor (LPDI
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_ParseDescriptor
(
LPDIRECTMUSICOBJECT
iface
,
LPSTREAM
pStream
,
LPDMUS_OBJECTDESC
pDesc
)
{
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_ParseDescriptor
(
LPDIRECTMUSICOBJECT
iface
,
LPSTREAM
pStream
,
LPDMUS_OBJECTDESC
pDesc
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
ObjectVtbl
,
iface
);
DMUS_PRIVATE_CHUNK
Chunk
;
DWORD
StreamSize
,
StreamCount
,
ListSize
[
1
],
ListCount
[
1
];
...
...
@@ -396,30 +401,30 @@ static const IDirectMusicObjectVtbl DirectMusicCollection_Object_Vtbl = {
};
/* IDirectMusicCollectionImpl IPersistStream part: */
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_QueryInterface
(
LPPERSISTSTREAM
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_QueryInterface
(
LPPERSISTSTREAM
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
PersistStreamVtbl
,
iface
);
return
IDirectMusicCollectionImpl_IUnknown_QueryInterface
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
,
riid
,
ppobj
);
}
ULONG
WINAPI
IDirectMusicCollectionImpl_IPersistStream_AddRef
(
LPPERSISTSTREAM
iface
)
{
static
ULONG
WINAPI
IDirectMusicCollectionImpl_IPersistStream_AddRef
(
LPPERSISTSTREAM
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
PersistStreamVtbl
,
iface
);
return
IDirectMusicCollectionImpl_IUnknown_AddRef
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
}
ULONG
WINAPI
IDirectMusicCollectionImpl_IPersistStream_Release
(
LPPERSISTSTREAM
iface
)
{
static
ULONG
WINAPI
IDirectMusicCollectionImpl_IPersistStream_Release
(
LPPERSISTSTREAM
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
PersistStreamVtbl
,
iface
);
return
IDirectMusicCollectionImpl_IUnknown_Release
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
}
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_GetClassID
(
LPPERSISTSTREAM
iface
,
CLSID
*
pClassID
)
{
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_GetClassID
(
LPPERSISTSTREAM
iface
,
CLSID
*
pClassID
)
{
return
E_NOTIMPL
;
}
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_IsDirty
(
LPPERSISTSTREAM
iface
)
{
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_IsDirty
(
LPPERSISTSTREAM
iface
)
{
return
E_NOTIMPL
;
}
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_Load
(
LPPERSISTSTREAM
iface
,
IStream
*
pStm
)
{
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_Load
(
LPPERSISTSTREAM
iface
,
IStream
*
pStm
)
{
ICOM_THIS_MULTI
(
IDirectMusicCollectionImpl
,
PersistStreamVtbl
,
iface
);
DMUS_PRIVATE_CHUNK
Chunk
;
...
...
@@ -729,11 +734,11 @@ HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTSTREAM i
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_Save
(
LPPERSISTSTREAM
iface
,
IStream
*
pStm
,
BOOL
fClearDirty
)
{
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_Save
(
LPPERSISTSTREAM
iface
,
IStream
*
pStm
,
BOOL
fClearDirty
)
{
return
E_NOTIMPL
;
}
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_GetSizeMax
(
LPPERSISTSTREAM
iface
,
ULARGE_INTEGER
*
pcbSize
)
{
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_GetSizeMax
(
LPPERSISTSTREAM
iface
,
ULARGE_INTEGER
*
pcbSize
)
{
return
E_NOTIMPL
;
}
...
...
dlls/dmusic/dmusic.c
View file @
d37c555a
...
...
@@ -21,7 +21,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dmusic
);
/* IDirectMusic8Impl IUnknown part: */
HRESULT
WINAPI
IDirectMusic8Impl_QueryInterface
(
LPDIRECTMUSIC8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirectMusic8Impl_QueryInterface
(
LPDIRECTMUSIC8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
...
...
@@ -29,7 +29,7 @@ HRESULT WINAPI IDirectMusic8Impl_QueryInterface (LPDIRECTMUSIC8 iface, REFIID ri
IsEqualIID
(
riid
,
&
IID_IDirectMusic
)
||
IsEqualIID
(
riid
,
&
IID_IDirectMusic2
)
||
IsEqualIID
(
riid
,
&
IID_IDirectMusic8
))
{
I
DirectMusic8Impl
_AddRef
(
iface
);
I
Unknown
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -38,7 +38,7 @@ HRESULT WINAPI IDirectMusic8Impl_QueryInterface (LPDIRECTMUSIC8 iface, REFIID ri
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirectMusic8Impl_AddRef
(
LPDIRECTMUSIC8
iface
)
{
static
ULONG
WINAPI
IDirectMusic8Impl_AddRef
(
LPDIRECTMUSIC8
iface
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -49,7 +49,7 @@ ULONG WINAPI IDirectMusic8Impl_AddRef (LPDIRECTMUSIC8 iface) {
return
refCount
;
}
ULONG
WINAPI
IDirectMusic8Impl_Release
(
LPDIRECTMUSIC8
iface
)
{
static
ULONG
WINAPI
IDirectMusic8Impl_Release
(
LPDIRECTMUSIC8
iface
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -65,7 +65,7 @@ ULONG WINAPI IDirectMusic8Impl_Release (LPDIRECTMUSIC8 iface) {
}
/* IDirectMusic8Impl IDirectMusic part: */
HRESULT
WINAPI
IDirectMusic8Impl_EnumPort
(
LPDIRECTMUSIC8
iface
,
DWORD
dwIndex
,
LPDMUS_PORTCAPS
pPortCaps
)
{
static
HRESULT
WINAPI
IDirectMusic8Impl_EnumPort
(
LPDIRECTMUSIC8
iface
,
DWORD
dwIndex
,
LPDMUS_PORTCAPS
pPortCaps
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
TRACE
(
"(%p, %ld, %p)
\n
"
,
This
,
dwIndex
,
pPortCaps
);
if
(
NULL
==
pPortCaps
)
{
return
E_POINTER
;
}
...
...
@@ -106,13 +106,13 @@ HRESULT WINAPI IDirectMusic8Impl_EnumPort(LPDIRECTMUSIC8 iface, DWORD dwIndex, L
return
S_FALSE
;
}
HRESULT
WINAPI
IDirectMusic8Impl_CreateMusicBuffer
(
LPDIRECTMUSIC8
iface
,
LPDMUS_BUFFERDESC
pBufferDesc
,
LPDIRECTMUSICBUFFER
**
ppBuffer
,
LPUNKNOWN
pUnkOuter
)
{
static
HRESULT
WINAPI
IDirectMusic8Impl_CreateMusicBuffer
(
LPDIRECTMUSIC8
iface
,
LPDMUS_BUFFERDESC
pBufferDesc
,
LPDIRECTMUSICBUFFER
**
ppBuffer
,
LPUNKNOWN
pUnkOuter
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
FIXME
(
"(%p, %p, %p, %p): stub
\n
"
,
This
,
pBufferDesc
,
ppBuffer
,
pUnkOuter
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusic8Impl_CreatePort
(
LPDIRECTMUSIC8
iface
,
REFCLSID
rclsidPort
,
LPDMUS_PORTPARAMS
pPortParams
,
LPDIRECTMUSICPORT
*
ppPort
,
LPUNKNOWN
pUnkOuter
)
{
static
HRESULT
WINAPI
IDirectMusic8Impl_CreatePort
(
LPDIRECTMUSIC8
iface
,
REFCLSID
rclsidPort
,
LPDMUS_PORTPARAMS
pPortParams
,
LPDIRECTMUSICPORT
*
ppPort
,
LPUNKNOWN
pUnkOuter
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
int
i
/*, j*/
;
DMUS_PORTCAPS
PortCaps
;
...
...
@@ -142,13 +142,13 @@ HRESULT WINAPI IDirectMusic8Impl_CreatePort (LPDIRECTMUSIC8 iface, REFCLSID rcls
return
E_NOINTERFACE
;
}
HRESULT
WINAPI
IDirectMusic8Impl_EnumMasterClock
(
LPDIRECTMUSIC8
iface
,
DWORD
dwIndex
,
LPDMUS_CLOCKINFO
lpClockInfo
)
{
static
HRESULT
WINAPI
IDirectMusic8Impl_EnumMasterClock
(
LPDIRECTMUSIC8
iface
,
DWORD
dwIndex
,
LPDMUS_CLOCKINFO
lpClockInfo
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
FIXME
(
"(%p, %ld, %p): stub
\n
"
,
This
,
dwIndex
,
lpClockInfo
);
return
S_FALSE
;
}
HRESULT
WINAPI
IDirectMusic8Impl_GetMasterClock
(
LPDIRECTMUSIC8
iface
,
LPGUID
pguidClock
,
IReferenceClock
**
ppReferenceClock
)
{
static
HRESULT
WINAPI
IDirectMusic8Impl_GetMasterClock
(
LPDIRECTMUSIC8
iface
,
LPGUID
pguidClock
,
IReferenceClock
**
ppReferenceClock
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
TRACE
(
"(%p, %p, %p)
\n
"
,
This
,
pguidClock
,
ppReferenceClock
);
...
...
@@ -160,13 +160,13 @@ HRESULT WINAPI IDirectMusic8Impl_GetMasterClock (LPDIRECTMUSIC8 iface, LPGUID pg
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusic8Impl_SetMasterClock
(
LPDIRECTMUSIC8
iface
,
REFGUID
rguidClock
)
{
static
HRESULT
WINAPI
IDirectMusic8Impl_SetMasterClock
(
LPDIRECTMUSIC8
iface
,
REFGUID
rguidClock
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
FIXME
(
"(%p, %s): stub
\n
"
,
This
,
debugstr_dmguid
(
rguidClock
));
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusic8Impl_Activate
(
LPDIRECTMUSIC8
iface
,
BOOL
fEnable
)
{
static
HRESULT
WINAPI
IDirectMusic8Impl_Activate
(
LPDIRECTMUSIC8
iface
,
BOOL
fEnable
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
int
i
;
...
...
@@ -178,7 +178,7 @@ HRESULT WINAPI IDirectMusic8Impl_Activate (LPDIRECTMUSIC8 iface, BOOL fEnable) {
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusic8Impl_GetDefaultPort
(
LPDIRECTMUSIC8
iface
,
LPGUID
pguidPort
)
{
static
HRESULT
WINAPI
IDirectMusic8Impl_GetDefaultPort
(
LPDIRECTMUSIC8
iface
,
LPGUID
pguidPort
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
HKEY
hkGUID
;
DWORD
returnTypeGUID
,
sizeOfReturnBuffer
=
50
;
...
...
@@ -202,13 +202,13 @@ HRESULT WINAPI IDirectMusic8Impl_GetDefaultPort (LPDIRECTMUSIC8 iface, LPGUID pg
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusic8Impl_SetDirectSound
(
LPDIRECTMUSIC8
iface
,
LPDIRECTSOUND
pDirectSound
,
HWND
hWnd
)
{
static
HRESULT
WINAPI
IDirectMusic8Impl_SetDirectSound
(
LPDIRECTMUSIC8
iface
,
LPDIRECTSOUND
pDirectSound
,
HWND
hWnd
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
FIXME
(
"(%p, %p, %p): stub
\n
"
,
This
,
pDirectSound
,
hWnd
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusic8Impl_SetExternalMasterClock
(
LPDIRECTMUSIC8
iface
,
IReferenceClock
*
pClock
)
{
static
HRESULT
WINAPI
IDirectMusic8Impl_SetExternalMasterClock
(
LPDIRECTMUSIC8
iface
,
IReferenceClock
*
pClock
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pClock
);
return
S_OK
;
...
...
dlls/dmusic/dmusic_private.h
View file @
d37c555a
...
...
@@ -103,9 +103,6 @@ struct IDirectMusic8Impl {
int
nrofports
;
};
/* IUnknown: */
extern
ULONG
WINAPI
IDirectMusic8Impl_AddRef
(
LPDIRECTMUSIC8
iface
);
/*****************************************************************************
* IDirectMusicBufferImpl implementation structure
*/
...
...
@@ -117,9 +114,6 @@ struct IDirectMusicBufferImpl {
/* IDirectMusicBufferImpl fields */
};
/* IUnknown: */
extern
ULONG
WINAPI
IDirectMusicBufferImpl_AddRef
(
LPDIRECTMUSICBUFFER
iface
);
/*****************************************************************************
* IDirectMusicDownloadedInstrumentImpl implementation structure
*/
...
...
@@ -131,11 +125,6 @@ struct IDirectMusicDownloadedInstrumentImpl {
/* IDirectMusicDownloadedInstrumentImpl fields */
};
/* IUnknown: */
extern
ULONG
WINAPI
IDirectMusicDownloadedInstrumentImpl_AddRef
(
LPDIRECTMUSICDOWNLOADEDINSTRUMENT
iface
);
/* IDirectMusicDownloadedInstrumentImpl: */
/* none yet */
/*****************************************************************************
* IDirectMusicDownloadImpl implementation structure
*/
...
...
@@ -147,9 +136,6 @@ struct IDirectMusicDownloadImpl {
/* IDirectMusicDownloadImpl fields */
};
/* IUnknown: */
extern
ULONG
WINAPI
IDirectMusicDownloadImpl_AddRef
(
LPDIRECTMUSICDOWNLOAD
iface
);
/*****************************************************************************
* IDirectMusicPortDownloadImpl implementation structure
*/
...
...
@@ -161,9 +147,6 @@ struct IDirectMusicPortDownloadImpl {
/* IDirectMusicPortDownloadImpl fields */
};
/* IUnknown: */
extern
ULONG
WINAPI
IDirectMusicPortDownloadImpl_AddRef
(
LPDIRECTMUSICPORTDOWNLOAD
iface
);
/*****************************************************************************
* IDirectMusicPortImpl implementation structure
*/
...
...
@@ -182,8 +165,6 @@ struct IDirectMusicPortImpl {
DMUSIC_PRIVATE_CHANNEL_GROUP
group
[
1
];
};
/* IUnknown: */
extern
ULONG
WINAPI
IDirectMusicPortImpl_AddRef
(
LPDIRECTMUSICPORT
iface
);
extern
HRESULT
WINAPI
IDirectMusicPortImpl_Activate
(
LPDIRECTMUSICPORT
iface
,
BOOL
fActive
);
/** Internal factory */
...
...
@@ -200,9 +181,6 @@ struct IDirectMusicThruImpl {
/* IDirectMusicThruImpl fields */
};
/* IUnknown: */
extern
ULONG
WINAPI
IDirectMusicThruImpl_AddRef
(
LPDIRECTMUSICTHRU
iface
);
/*****************************************************************************
* IReferenceClockImpl implementation structure
*/
...
...
@@ -216,9 +194,6 @@ struct IReferenceClockImpl {
DMUS_CLOCKINFO
pClockInfo
;
};
/* IUnknown: */
extern
ULONG
WINAPI
IReferenceClockImpl_AddRef
(
IReferenceClock
*
iface
);
typedef
struct
_DMUS_PRIVATE_INSTRUMENT_ENTRY
{
struct
list
entry
;
/* for listing elements */
IDirectMusicInstrument
*
pInstrument
;
...
...
@@ -253,15 +228,6 @@ struct IDirectMusicCollectionImpl {
struct
list
Instruments
;
};
/* IUnknown: */
extern
ULONG
WINAPI
IDirectMusicCollectionImpl_IUnknown_AddRef
(
LPUNKNOWN
iface
);
/* IDirectMusicCollection: */
extern
ULONG
WINAPI
IDirectMusicCollectionImpl_IDirectMusicCollection_AddRef
(
LPDIRECTMUSICCOLLECTION
iface
);
/* IDirectMusicObject: */
extern
ULONG
WINAPI
IDirectMusicCollectionImpl_IDirectMusicObject_AddRef
(
LPDIRECTMUSICOBJECT
iface
);
/* IPersistStream: */
extern
ULONG
WINAPI
IDirectMusicCollectionImpl_IPersistStream_AddRef
(
LPPERSISTSTREAM
iface
);
/*****************************************************************************
* IDirectMusicInstrumentImpl implementation structure
*/
...
...
@@ -279,10 +245,6 @@ struct IDirectMusicInstrumentImpl {
/* instrument data */
};
/* IUnknown: */
extern
ULONG
WINAPI
IDirectMusicInstrumentImpl_IUnknown_AddRef
(
LPUNKNOWN
iface
);
/* IDirectMusicInstrumentImpl: */
extern
ULONG
WINAPI
IDirectMusicInstrumentImpl_IDirectMusicInstrument_AddRef
(
LPDIRECTMUSICINSTRUMENT
iface
);
/* custom :) */
extern
HRESULT
WINAPI
IDirectMusicInstrumentImpl_Custom_Load
(
LPDIRECTMUSICINSTRUMENT
iface
,
LPSTREAM
pStm
);
...
...
dlls/dmusic/download.c
View file @
d37c555a
...
...
@@ -22,13 +22,13 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dmusic
);
/* IDirectMusicDownloadImpl IUnknown part: */
HRESULT
WINAPI
IDirectMusicDownloadImpl_QueryInterface
(
LPDIRECTMUSICDOWNLOAD
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirectMusicDownloadImpl_QueryInterface
(
LPDIRECTMUSICDOWNLOAD
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirectMusicDownloadImpl
*
This
=
(
IDirectMusicDownloadImpl
*
)
iface
;
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IDirectMusicDownload
))
{
I
DirectMusicDownloadImpl
_AddRef
(
iface
);
I
Unknown
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -36,7 +36,7 @@ HRESULT WINAPI IDirectMusicDownloadImpl_QueryInterface (LPDIRECTMUSICDOWNLOAD if
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirectMusicDownloadImpl_AddRef
(
LPDIRECTMUSICDOWNLOAD
iface
)
{
static
ULONG
WINAPI
IDirectMusicDownloadImpl_AddRef
(
LPDIRECTMUSICDOWNLOAD
iface
)
{
IDirectMusicDownloadImpl
*
This
=
(
IDirectMusicDownloadImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -47,7 +47,7 @@ ULONG WINAPI IDirectMusicDownloadImpl_AddRef (LPDIRECTMUSICDOWNLOAD iface) {
return
refCount
;
}
ULONG
WINAPI
IDirectMusicDownloadImpl_Release
(
LPDIRECTMUSICDOWNLOAD
iface
)
{
static
ULONG
WINAPI
IDirectMusicDownloadImpl_Release
(
LPDIRECTMUSICDOWNLOAD
iface
)
{
IDirectMusicDownloadImpl
*
This
=
(
IDirectMusicDownloadImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -63,7 +63,7 @@ ULONG WINAPI IDirectMusicDownloadImpl_Release (LPDIRECTMUSICDOWNLOAD iface) {
}
/* IDirectMusicDownloadImpl IDirectMusicDownload part: */
HRESULT
WINAPI
IDirectMusicDownloadImpl_GetBuffer
(
LPDIRECTMUSICDOWNLOAD
iface
,
void
**
ppvBuffer
,
DWORD
*
pdwSize
)
{
static
HRESULT
WINAPI
IDirectMusicDownloadImpl_GetBuffer
(
LPDIRECTMUSICDOWNLOAD
iface
,
void
**
ppvBuffer
,
DWORD
*
pdwSize
)
{
IDirectMusicDownloadImpl
*
This
=
(
IDirectMusicDownloadImpl
*
)
iface
;
FIXME
(
"(%p, %p, %p): stub
\n
"
,
This
,
ppvBuffer
,
pdwSize
);
return
S_OK
;
...
...
dlls/dmusic/downloadedinstrument.c
View file @
d37c555a
...
...
@@ -22,13 +22,13 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dmusic
);
/* IDirectMusicDownloadedInstrumentImpl IUnknown part: */
HRESULT
WINAPI
IDirectMusicDownloadedInstrumentImpl_QueryInterface
(
LPDIRECTMUSICDOWNLOADEDINSTRUMENT
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirectMusicDownloadedInstrumentImpl_QueryInterface
(
LPDIRECTMUSICDOWNLOADEDINSTRUMENT
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirectMusicDownloadedInstrumentImpl
*
This
=
(
IDirectMusicDownloadedInstrumentImpl
*
)
iface
;
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IDirectMusicDownloadedInstrument
))
{
I
DirectMusicDownloadedInstrumentImpl
_AddRef
(
iface
);
I
Unknown
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -36,7 +36,7 @@ HRESULT WINAPI IDirectMusicDownloadedInstrumentImpl_QueryInterface (LPDIRECTMUSI
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirectMusicDownloadedInstrumentImpl_AddRef
(
LPDIRECTMUSICDOWNLOADEDINSTRUMENT
iface
)
{
static
ULONG
WINAPI
IDirectMusicDownloadedInstrumentImpl_AddRef
(
LPDIRECTMUSICDOWNLOADEDINSTRUMENT
iface
)
{
IDirectMusicDownloadedInstrumentImpl
*
This
=
(
IDirectMusicDownloadedInstrumentImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -47,7 +47,7 @@ ULONG WINAPI IDirectMusicDownloadedInstrumentImpl_AddRef (LPDIRECTMUSICDOWNLOADE
return
refCount
;
}
ULONG
WINAPI
IDirectMusicDownloadedInstrumentImpl_Release
(
LPDIRECTMUSICDOWNLOADEDINSTRUMENT
iface
)
{
static
ULONG
WINAPI
IDirectMusicDownloadedInstrumentImpl_Release
(
LPDIRECTMUSICDOWNLOADEDINSTRUMENT
iface
)
{
IDirectMusicDownloadedInstrumentImpl
*
This
=
(
IDirectMusicDownloadedInstrumentImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
dlls/dmusic/instrument.c
View file @
d37c555a
...
...
@@ -24,8 +24,11 @@ WINE_DECLARE_DEBUG_CHANNEL(dmfile);
static
const
GUID
IID_IDirectMusicInstrumentPRIVATE
=
{
0xbcb20080
,
0xa40c
,
0x11d1
,{
0x86
,
0xbc
,
0x00
,
0xc0
,
0x4f
,
0xbf
,
0x8f
,
0xef
}};
static
ULONG
WINAPI
IDirectMusicInstrumentImpl_IUnknown_AddRef
(
LPUNKNOWN
iface
);
static
ULONG
WINAPI
IDirectMusicInstrumentImpl_IDirectMusicInstrument_AddRef
(
LPDIRECTMUSICINSTRUMENT
iface
);
/* IDirectMusicInstrument IUnknown part: */
HRESULT
WINAPI
IDirectMusicInstrumentImpl_IUnknown_QueryInterface
(
LPUNKNOWN
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirectMusicInstrumentImpl_IUnknown_QueryInterface
(
LPUNKNOWN
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
ICOM_THIS_MULTI
(
IDirectMusicInstrumentImpl
,
UnknownVtbl
,
iface
);
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
...
...
@@ -52,7 +55,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_IUnknown_QueryInterface (LPUNKNOWN ifa
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirectMusicInstrumentImpl_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
static
ULONG
WINAPI
IDirectMusicInstrumentImpl_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicInstrumentImpl
,
UnknownVtbl
,
iface
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -63,7 +66,7 @@ ULONG WINAPI IDirectMusicInstrumentImpl_IUnknown_AddRef (LPUNKNOWN iface) {
return
refCount
;
}
ULONG
WINAPI
IDirectMusicInstrumentImpl_IUnknown_Release
(
LPUNKNOWN
iface
)
{
static
ULONG
WINAPI
IDirectMusicInstrumentImpl_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicInstrumentImpl
,
UnknownVtbl
,
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -85,29 +88,29 @@ static const IUnknownVtbl DirectMusicInstrument_Unknown_Vtbl = {
};
/* IDirectMusicInstrumentImpl IDirectMusicInstrument part: */
HRESULT
WINAPI
IDirectMusicInstrumentImpl_IDirectMusicInstrument_QueryInterface
(
LPDIRECTMUSICINSTRUMENT
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirectMusicInstrumentImpl_IDirectMusicInstrument_QueryInterface
(
LPDIRECTMUSICINSTRUMENT
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
ICOM_THIS_MULTI
(
IDirectMusicInstrumentImpl
,
InstrumentVtbl
,
iface
);
return
IDirectMusicInstrumentImpl_IUnknown_QueryInterface
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
,
riid
,
ppobj
);
}
ULONG
WINAPI
IDirectMusicInstrumentImpl_IDirectMusicInstrument_AddRef
(
LPDIRECTMUSICINSTRUMENT
iface
)
{
static
ULONG
WINAPI
IDirectMusicInstrumentImpl_IDirectMusicInstrument_AddRef
(
LPDIRECTMUSICINSTRUMENT
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicInstrumentImpl
,
InstrumentVtbl
,
iface
);
return
IDirectMusicInstrumentImpl_IUnknown_AddRef
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
}
ULONG
WINAPI
IDirectMusicInstrumentImpl_IDirectMusicInstrument_Release
(
LPDIRECTMUSICINSTRUMENT
iface
)
{
static
ULONG
WINAPI
IDirectMusicInstrumentImpl_IDirectMusicInstrument_Release
(
LPDIRECTMUSICINSTRUMENT
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicInstrumentImpl
,
InstrumentVtbl
,
iface
);
return
IDirectMusicInstrumentImpl_IUnknown_Release
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
}
HRESULT
WINAPI
IDirectMusicInstrumentImpl_IDirectMusicInstrument_GetPatch
(
LPDIRECTMUSICINSTRUMENT
iface
,
DWORD
*
pdwPatch
)
{
static
HRESULT
WINAPI
IDirectMusicInstrumentImpl_IDirectMusicInstrument_GetPatch
(
LPDIRECTMUSICINSTRUMENT
iface
,
DWORD
*
pdwPatch
)
{
ICOM_THIS_MULTI
(
IDirectMusicInstrumentImpl
,
InstrumentVtbl
,
iface
);
TRACE
(
"(%p, %p)
\n
"
,
This
,
pdwPatch
);
*
pdwPatch
=
MIDILOCALE2Patch
(
&
This
->
pHeader
->
Locale
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicInstrumentImpl_IDirectMusicInstrument_SetPatch
(
LPDIRECTMUSICINSTRUMENT
iface
,
DWORD
dwPatch
)
{
static
HRESULT
WINAPI
IDirectMusicInstrumentImpl_IDirectMusicInstrument_SetPatch
(
LPDIRECTMUSICINSTRUMENT
iface
,
DWORD
dwPatch
)
{
ICOM_THIS_MULTI
(
IDirectMusicInstrumentImpl
,
InstrumentVtbl
,
iface
);
TRACE
(
"(%p, %ld): stub
\n
"
,
This
,
dwPatch
);
Patch2MIDILOCALE
(
dwPatch
,
&
This
->
pHeader
->
Locale
);
...
...
dlls/dmusic/port.c
View file @
d37c555a
...
...
@@ -22,12 +22,12 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dmusic
);
/* IDirectMusicPortImpl IUnknown part: */
HRESULT
WINAPI
IDirectMusicPortImpl_QueryInterface
(
LPDIRECTMUSICPORT
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_QueryInterface
(
LPDIRECTMUSICPORT
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirectMusicPort
))
{
I
DirectMusicPortImpl
_AddRef
(
iface
);
I
Unknown
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -35,7 +35,7 @@ HRESULT WINAPI IDirectMusicPortImpl_QueryInterface (LPDIRECTMUSICPORT iface, REF
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirectMusicPortImpl_AddRef
(
LPDIRECTMUSICPORT
iface
)
{
static
ULONG
WINAPI
IDirectMusicPortImpl_AddRef
(
LPDIRECTMUSICPORT
iface
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -46,7 +46,7 @@ ULONG WINAPI IDirectMusicPortImpl_AddRef (LPDIRECTMUSICPORT iface) {
return
refCount
;
}
ULONG
WINAPI
IDirectMusicPortImpl_Release
(
LPDIRECTMUSICPORT
iface
)
{
static
ULONG
WINAPI
IDirectMusicPortImpl_Release
(
LPDIRECTMUSICPORT
iface
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -62,37 +62,37 @@ ULONG WINAPI IDirectMusicPortImpl_Release (LPDIRECTMUSICPORT iface) {
}
/* IDirectMusicPortImpl IDirectMusicPort part: */
HRESULT
WINAPI
IDirectMusicPortImpl_PlayBuffer
(
LPDIRECTMUSICPORT
iface
,
LPDIRECTMUSICBUFFER
pBuffer
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_PlayBuffer
(
LPDIRECTMUSICPORT
iface
,
LPDIRECTMUSICBUFFER
pBuffer
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pBuffer
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_SetReadNotificationHandle
(
LPDIRECTMUSICPORT
iface
,
HANDLE
hEvent
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_SetReadNotificationHandle
(
LPDIRECTMUSICPORT
iface
,
HANDLE
hEvent
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
hEvent
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_Read
(
LPDIRECTMUSICPORT
iface
,
LPDIRECTMUSICBUFFER
pBuffer
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_Read
(
LPDIRECTMUSICPORT
iface
,
LPDIRECTMUSICBUFFER
pBuffer
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pBuffer
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_DownloadInstrument
(
LPDIRECTMUSICPORT
iface
,
IDirectMusicInstrument
*
pInstrument
,
IDirectMusicDownloadedInstrument
**
ppDownloadedInstrument
,
DMUS_NOTERANGE
*
pNoteRanges
,
DWORD
dwNumNoteRanges
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_DownloadInstrument
(
LPDIRECTMUSICPORT
iface
,
IDirectMusicInstrument
*
pInstrument
,
IDirectMusicDownloadedInstrument
**
ppDownloadedInstrument
,
DMUS_NOTERANGE
*
pNoteRanges
,
DWORD
dwNumNoteRanges
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
FIXME
(
"(%p, %p, %p, %p, %ld): stub
\n
"
,
This
,
pInstrument
,
ppDownloadedInstrument
,
pNoteRanges
,
dwNumNoteRanges
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_UnloadInstrument
(
LPDIRECTMUSICPORT
iface
,
IDirectMusicDownloadedInstrument
*
pDownloadedInstrument
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_UnloadInstrument
(
LPDIRECTMUSICPORT
iface
,
IDirectMusicDownloadedInstrument
*
pDownloadedInstrument
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pDownloadedInstrument
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_GetLatencyClock
(
LPDIRECTMUSICPORT
iface
,
IReferenceClock
**
ppClock
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_GetLatencyClock
(
LPDIRECTMUSICPORT
iface
,
IReferenceClock
**
ppClock
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
TRACE
(
"(%p, %p)
\n
"
,
This
,
ppClock
);
*
ppClock
=
This
->
pLatencyClock
;
...
...
@@ -100,39 +100,39 @@ HRESULT WINAPI IDirectMusicPortImpl_GetLatencyClock (LPDIRECTMUSICPORT iface, IR
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_GetRunningStats
(
LPDIRECTMUSICPORT
iface
,
LPDMUS_SYNTHSTATS
pStats
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_GetRunningStats
(
LPDIRECTMUSICPORT
iface
,
LPDMUS_SYNTHSTATS
pStats
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pStats
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_Compact
(
LPDIRECTMUSICPORT
iface
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_Compact
(
LPDIRECTMUSICPORT
iface
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
FIXME
(
"(%p): stub
\n
"
,
This
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_GetCaps
(
LPDIRECTMUSICPORT
iface
,
LPDMUS_PORTCAPS
pPortCaps
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_GetCaps
(
LPDIRECTMUSICPORT
iface
,
LPDMUS_PORTCAPS
pPortCaps
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
TRACE
(
"(%p, %p)
\n
"
,
This
,
pPortCaps
);
memcpy
(
pPortCaps
,
&
This
->
caps
,
sizeof
(
DMUS_PORTCAPS
));
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_DeviceIoControl
(
LPDIRECTMUSICPORT
iface
,
DWORD
dwIoControlCode
,
LPVOID
lpInBuffer
,
DWORD
nInBufferSize
,
LPVOID
lpOutBuffer
,
DWORD
nOutBufferSize
,
LPDWORD
lpBytesReturned
,
LPOVERLAPPED
lpOverlapped
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_DeviceIoControl
(
LPDIRECTMUSICPORT
iface
,
DWORD
dwIoControlCode
,
LPVOID
lpInBuffer
,
DWORD
nInBufferSize
,
LPVOID
lpOutBuffer
,
DWORD
nOutBufferSize
,
LPDWORD
lpBytesReturned
,
LPOVERLAPPED
lpOverlapped
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
FIXME
(
"(%p, %ld, %p, %ld, %p, %ld, %p, %p): stub
\n
"
,
This
,
dwIoControlCode
,
lpInBuffer
,
nInBufferSize
,
lpOutBuffer
,
nOutBufferSize
,
lpBytesReturned
,
lpOverlapped
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_SetNumChannelGroups
(
LPDIRECTMUSICPORT
iface
,
DWORD
dwChannelGroups
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_SetNumChannelGroups
(
LPDIRECTMUSICPORT
iface
,
DWORD
dwChannelGroups
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
FIXME
(
"(%p, %ld): semi-stub
\n
"
,
This
,
dwChannelGroups
);
This
->
nrofgroups
=
dwChannelGroups
;
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_GetNumChannelGroups
(
LPDIRECTMUSICPORT
iface
,
LPDWORD
pdwChannelGroups
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_GetNumChannelGroups
(
LPDIRECTMUSICPORT
iface
,
LPDWORD
pdwChannelGroups
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
TRACE
(
"(%p, %p)
\n
"
,
This
,
pdwChannelGroups
);
*
pdwChannelGroups
=
This
->
nrofgroups
;
...
...
@@ -146,7 +146,7 @@ HRESULT WINAPI IDirectMusicPortImpl_Activate (LPDIRECTMUSICPORT iface, BOOL fAct
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_SetChannelPriority
(
LPDIRECTMUSICPORT
iface
,
DWORD
dwChannelGroup
,
DWORD
dwChannel
,
DWORD
dwPriority
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_SetChannelPriority
(
LPDIRECTMUSICPORT
iface
,
DWORD
dwChannelGroup
,
DWORD
dwChannel
,
DWORD
dwPriority
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
FIXME
(
"(%p, %ld, %ld, %ld): semi-stub
\n
"
,
This
,
dwChannelGroup
,
dwChannel
,
dwPriority
);
if
(
dwChannel
>
16
)
{
...
...
@@ -156,20 +156,20 @@ HRESULT WINAPI IDirectMusicPortImpl_SetChannelPriority (LPDIRECTMUSICPORT iface,
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_GetChannelPriority
(
LPDIRECTMUSICPORT
iface
,
DWORD
dwChannelGroup
,
DWORD
dwChannel
,
LPDWORD
pdwPriority
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_GetChannelPriority
(
LPDIRECTMUSICPORT
iface
,
DWORD
dwChannelGroup
,
DWORD
dwChannel
,
LPDWORD
pdwPriority
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
TRACE
(
"(%p, %ld, %ld, %p)
\n
"
,
This
,
dwChannelGroup
,
dwChannel
,
pdwPriority
);
*
pdwPriority
=
This
->
group
[
dwChannelGroup
-
1
].
channel
[
dwChannel
].
priority
;
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_SetDirectSound
(
LPDIRECTMUSICPORT
iface
,
LPDIRECTSOUND
pDirectSound
,
LPDIRECTSOUNDBUFFER
pDirectSoundBuffer
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_SetDirectSound
(
LPDIRECTMUSICPORT
iface
,
LPDIRECTSOUND
pDirectSound
,
LPDIRECTSOUNDBUFFER
pDirectSoundBuffer
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
FIXME
(
"(%p, %p, %p): stub
\n
"
,
This
,
pDirectSound
,
pDirectSoundBuffer
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortImpl_GetFormat
(
LPDIRECTMUSICPORT
iface
,
LPWAVEFORMATEX
pWaveFormatEx
,
LPDWORD
pdwWaveFormatExSize
,
LPDWORD
pdwBufferSize
)
{
static
HRESULT
WINAPI
IDirectMusicPortImpl_GetFormat
(
LPDIRECTMUSICPORT
iface
,
LPWAVEFORMATEX
pWaveFormatEx
,
LPDWORD
pdwWaveFormatExSize
,
LPDWORD
pdwBufferSize
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
FIXME
(
"(%p, %p, %p, %p): stub
\n
"
,
This
,
pWaveFormatEx
,
pdwWaveFormatExSize
,
pdwBufferSize
);
return
S_OK
;
...
...
dlls/dmusic/portdownload.c
View file @
d37c555a
...
...
@@ -22,12 +22,12 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dmusic
);
/* IDirectMusicPortDownload IUnknown parts follow: */
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_QueryInterface
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_QueryInterface
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirectMusicPortDownloadImpl
*
This
=
(
IDirectMusicPortDownloadImpl
*
)
iface
;
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirectMusicPortDownload
))
{
I
DirectMusicPortDownloadImpl
_AddRef
(
iface
);
I
Unknown
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -35,7 +35,7 @@ HRESULT WINAPI IDirectMusicPortDownloadImpl_QueryInterface (LPDIRECTMUSICPORTDOW
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirectMusicPortDownloadImpl_AddRef
(
LPDIRECTMUSICPORTDOWNLOAD
iface
)
{
static
ULONG
WINAPI
IDirectMusicPortDownloadImpl_AddRef
(
LPDIRECTMUSICPORTDOWNLOAD
iface
)
{
IDirectMusicPortDownloadImpl
*
This
=
(
IDirectMusicPortDownloadImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -46,7 +46,7 @@ ULONG WINAPI IDirectMusicPortDownloadImpl_AddRef (LPDIRECTMUSICPORTDOWNLOAD ifac
return
refCount
;
}
ULONG
WINAPI
IDirectMusicPortDownloadImpl_Release
(
LPDIRECTMUSICPORTDOWNLOAD
iface
)
{
static
ULONG
WINAPI
IDirectMusicPortDownloadImpl_Release
(
LPDIRECTMUSICPORTDOWNLOAD
iface
)
{
IDirectMusicPortDownloadImpl
*
This
=
(
IDirectMusicPortDownloadImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -62,37 +62,37 @@ ULONG WINAPI IDirectMusicPortDownloadImpl_Release (LPDIRECTMUSICPORTDOWNLOAD ifa
}
/* IDirectMusicPortDownload Interface follow: */
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_GetBuffer
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
DWORD
dwDLId
,
IDirectMusicDownload
**
ppIDMDownload
)
{
static
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_GetBuffer
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
DWORD
dwDLId
,
IDirectMusicDownload
**
ppIDMDownload
)
{
IDirectMusicPortDownloadImpl
*
This
=
(
IDirectMusicPortDownloadImpl
*
)
iface
;
FIXME
(
"(%p, %ld, %p): stub
\n
"
,
This
,
dwDLId
,
ppIDMDownload
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_AllocateBuffer
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
DWORD
dwSize
,
IDirectMusicDownload
**
ppIDMDownload
)
{
static
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_AllocateBuffer
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
DWORD
dwSize
,
IDirectMusicDownload
**
ppIDMDownload
)
{
IDirectMusicPortDownloadImpl
*
This
=
(
IDirectMusicPortDownloadImpl
*
)
iface
;
FIXME
(
"(%p, %ld, %p): stub
\n
"
,
This
,
dwSize
,
ppIDMDownload
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_GetDLId
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
DWORD
*
pdwStartDLId
,
DWORD
dwCount
)
{
static
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_GetDLId
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
DWORD
*
pdwStartDLId
,
DWORD
dwCount
)
{
IDirectMusicPortDownloadImpl
*
This
=
(
IDirectMusicPortDownloadImpl
*
)
iface
;
FIXME
(
"(%p, %p, %ld): stub
\n
"
,
This
,
pdwStartDLId
,
dwCount
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_GetAppend
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
DWORD
*
pdwAppend
)
{
static
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_GetAppend
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
DWORD
*
pdwAppend
)
{
IDirectMusicPortDownloadImpl
*
This
=
(
IDirectMusicPortDownloadImpl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pdwAppend
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_Download
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
IDirectMusicDownload
*
pIDMDownload
)
{
static
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_Download
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
IDirectMusicDownload
*
pIDMDownload
)
{
IDirectMusicPortDownloadImpl
*
This
=
(
IDirectMusicPortDownloadImpl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pIDMDownload
);
return
S_OK
;
}
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_Unload
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
IDirectMusicDownload
*
pIDMDownload
)
{
static
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_Unload
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
IDirectMusicDownload
*
pIDMDownload
)
{
IDirectMusicPortDownloadImpl
*
This
=
(
IDirectMusicPortDownloadImpl
*
)
iface
;
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pIDMDownload
);
return
S_OK
;
...
...
dlls/dmusic/thru.c
View file @
d37c555a
...
...
@@ -22,13 +22,13 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dmusic
);
/* IDirectMusicThru IUnknown parts follow: */
HRESULT
WINAPI
IDirectMusicThruImpl_QueryInterface
(
LPDIRECTMUSICTHRU
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirectMusicThruImpl_QueryInterface
(
LPDIRECTMUSICTHRU
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirectMusicThruImpl
*
This
=
(
IDirectMusicThruImpl
*
)
iface
;
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IDirectMusicThru
))
{
I
DirectMusicThruImpl
_AddRef
(
iface
);
I
Unknown
_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
...
...
@@ -36,7 +36,7 @@ HRESULT WINAPI IDirectMusicThruImpl_QueryInterface (LPDIRECTMUSICTHRU iface, REF
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirectMusicThruImpl_AddRef
(
LPDIRECTMUSICTHRU
iface
)
{
static
ULONG
WINAPI
IDirectMusicThruImpl_AddRef
(
LPDIRECTMUSICTHRU
iface
)
{
IDirectMusicThruImpl
*
This
=
(
IDirectMusicThruImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -47,7 +47,7 @@ ULONG WINAPI IDirectMusicThruImpl_AddRef (LPDIRECTMUSICTHRU iface) {
return
refCount
;
}
ULONG
WINAPI
IDirectMusicThruImpl_Release
(
LPDIRECTMUSICTHRU
iface
)
{
static
ULONG
WINAPI
IDirectMusicThruImpl_Release
(
LPDIRECTMUSICTHRU
iface
)
{
IDirectMusicThruImpl
*
This
=
(
IDirectMusicThruImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -63,7 +63,7 @@ ULONG WINAPI IDirectMusicThruImpl_Release (LPDIRECTMUSICTHRU iface) {
}
/* IDirectMusicThru Interface follow: */
HRESULT
WINAPI
IDirectMusicThruImpl_ThruChannel
(
LPDIRECTMUSICTHRU
iface
,
DWORD
dwSourceChannelGroup
,
DWORD
dwSourceChannel
,
DWORD
dwDestinationChannelGroup
,
DWORD
dwDestinationChannel
,
LPDIRECTMUSICPORT
pDestinationPort
)
{
static
HRESULT
WINAPI
IDirectMusicThruImpl_ThruChannel
(
LPDIRECTMUSICTHRU
iface
,
DWORD
dwSourceChannelGroup
,
DWORD
dwSourceChannel
,
DWORD
dwDestinationChannelGroup
,
DWORD
dwDestinationChannel
,
LPDIRECTMUSICPORT
pDestinationPort
)
{
IDirectMusicThruImpl
*
This
=
(
IDirectMusicThruImpl
*
)
iface
;
FIXME
(
"(%p, %ld, %ld, %ld, %ld, %p): stub
\n
"
,
This
,
dwSourceChannelGroup
,
dwSourceChannel
,
dwDestinationChannelGroup
,
dwDestinationChannel
,
pDestinationPort
);
return
S_OK
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment