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
92959b31
Commit
92959b31
authored
Oct 23, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime/tests: Test tempo track GetParam with GUID_TempoParam.
parent
7a9e45ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
dmime.c
dlls/dmime/tests/dmime.c
+44
-0
No files found.
dlls/dmime/tests/dmime.c
View file @
92959b31
...
...
@@ -3933,6 +3933,7 @@ static void test_tempo_track_play(void)
{.
lTime
=
4000
,
.
dblTempo
=
50
},
};
IDirectMusicPerformance
*
performance
;
MUSIC_TIME
next_time
;
IDirectMusicSegment
*
segment
;
IDirectMusicGraph
*
graph
;
IDirectMusicTrack
*
track
;
...
...
@@ -4015,6 +4016,49 @@ static void test_tempo_track_play(void)
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
IDirectMusicTrack_Release
(
track
);
hr
=
IDirectMusicSegment_GetParam
(
segment
,
&
GUID_TempoParam
,
-
1
,
DMUS_SEG_ALLTRACKS
,
0
,
NULL
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicSegment_GetParam
(
segment
,
&
GUID_TempoParam
,
-
1
,
DMUS_SEG_ALLTRACKS
,
0
,
NULL
,
&
param
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
memset
(
&
param
,
0xcd
,
sizeof
(
param
));
next_time
=
0xdeadbeef
;
hr
=
IDirectMusicSegment_GetParam
(
segment
,
&
GUID_TempoParam
,
-
1
,
DMUS_SEG_ALLTRACKS
,
0
,
&
next_time
,
&
param
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
next_time
==
100
,
"got next_time %lu
\n
"
,
next_time
);
todo_wine
ok
(
param
.
mtTime
==
100
,
"got mtTime %ld
\n
"
,
param
.
mtTime
);
todo_wine
ok
(
param
.
dblTempo
==
80
,
"got dblTempo %f
\n
"
,
param
.
dblTempo
);
hr
=
IDirectMusicSegment_GetParam
(
segment
,
&
GUID_TempoParam
,
-
1
,
DMUS_SEG_ALLTRACKS
,
100
,
&
next_time
,
&
param
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
next_time
==
200
,
"got next_time %lu
\n
"
,
next_time
);
ok
(
param
.
mtTime
==
0
,
"got mtTime %ld
\n
"
,
param
.
mtTime
);
todo_wine
ok
(
param
.
dblTempo
==
80
,
"got dblTempo %f
\n
"
,
param
.
dblTempo
);
hr
=
IDirectMusicSegment_GetParam
(
segment
,
&
GUID_TempoParam
,
-
1
,
DMUS_SEG_ALLTRACKS
,
199
,
&
next_time
,
&
param
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
next_time
==
101
,
"got next_time %lu
\n
"
,
next_time
);
todo_wine
ok
(
param
.
mtTime
==
-
99
,
"got mtTime %ld
\n
"
,
param
.
mtTime
);
todo_wine
ok
(
param
.
dblTempo
==
80
,
"got dblTempo %f
\n
"
,
param
.
dblTempo
);
hr
=
IDirectMusicSegment_GetParam
(
segment
,
&
GUID_TempoParam
,
-
1
,
DMUS_SEG_ALLTRACKS
,
200
,
&
next_time
,
&
param
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
next_time
==
100
,
"got next_time %lu
\n
"
,
next_time
);
todo_wine
ok
(
param
.
mtTime
==
-
100
,
"got mtTime %ld
\n
"
,
param
.
mtTime
);
todo_wine
ok
(
param
.
dblTempo
==
80
,
"got dblTempo %f
\n
"
,
param
.
dblTempo
);
hr
=
IDirectMusicSegment_GetParam
(
segment
,
&
GUID_TempoParam
,
-
1
,
DMUS_SEG_ALLTRACKS
,
299
,
&
next_time
,
&
param
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
next_time
==
1
,
"got next_time %lu
\n
"
,
next_time
);
todo_wine
ok
(
param
.
mtTime
==
-
199
,
"got mtTime %ld
\n
"
,
param
.
mtTime
);
todo_wine
ok
(
param
.
dblTempo
==
80
,
"got dblTempo %f
\n
"
,
param
.
dblTempo
);
hr
=
IDirectMusicSegment_GetParam
(
segment
,
&
GUID_TempoParam
,
-
1
,
DMUS_SEG_ALLTRACKS
,
300
,
&
next_time
,
&
param
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
next_time
==
3700
,
"got next_time %lu
\n
"
,
next_time
);
todo_wine
ok
(
param
.
mtTime
==
-
100
,
"got mtTime %ld
\n
"
,
param
.
mtTime
);
todo_wine
ok
(
param
.
dblTempo
==
20
,
"got dblTempo %f
\n
"
,
param
.
dblTempo
);
hr
=
IDirectMusicSegment_GetParam
(
segment
,
&
GUID_TempoParam
,
-
1
,
DMUS_SEG_ALLTRACKS
,
5000
,
&
next_time
,
&
param
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
next_time
==
0
,
"got next_time %lu
\n
"
,
next_time
);
todo_wine
ok
(
param
.
mtTime
==
-
1000
,
"got mtTime %ld
\n
"
,
param
.
mtTime
);
todo_wine
ok
(
param
.
dblTempo
==
50
,
"got dblTempo %f
\n
"
,
param
.
dblTempo
);
/* now play the segment, and check produced messages */
...
...
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