Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f15473f5
Commit
f15473f5
authored
Mar 26, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Mar 26, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed debug formatting.
parent
53544175
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
dsound_main.c
dlls/dsound/dsound_main.c
+10
-7
No files found.
dlls/dsound/dsound_main.c
View file @
f15473f5
...
...
@@ -49,6 +49,7 @@
* - dsshow.exe, from DirectX 5.2 SDK (1998/12/04):
* Initializes the DLL properly with CoCreateInstance(), but the
* FileOpen dialog box is broken - could not test properly
* - The Dilbert Desktop Game: works (SB16)
*/
#include "config.h"
...
...
@@ -241,7 +242,7 @@ static void _dump_DSBCAPS(DWORD xmask) {
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
flags
)
/
sizeof
(
flags
[
0
]);
i
++
)
if
(
flags
[
i
].
mask
&
x
mask
)
if
(
(
flags
[
i
].
mask
&
xmask
)
==
flags
[
i
].
mask
)
DPRINTF
(
"%s "
,
flags
[
i
].
name
);
}
...
...
@@ -952,7 +953,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Stop(LPDIRECTSOUNDBUFFER iface)
static
DWORD
WINAPI
IDirectSoundBufferImpl_AddRef
(
LPDIRECTSOUNDBUFFER
iface
)
{
ICOM_THIS
(
IDirectSoundBufferImpl
,
iface
);
/* TRACE(
dsound,
"(%p) ref was %ld\n",This, This->ref); */
/* TRACE("(%p) ref was %ld\n",This, This->ref); */
return
++
(
This
->
ref
);
}
...
...
@@ -960,7 +961,7 @@ static DWORD WINAPI IDirectSoundBufferImpl_Release(LPDIRECTSOUNDBUFFER iface) {
ICOM_THIS
(
IDirectSoundBufferImpl
,
iface
);
int
i
;
/* TRACE(
dsound,
"(%p) ref was %ld\n",This, This->ref); */
/* TRACE("(%p) ref was %ld\n",This, This->ref); */
if
(
--
This
->
ref
)
return
This
->
ref
;
...
...
@@ -1191,6 +1192,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetFrequency(
return
DSERR_INVALIDPARAM
;
*
freq
=
This
->
freq
;
TRACE
(
"-> %d
\n
"
,
*
freq
);
return
DS_OK
;
}
...
...
@@ -1306,9 +1308,10 @@ static HRESULT WINAPI IDirectSoundImpl_CreateSoundBuffer(
return
DSERR_INVALIDPARAM
;
if
(
TRACE_ON
(
dsound
))
{
TRACE
(
"(size=%ld)
\n
"
,
dsbd
->
dwSize
);
TRACE
(
"(flags=0x%08lx
\n
"
,
dsbd
->
dwFlags
);
TRACE
(
"(s
tructs
ize=%ld)
\n
"
,
dsbd
->
dwSize
);
TRACE
(
"(flags=0x%08lx
:
\n
"
,
dsbd
->
dwFlags
);
_dump_DSBCAPS
(
dsbd
->
dwFlags
);
DPRINTF
(
")
\n
"
);
TRACE
(
"(bufferbytes=%ld)
\n
"
,
dsbd
->
dwBufferBytes
);
TRACE
(
"(lpwfxFormat=%p)
\n
"
,
dsbd
->
lpwfxFormat
);
}
...
...
@@ -1316,7 +1319,7 @@ static HRESULT WINAPI IDirectSoundImpl_CreateSoundBuffer(
wfex
=
dsbd
->
lpwfxFormat
;
if
(
wfex
)
TRACE
(
"(formattag=0x%04x,chans=%d,samplerate=%ld"
TRACE
(
"(formattag=0x%04x,chans=%d,samplerate=%ld
,
"
"bytespersec=%ld,blockalign=%d,bitspersamp=%d,cbSize=%d)
\n
"
,
wfex
->
wFormatTag
,
wfex
->
nChannels
,
wfex
->
nSamplesPerSec
,
wfex
->
nAvgBytesPerSec
,
wfex
->
nBlockAlign
,
...
...
@@ -1749,7 +1752,7 @@ static inline void get_fields(const IDirectSoundBufferImpl *dsb, BYTE *buf, INT
{
INT16
*
bufs
=
(
INT16
*
)
buf
;
/* TRACE(
dsound,
"(%p)", buf); */
/* TRACE("(%p)", buf); */
if
((
dsb
->
wfx
.
wBitsPerSample
==
8
)
&&
dsb
->
wfx
.
nChannels
==
2
)
{
*
fl
=
cvtU8toS16
(
*
buf
);
*
fr
=
cvtU8toS16
(
*
(
buf
+
1
));
...
...
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