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
5e6f0e93
Commit
5e6f0e93
authored
Jan 25, 2014
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Jan 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic/tests: Use common wine_dbgstr_guid implementation from test.h.
parent
cd4cd766
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
dmusic.c
dlls/dmusic/tests/dmusic.c
+4
-14
No files found.
dlls/dmusic/tests/dmusic.c
View file @
5e6f0e93
...
@@ -29,16 +29,6 @@
...
@@ -29,16 +29,6 @@
#include "dmusici.h"
#include "dmusici.h"
#include "dmksctrl.h"
#include "dmksctrl.h"
static
inline
const
char
*
debugstr_guid
(
const
GUID
*
id
)
{
static
char
string
[
39
];
sprintf
(
string
,
"{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}"
,
id
->
Data1
,
id
->
Data2
,
id
->
Data3
,
id
->
Data4
[
0
],
id
->
Data4
[
1
],
id
->
Data4
[
2
],
id
->
Data4
[
3
],
id
->
Data4
[
4
],
id
->
Data4
[
5
],
id
->
Data4
[
6
],
id
->
Data4
[
7
]
);
return
string
;
}
static
inline
const
char
*
debugstr_longlong
(
ULONGLONG
ll
)
static
inline
const
char
*
debugstr_longlong
(
ULONGLONG
ll
)
{
{
static
char
string
[
17
];
static
char
string
[
17
];
...
@@ -67,7 +57,7 @@ static void test_dmusic(void)
...
@@ -67,7 +57,7 @@ static void test_dmusic(void)
hr
=
IDirectMusic_GetMasterClock
(
dmusic
,
&
guid_clock
,
&
clock
);
hr
=
IDirectMusic_GetMasterClock
(
dmusic
,
&
guid_clock
,
&
clock
);
ok
(
hr
==
S_OK
,
"IDirectMusic_GetMasterClock returned: %x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IDirectMusic_GetMasterClock returned: %x
\n
"
,
hr
);
ok
(
clock
!=
NULL
,
"No clock returned
\n
"
);
ok
(
clock
!=
NULL
,
"No clock returned
\n
"
);
trace
(
" guidPort = %s
\n
"
,
debu
gstr_guid
(
&
guid_clock
));
trace
(
" guidPort = %s
\n
"
,
wine_db
gstr_guid
(
&
guid_clock
));
if
(
clock
)
if
(
clock
)
IReferenceClock_Release
(
clock
);
IReferenceClock_Release
(
clock
);
...
@@ -103,7 +93,7 @@ static void test_dmusic(void)
...
@@ -103,7 +93,7 @@ static void test_dmusic(void)
ok
(
port_caps
.
dwSize
==
sizeof
(
port_caps
),
"DMUS_PORTCAPS dwSize member is wrong (%u)
\n
"
,
port_caps
.
dwSize
);
ok
(
port_caps
.
dwSize
==
sizeof
(
port_caps
),
"DMUS_PORTCAPS dwSize member is wrong (%u)
\n
"
,
port_caps
.
dwSize
);
trace
(
"Port %u:
\n
"
,
index
);
trace
(
"Port %u:
\n
"
,
index
);
trace
(
" dwFlags = %x
\n
"
,
port_caps
.
dwFlags
);
trace
(
" dwFlags = %x
\n
"
,
port_caps
.
dwFlags
);
trace
(
" guidPort = %s
\n
"
,
debu
gstr_guid
(
&
port_caps
.
guidPort
));
trace
(
" guidPort = %s
\n
"
,
wine_db
gstr_guid
(
&
port_caps
.
guidPort
));
trace
(
" dwClass = %u
\n
"
,
port_caps
.
dwClass
);
trace
(
" dwClass = %u
\n
"
,
port_caps
.
dwClass
);
trace
(
" dwType = %u
\n
"
,
port_caps
.
dwType
);
trace
(
" dwType = %u
\n
"
,
port_caps
.
dwType
);
trace
(
" dwMemorySize = %u
\n
"
,
port_caps
.
dwMemorySize
);
trace
(
" dwMemorySize = %u
\n
"
,
port_caps
.
dwMemorySize
);
...
@@ -122,7 +112,7 @@ static void test_dmusic(void)
...
@@ -122,7 +112,7 @@ static void test_dmusic(void)
ok
(
clock_info
.
dwSize
==
sizeof
(
clock_info
),
"DMUS_CLOCKINFO dwSize member is wrong (%u)
\n
"
,
clock_info
.
dwSize
);
ok
(
clock_info
.
dwSize
==
sizeof
(
clock_info
),
"DMUS_CLOCKINFO dwSize member is wrong (%u)
\n
"
,
clock_info
.
dwSize
);
trace
(
"Clock %u:
\n
"
,
index
);
trace
(
"Clock %u:
\n
"
,
index
);
trace
(
" ctType = %u
\n
"
,
clock_info
.
ctType
);
trace
(
" ctType = %u
\n
"
,
clock_info
.
ctType
);
trace
(
" guidClock = %s
\n
"
,
debu
gstr_guid
(
&
clock_info
.
guidClock
));
trace
(
" guidClock = %s
\n
"
,
wine_db
gstr_guid
(
&
clock_info
.
guidClock
));
trace
(
" wszDescription = %s
\n
"
,
wine_dbgstr_w
(
clock_info
.
wszDescription
));
trace
(
" wszDescription = %s
\n
"
,
wine_dbgstr_w
(
clock_info
.
wszDescription
));
index
++
;
index
++
;
}
}
...
@@ -157,7 +147,7 @@ static void test_dmbuffer(void)
...
@@ -157,7 +147,7 @@ static void test_dmbuffer(void)
hr
=
IDirectMusicBuffer_GetBufferFormat
(
dmbuffer
,
&
format
);
hr
=
IDirectMusicBuffer_GetBufferFormat
(
dmbuffer
,
&
format
);
ok
(
hr
==
S_OK
,
"IDirectMusicBuffer_GetBufferFormat returned %x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IDirectMusicBuffer_GetBufferFormat returned %x
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
format
,
&
KSDATAFORMAT_SUBTYPE_MIDI
),
"Wrong format returned %s
\n
"
,
debu
gstr_guid
(
&
format
));
ok
(
IsEqualGUID
(
&
format
,
&
KSDATAFORMAT_SUBTYPE_MIDI
),
"Wrong format returned %s
\n
"
,
wine_db
gstr_guid
(
&
format
));
hr
=
IDirectMusicBuffer_GetMaxBytes
(
dmbuffer
,
&
size
);
hr
=
IDirectMusicBuffer_GetMaxBytes
(
dmbuffer
,
&
size
);
ok
(
hr
==
S_OK
,
"IDirectMusicBuffer_GetMaxBytes returned %x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IDirectMusicBuffer_GetMaxBytes returned %x
\n
"
,
hr
);
ok
(
size
==
1024
,
"Buffer size is %u instead of 1024
\n
"
,
size
);
ok
(
size
==
1024
,
"Buffer size is %u instead of 1024
\n
"
,
size
);
...
...
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