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
74662974
Commit
74662974
authored
Aug 12, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Aug 12, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start cleaning up error messages.
Don't print verbose info unless in interactive mode or debugging.
parent
56a4a76a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
ds3d.c
dlls/dsound/tests/ds3d.c
+0
-0
dsound.c
dlls/dsound/tests/dsound.c
+12
-6
No files found.
dlls/dsound/tests/ds3d.c
View file @
74662974
This diff is collapsed.
Click to expand it.
dlls/dsound/tests/dsound.c
View file @
74662974
...
...
@@ -524,7 +524,8 @@ static HRESULT test_primary_secondary(LPGUID lpGuid)
wfx
.
nSamplesPerSec
!=
wfx2
.
nSamplesPerSec
||
wfx
.
wBitsPerSample
!=
wfx2
.
wBitsPerSample
||
wfx
.
nChannels
!=
wfx2
.
nChannels
))
{
trace
(
"Requested primary format tag=0x%04x %ldx%dx%d avg.B/s=%ld align=%d
\n
"
,
trace
(
"Requested primary format tag=0x%04x %ldx%dx%d "
"avg.B/s=%ld align=%d
\n
"
,
wfx2
.
wFormatTag
,
wfx2
.
nSamplesPerSec
,
wfx2
.
wBitsPerSample
,
wfx2
.
nChannels
,
wfx2
.
nAvgBytesPerSec
,
wfx2
.
nBlockAlign
);
trace
(
"Got tag=0x%04x %ldx%dx%d avg.B/s=%ld align=%d
\n
"
,
...
...
@@ -545,9 +546,12 @@ static HRESULT test_primary_secondary(LPGUID lpGuid)
bufdesc
.
dwFlags
=
DSBCAPS_GETCURRENTPOSITION2
;
bufdesc
.
dwBufferBytes
=
wfx
.
nAvgBytesPerSec
*
BUFFER_LEN
/
1000
;
bufdesc
.
lpwfxFormat
=&
wfx2
;
trace
(
" Testing a primary buffer at %ldx%dx%d with a secondary buffer at %ldx%dx%d
\n
"
,
wfx
.
nSamplesPerSec
,
wfx
.
wBitsPerSample
,
wfx
.
nChannels
,
wfx2
.
nSamplesPerSec
,
wfx2
.
wBitsPerSample
,
wfx2
.
nChannels
);
if
(
winetest_interactive
)
{
trace
(
" Testing a primary buffer at %ldx%dx%d with a "
"secondary buffer at %ldx%dx%d
\n
"
,
wfx
.
nSamplesPerSec
,
wfx
.
wBitsPerSample
,
wfx
.
nChannels
,
wfx2
.
nSamplesPerSec
,
wfx2
.
wBitsPerSample
,
wfx2
.
nChannels
);
}
rc
=
IDirectSound_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
secondary
,
NULL
);
ok
(
rc
==
DS_OK
&&
secondary
!=
NULL
,
"IDirectSound_CreateSoundBuffer failed to create a secondary "
...
...
@@ -634,8 +638,10 @@ static HRESULT test_secondary(LPGUID lpGuid)
bufdesc
.
dwFlags
=
DSBCAPS_GETCURRENTPOSITION2
;
bufdesc
.
dwBufferBytes
=
wfx
.
nAvgBytesPerSec
*
BUFFER_LEN
/
1000
;
bufdesc
.
lpwfxFormat
=&
wfx
;
trace
(
" Testing a secondary buffer at %ldx%dx%d
\n
"
,
wfx
.
nSamplesPerSec
,
wfx
.
wBitsPerSample
,
wfx
.
nChannels
);
if
(
winetest_interactive
)
{
trace
(
" Testing a secondary buffer at %ldx%dx%d
\n
"
,
wfx
.
nSamplesPerSec
,
wfx
.
wBitsPerSample
,
wfx
.
nChannels
);
}
rc
=
IDirectSound_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
secondary
,
NULL
);
ok
(
rc
==
DS_OK
&&
secondary
!=
NULL
,
"IDirectSound_CreateSoundBuffer failed to create a secondary "
...
...
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