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
a4253ba0
Commit
a4253ba0
authored
Oct 12, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Win64 printf format warning fixes.
parent
690ae7ba
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
71 additions
and
72 deletions
+71
-72
Makefile.in
dlls/dmusic/Makefile.in
+0
-1
buffer.c
dlls/dmusic/buffer.c
+5
-5
clock.c
dlls/dmusic/clock.c
+3
-3
collection.c
dlls/dmusic/collection.c
+23
-23
dmusic.c
dlls/dmusic/dmusic.c
+4
-4
dmusic_main.c
dlls/dmusic/dmusic_main.c
+2
-2
download.c
dlls/dmusic/download.c
+2
-2
downloadedinstrument.c
dlls/dmusic/downloadedinstrument.c
+2
-2
instrument.c
dlls/dmusic/instrument.c
+14
-14
port.c
dlls/dmusic/port.c
+8
-8
portdownload.c
dlls/dmusic/portdownload.c
+5
-5
thru.c
dlls/dmusic/thru.c
+3
-3
No files found.
dlls/dmusic/Makefile.in
View file @
a4253ba0
...
...
@@ -5,7 +5,6 @@ VPATH = @srcdir@
MODULE
=
dmusic.dll
IMPORTS
=
winmm ole32 msacm32 dsound rpcrt4 user32 advapi32 kernel32 ntdll
EXTRALIBS
=
-ldxguid
-luuid
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
C_SRCS
=
\
buffer.c
\
...
...
dlls/dmusic/buffer.c
View file @
a4253ba0
...
...
@@ -39,7 +39,7 @@ static ULONG WINAPI IDirectMusicBufferImpl_AddRef (LPDIRECTMUSICBUFFER iface) {
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
DMUSIC_LockModule
();
...
...
@@ -50,7 +50,7 @@ static ULONG WINAPI IDirectMusicBufferImpl_Release (LPDIRECTMUSICBUFFER iface) {
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -76,13 +76,13 @@ static HRESULT WINAPI IDirectMusicBufferImpl_TotalTime (LPDIRECTMUSICBUFFER ifac
static
HRESULT
WINAPI
IDirectMusicBufferImpl_PackStructured
(
LPDIRECTMUSICBUFFER
iface
,
REFERENCE_TIME
rt
,
DWORD
dwChannelGroup
,
DWORD
dwChannelMessage
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p, 0x%s, %
ld, %l
d): stub
\n
"
,
This
,
wine_dbgstr_longlong
(
rt
),
dwChannelGroup
,
dwChannelMessage
);
FIXME
(
"(%p, 0x%s, %
d, %
d): stub
\n
"
,
This
,
wine_dbgstr_longlong
(
rt
),
dwChannelGroup
,
dwChannelMessage
);
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusicBufferImpl_PackUnstructured
(
LPDIRECTMUSICBUFFER
iface
,
REFERENCE_TIME
rt
,
DWORD
dwChannelGroup
,
DWORD
cb
,
LPBYTE
lpb
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p, 0x%s, %
ld, %l
d, %p): stub
\n
"
,
This
,
wine_dbgstr_longlong
(
rt
),
dwChannelGroup
,
cb
,
lpb
);
FIXME
(
"(%p, 0x%s, %
d, %
d, %p): stub
\n
"
,
This
,
wine_dbgstr_longlong
(
rt
),
dwChannelGroup
,
cb
,
lpb
);
return
S_OK
;
}
...
...
@@ -136,7 +136,7 @@ static HRESULT WINAPI IDirectMusicBufferImpl_SetStartTime (LPDIRECTMUSICBUFFER i
static
HRESULT
WINAPI
IDirectMusicBufferImpl_SetUsedBytes
(
LPDIRECTMUSICBUFFER
iface
,
DWORD
cb
)
{
IDirectMusicBufferImpl
*
This
=
(
IDirectMusicBufferImpl
*
)
iface
;
FIXME
(
"(%p, %
l
d): stub
\n
"
,
This
,
cb
);
FIXME
(
"(%p, %d): stub
\n
"
,
This
,
cb
);
return
S_OK
;
}
...
...
dlls/dmusic/clock.c
View file @
a4253ba0
...
...
@@ -40,7 +40,7 @@ static ULONG WINAPI IReferenceClockImpl_AddRef (IReferenceClock *iface) {
IReferenceClockImpl
*
This
=
(
IReferenceClockImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
DMUSIC_LockModule
();
...
...
@@ -51,7 +51,7 @@ static ULONG WINAPI IReferenceClockImpl_Release (IReferenceClock *iface) {
IReferenceClockImpl
*
This
=
(
IReferenceClockImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -84,7 +84,7 @@ static HRESULT WINAPI IReferenceClockImpl_AdvisePeriodic (IReferenceClock *iface
static
HRESULT
WINAPI
IReferenceClockImpl_Unadvise
(
IReferenceClock
*
iface
,
DWORD
dwAdviseCookie
)
{
IReferenceClockImpl
*
This
=
(
IReferenceClockImpl
*
)
iface
;
FIXME
(
"(%p, %
l
d): stub
\n
"
,
This
,
dwAdviseCookie
);
FIXME
(
"(%p, %d): stub
\n
"
,
This
,
dwAdviseCookie
);
return
S_OK
;
}
...
...
dlls/dmusic/collection.c
View file @
a4253ba0
This diff is collapsed.
Click to expand it.
dlls/dmusic/dmusic.c
View file @
a4253ba0
...
...
@@ -42,7 +42,7 @@ static ULONG WINAPI IDirectMusic8Impl_AddRef (LPDIRECTMUSIC8 iface) {
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
DMUSIC_LockModule
();
...
...
@@ -53,7 +53,7 @@ static ULONG WINAPI IDirectMusic8Impl_Release (LPDIRECTMUSIC8 iface) {
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -67,7 +67,7 @@ static ULONG WINAPI IDirectMusic8Impl_Release (LPDIRECTMUSIC8 iface) {
/* IDirectMusic8Impl IDirectMusic part: */
static
HRESULT
WINAPI
IDirectMusic8Impl_EnumPort
(
LPDIRECTMUSIC8
iface
,
DWORD
dwIndex
,
LPDMUS_PORTCAPS
pPortCaps
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
TRACE
(
"(%p, %
l
d, %p)
\n
"
,
This
,
dwIndex
,
pPortCaps
);
TRACE
(
"(%p, %d, %p)
\n
"
,
This
,
dwIndex
,
pPortCaps
);
if
(
NULL
==
pPortCaps
)
{
return
E_POINTER
;
}
/* i guess the first port shown is always software synthesizer */
if
(
dwIndex
==
0
)
...
...
@@ -144,7 +144,7 @@ static HRESULT WINAPI IDirectMusic8Impl_CreatePort (LPDIRECTMUSIC8 iface, REFCLS
static
HRESULT
WINAPI
IDirectMusic8Impl_EnumMasterClock
(
LPDIRECTMUSIC8
iface
,
DWORD
dwIndex
,
LPDMUS_CLOCKINFO
lpClockInfo
)
{
IDirectMusic8Impl
*
This
=
(
IDirectMusic8Impl
*
)
iface
;
FIXME
(
"(%p, %
l
d, %p): stub
\n
"
,
This
,
dwIndex
,
lpClockInfo
);
FIXME
(
"(%p, %d, %p): stub
\n
"
,
This
,
dwIndex
,
lpClockInfo
);
return
S_FALSE
;
}
...
...
dlls/dmusic/dmusic_main.c
View file @
a4253ba0
...
...
@@ -540,7 +540,7 @@ const char *debugstr_dmreturn (DWORD code) {
return
codes
[
i
].
name
;
}
/* if we didn't find it, return value */
return
wine_dbg_sprintf
(
"0x%08
l
x"
,
code
);
return
wine_dbg_sprintf
(
"0x%08x"
,
code
);
}
/* generic flag-dumping function */
...
...
@@ -587,7 +587,7 @@ const char *debugstr_DMUS_OBJECTDESC (LPDMUS_OBJECTDESC pDesc) {
char
buffer
[
1024
]
=
""
,
*
ptr
=
&
buffer
[
0
];
ptr
+=
sprintf
(
ptr
,
"DMUS_OBJECTDESC (%p):
\n
"
,
pDesc
);
ptr
+=
sprintf
(
ptr
,
" - dwSize = %
l
d
\n
"
,
pDesc
->
dwSize
);
ptr
+=
sprintf
(
ptr
,
" - dwSize = %d
\n
"
,
pDesc
->
dwSize
);
ptr
+=
sprintf
(
ptr
,
" - dwValidData = %s
\n
"
,
debugstr_DMUS_OBJ_FLAGS
(
pDesc
->
dwValidData
));
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_CLASS
)
ptr
+=
sprintf
(
ptr
,
" - guidClass = %s
\n
"
,
debugstr_dmguid
(
&
pDesc
->
guidClass
));
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_OBJECT
)
ptr
+=
sprintf
(
ptr
,
" - guidObject = %s
\n
"
,
debugstr_guid
(
&
pDesc
->
guidObject
));
...
...
dlls/dmusic/download.c
View file @
a4253ba0
...
...
@@ -40,7 +40,7 @@ static ULONG WINAPI IDirectMusicDownloadImpl_AddRef (LPDIRECTMUSICDOWNLOAD iface
IDirectMusicDownloadImpl
*
This
=
(
IDirectMusicDownloadImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
DMUSIC_LockModule
();
...
...
@@ -51,7 +51,7 @@ static ULONG WINAPI IDirectMusicDownloadImpl_Release (LPDIRECTMUSICDOWNLOAD ifac
IDirectMusicDownloadImpl
*
This
=
(
IDirectMusicDownloadImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/dmusic/downloadedinstrument.c
View file @
a4253ba0
...
...
@@ -40,7 +40,7 @@ static ULONG WINAPI IDirectMusicDownloadedInstrumentImpl_AddRef (LPDIRECTMUSICDO
IDirectMusicDownloadedInstrumentImpl
*
This
=
(
IDirectMusicDownloadedInstrumentImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
DMUSIC_LockModule
();
...
...
@@ -51,7 +51,7 @@ static ULONG WINAPI IDirectMusicDownloadedInstrumentImpl_Release (LPDIRECTMUSICD
IDirectMusicDownloadedInstrumentImpl
*
This
=
(
IDirectMusicDownloadedInstrumentImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/dmusic/instrument.c
View file @
a4253ba0
...
...
@@ -59,7 +59,7 @@ static ULONG WINAPI IDirectMusicInstrumentImpl_IUnknown_AddRef (LPUNKNOWN iface)
ICOM_THIS_MULTI
(
IDirectMusicInstrumentImpl
,
UnknownVtbl
,
iface
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
DMUSIC_LockModule
();
...
...
@@ -70,7 +70,7 @@ static ULONG WINAPI IDirectMusicInstrumentImpl_IUnknown_Release (LPUNKNOWN iface
ICOM_THIS_MULTI
(
IDirectMusicInstrumentImpl
,
UnknownVtbl
,
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -112,7 +112,7 @@ static HRESULT WINAPI IDirectMusicInstrumentImpl_IDirectMusicInstrument_GetPatch
static
HRESULT
WINAPI
IDirectMusicInstrumentImpl_IDirectMusicInstrument_SetPatch
(
LPDIRECTMUSICINSTRUMENT
iface
,
DWORD
dwPatch
)
{
ICOM_THIS_MULTI
(
IDirectMusicInstrumentImpl
,
InstrumentVtbl
,
iface
);
TRACE
(
"(%p, %
l
d): stub
\n
"
,
This
,
dwPatch
);
TRACE
(
"(%p, %d): stub
\n
"
,
This
,
dwPatch
);
Patch2MIDILOCALE
(
dwPatch
,
&
This
->
pHeader
->
Locale
);
return
S_OK
;
}
...
...
@@ -156,7 +156,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
IStream_Seek
(
pStm
,
This
->
liInstrumentPosition
,
STREAM_SEEK_SET
,
NULL
);
IStream_Read
(
pStm
,
&
Chunk
,
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
),
NULL
);
TRACE_
(
dmfile
)(
": %s chunk (size = 0x%04
l
x)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
TRACE_
(
dmfile
)(
": %s chunk (size = 0x%04x)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
switch
(
Chunk
.
fccID
)
{
case
FOURCC_LIST
:
{
IStream_Read
(
pStm
,
&
Chunk
.
fccID
,
sizeof
(
FOURCC
),
NULL
);
...
...
@@ -169,7 +169,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
do
{
IStream_Read
(
pStm
,
&
Chunk
,
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
),
NULL
);
ListCount
[
0
]
+=
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
)
+
Chunk
.
dwSize
;
TRACE_
(
dmfile
)(
": %s chunk (size = 0x%04
l
x)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
TRACE_
(
dmfile
)(
": %s chunk (size = 0x%04x)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
switch
(
Chunk
.
fccID
)
{
case
FOURCC_INSH
:
{
TRACE_
(
dmfile
)(
": instrument header chunk
\n
"
);
...
...
@@ -194,7 +194,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
do
{
IStream_Read
(
pStm
,
&
Chunk
,
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
),
NULL
);
ListCount
[
1
]
+=
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
)
+
Chunk
.
dwSize
;
TRACE_
(
dmfile
)(
": %s chunk (size = 0x%04
l
x)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
TRACE_
(
dmfile
)(
": %s chunk (size = 0x%04x)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
switch
(
Chunk
.
fccID
)
{
case
FOURCC_LIST
:
{
IStream_Read
(
pStm
,
&
Chunk
.
fccID
,
sizeof
(
FOURCC
),
NULL
);
...
...
@@ -213,7 +213,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
do
{
IStream_Read
(
pStm
,
&
Chunk
,
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
),
NULL
);
ListCount
[
2
]
+=
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
)
+
Chunk
.
dwSize
;
TRACE_
(
dmfile
)(
": %s chunk (size = 0x%04
l
x)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
TRACE_
(
dmfile
)(
": %s chunk (size = 0x%04x)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
switch
(
Chunk
.
fccID
)
{
case
FOURCC_RGNH
:
{
TRACE_
(
dmfile
)(
": region header chunk
\n
"
);
...
...
@@ -243,7 +243,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
break
;
}
}
TRACE_
(
dmfile
)(
": ListCount[2] = %
ld < ListSize[2] = %l
d
\n
"
,
ListCount
[
2
],
ListSize
[
2
]);
TRACE_
(
dmfile
)(
": ListCount[2] = %
d < ListSize[2] = %
d
\n
"
,
ListCount
[
2
],
ListSize
[
2
]);
}
while
(
ListCount
[
2
]
<
ListSize
[
2
]);
FIXME
(
": need to write temporary data to instrument data
\n
"
);
break
;
...
...
@@ -264,7 +264,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
break
;
}
}
TRACE_
(
dmfile
)(
": ListCount[1] = %
ld < ListSize[1] = %l
d
\n
"
,
ListCount
[
1
],
ListSize
[
1
]);
TRACE_
(
dmfile
)(
": ListCount[1] = %
d < ListSize[1] = %
d
\n
"
,
ListCount
[
1
],
ListSize
[
1
]);
}
while
(
ListCount
[
1
]
<
ListSize
[
1
]);
break
;
}
...
...
@@ -273,7 +273,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
do
{
IStream_Read
(
pStm
,
&
Chunk
,
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
),
NULL
);
ListCount
[
1
]
+=
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
)
+
Chunk
.
dwSize
;
TRACE_
(
dmfile
)(
": %s chunk (size = 0x%04
l
x)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
TRACE_
(
dmfile
)(
": %s chunk (size = 0x%04x)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
switch
(
Chunk
.
fccID
)
{
case
FOURCC_ART1
:
{
/* temporary structures */
...
...
@@ -295,7 +295,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
break
;
}
}
TRACE_
(
dmfile
)(
": ListCount[1] = %
ld < ListSize[1] = %l
d
\n
"
,
ListCount
[
1
],
ListSize
[
1
]);
TRACE_
(
dmfile
)(
": ListCount[1] = %
d < ListSize[1] = %
d
\n
"
,
ListCount
[
1
],
ListSize
[
1
]);
}
while
(
ListCount
[
1
]
<
ListSize
[
1
]);
break
;
}
...
...
@@ -304,7 +304,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
do
{
IStream_Read
(
pStm
,
&
Chunk
,
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
),
NULL
);
ListCount
[
1
]
+=
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
)
+
Chunk
.
dwSize
;
TRACE_
(
dmfile
)(
": %s chunk (size = 0x%04
l
x)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
TRACE_
(
dmfile
)(
": %s chunk (size = 0x%04x)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
switch
(
Chunk
.
fccID
)
{
case
mmioFOURCC
(
'I'
,
'N'
,
'A'
,
'M'
):
{
TRACE_
(
dmfile
)(
": name chunk (ignored)
\n
"
);
...
...
@@ -370,7 +370,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
break
;
}
}
TRACE_
(
dmfile
)(
": ListCount[1] = %
ld < ListSize[1] = %l
d
\n
"
,
ListCount
[
1
],
ListSize
[
1
]);
TRACE_
(
dmfile
)(
": ListCount[1] = %
d < ListSize[1] = %
d
\n
"
,
ListCount
[
1
],
ListSize
[
1
]);
}
while
(
ListCount
[
1
]
<
ListSize
[
1
]);
break
;
}
...
...
@@ -391,7 +391,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
break
;
}
}
TRACE_
(
dmfile
)(
": ListCount[0] = %
ld < ListSize[0] = %l
d
\n
"
,
ListCount
[
0
],
ListSize
[
0
]);
TRACE_
(
dmfile
)(
": ListCount[0] = %
d < ListSize[0] = %
d
\n
"
,
ListCount
[
0
],
ListSize
[
0
]);
}
while
(
ListCount
[
0
]
<
ListSize
[
0
]);
break
;
}
...
...
dlls/dmusic/port.c
View file @
a4253ba0
...
...
@@ -39,7 +39,7 @@ static ULONG WINAPI IDirectMusicPortImpl_AddRef (LPDIRECTMUSICPORT iface) {
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
DMUSIC_LockModule
();
...
...
@@ -50,7 +50,7 @@ static ULONG WINAPI IDirectMusicPortImpl_Release (LPDIRECTMUSICPORT iface) {
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -82,7 +82,7 @@ static HRESULT WINAPI IDirectMusicPortImpl_Read (LPDIRECTMUSICPORT iface, LPDIRE
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, %
l
d): stub
\n
"
,
This
,
pInstrument
,
ppDownloadedInstrument
,
pNoteRanges
,
dwNumNoteRanges
);
FIXME
(
"(%p, %p, %p, %p, %d): stub
\n
"
,
This
,
pInstrument
,
ppDownloadedInstrument
,
pNoteRanges
,
dwNumNoteRanges
);
return
S_OK
;
}
...
...
@@ -121,13 +121,13 @@ static HRESULT WINAPI IDirectMusicPortImpl_GetCaps (LPDIRECTMUSICPORT iface, LPD
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, %l
d, %p, %p): stub
\n
"
,
This
,
dwIoControlCode
,
lpInBuffer
,
nInBufferSize
,
lpOutBuffer
,
nOutBufferSize
,
lpBytesReturned
,
lpOverlapped
);
FIXME
(
"(%p, %
d, %p, %d, %p, %
d, %p, %p): stub
\n
"
,
This
,
dwIoControlCode
,
lpInBuffer
,
nInBufferSize
,
lpOutBuffer
,
nOutBufferSize
,
lpBytesReturned
,
lpOverlapped
);
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusicPortImpl_SetNumChannelGroups
(
LPDIRECTMUSICPORT
iface
,
DWORD
dwChannelGroups
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
FIXME
(
"(%p, %
l
d): semi-stub
\n
"
,
This
,
dwChannelGroups
);
FIXME
(
"(%p, %d): semi-stub
\n
"
,
This
,
dwChannelGroups
);
This
->
nrofgroups
=
dwChannelGroups
;
return
S_OK
;
}
...
...
@@ -148,9 +148,9 @@ HRESULT WINAPI IDirectMusicPortImpl_Activate (LPDIRECTMUSICPORT iface, BOOL fAct
static
HRESULT
WINAPI
IDirectMusicPortImpl_SetChannelPriority
(
LPDIRECTMUSICPORT
iface
,
DWORD
dwChannelGroup
,
DWORD
dwChannel
,
DWORD
dwPriority
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
FIXME
(
"(%p, %
ld, %ld, %l
d): semi-stub
\n
"
,
This
,
dwChannelGroup
,
dwChannel
,
dwPriority
);
FIXME
(
"(%p, %
d, %d, %
d): semi-stub
\n
"
,
This
,
dwChannelGroup
,
dwChannel
,
dwPriority
);
if
(
dwChannel
>
16
)
{
WARN
(
"isn't there supposed to be 16 channels (no. %
l
d requested)?! (faking as it is ok)
\n
"
,
dwChannel
);
WARN
(
"isn't there supposed to be 16 channels (no. %d requested)?! (faking as it is ok)
\n
"
,
dwChannel
);
/*return E_INVALIDARG;*/
}
return
S_OK
;
...
...
@@ -158,7 +158,7 @@ static HRESULT WINAPI IDirectMusicPortImpl_SetChannelPriority (LPDIRECTMUSICPORT
static
HRESULT
WINAPI
IDirectMusicPortImpl_GetChannelPriority
(
LPDIRECTMUSICPORT
iface
,
DWORD
dwChannelGroup
,
DWORD
dwChannel
,
LPDWORD
pdwPriority
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
TRACE
(
"(%p, %
ld, %l
d, %p)
\n
"
,
This
,
dwChannelGroup
,
dwChannel
,
pdwPriority
);
TRACE
(
"(%p, %
d, %
d, %p)
\n
"
,
This
,
dwChannelGroup
,
dwChannel
,
pdwPriority
);
*
pdwPriority
=
This
->
group
[
dwChannelGroup
-
1
].
channel
[
dwChannel
].
priority
;
return
S_OK
;
}
...
...
dlls/dmusic/portdownload.c
View file @
a4253ba0
...
...
@@ -39,7 +39,7 @@ static ULONG WINAPI IDirectMusicPortDownloadImpl_AddRef (LPDIRECTMUSICPORTDOWNLO
IDirectMusicPortDownloadImpl
*
This
=
(
IDirectMusicPortDownloadImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
DMUSIC_LockModule
();
...
...
@@ -50,7 +50,7 @@ static ULONG WINAPI IDirectMusicPortDownloadImpl_Release (LPDIRECTMUSICPORTDOWNL
IDirectMusicPortDownloadImpl
*
This
=
(
IDirectMusicPortDownloadImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -64,19 +64,19 @@ static ULONG WINAPI IDirectMusicPortDownloadImpl_Release (LPDIRECTMUSICPORTDOWNL
/* IDirectMusicPortDownload Interface follow: */
static
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_GetBuffer
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
DWORD
dwDLId
,
IDirectMusicDownload
**
ppIDMDownload
)
{
IDirectMusicPortDownloadImpl
*
This
=
(
IDirectMusicPortDownloadImpl
*
)
iface
;
FIXME
(
"(%p, %
l
d, %p): stub
\n
"
,
This
,
dwDLId
,
ppIDMDownload
);
FIXME
(
"(%p, %d, %p): stub
\n
"
,
This
,
dwDLId
,
ppIDMDownload
);
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_AllocateBuffer
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
DWORD
dwSize
,
IDirectMusicDownload
**
ppIDMDownload
)
{
IDirectMusicPortDownloadImpl
*
This
=
(
IDirectMusicPortDownloadImpl
*
)
iface
;
FIXME
(
"(%p, %
l
d, %p): stub
\n
"
,
This
,
dwSize
,
ppIDMDownload
);
FIXME
(
"(%p, %d, %p): stub
\n
"
,
This
,
dwSize
,
ppIDMDownload
);
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusicPortDownloadImpl_GetDLId
(
LPDIRECTMUSICPORTDOWNLOAD
iface
,
DWORD
*
pdwStartDLId
,
DWORD
dwCount
)
{
IDirectMusicPortDownloadImpl
*
This
=
(
IDirectMusicPortDownloadImpl
*
)
iface
;
FIXME
(
"(%p, %p, %
l
d): stub
\n
"
,
This
,
pdwStartDLId
,
dwCount
);
FIXME
(
"(%p, %p, %d): stub
\n
"
,
This
,
pdwStartDLId
,
dwCount
);
return
S_OK
;
}
...
...
dlls/dmusic/thru.c
View file @
a4253ba0
...
...
@@ -40,7 +40,7 @@ static ULONG WINAPI IDirectMusicThruImpl_AddRef (LPDIRECTMUSICTHRU iface) {
IDirectMusicThruImpl
*
This
=
(
IDirectMusicThruImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
DMUSIC_LockModule
();
...
...
@@ -51,7 +51,7 @@ static ULONG WINAPI IDirectMusicThruImpl_Release (LPDIRECTMUSICTHRU iface) {
IDirectMusicThruImpl
*
This
=
(
IDirectMusicThruImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -65,7 +65,7 @@ static ULONG WINAPI IDirectMusicThruImpl_Release (LPDIRECTMUSICTHRU iface) {
/* IDirectMusicThru Interface follow: */
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, %l
d, %p): stub
\n
"
,
This
,
dwSourceChannelGroup
,
dwSourceChannel
,
dwDestinationChannelGroup
,
dwDestinationChannel
,
pDestinationPort
);
FIXME
(
"(%p, %
d, %d, %d, %
d, %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