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
2dfd3e90
Commit
2dfd3e90
authored
Nov 10, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Nov 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciwave: Rework MCI notification system.
parent
2ac86feb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
38 deletions
+81
-38
mciwave.c
dlls/mciwave/mciwave.c
+73
-31
mci.c
dlls/winmm/tests/mci.c
+8
-7
No files found.
dlls/mciwave/mciwave.c
View file @
2dfd3e90
This diff is collapsed.
Click to expand it.
dlls/winmm/tests/mci.c
View file @
2dfd3e90
...
...
@@ -416,8 +416,8 @@ static void test_asyncWAVE(HWND hwnd)
err
=
mciSendString
(
"status mysound mode notify"
,
buf
,
sizeof
(
buf
),
hwnd
);
ok
(
!
err
,
"mci status mode returned error: %d
\n
"
,
err
);
if
(
!
err
)
ok
(
!
strcmp
(
buf
,
"paused"
),
"mci status mode: %s
\n
"
,
buf
);
t
odo_wine
test_notification1
(
hwnd
,
"play"
,
MCI_NOTIFY_SUPERSEDED
);
t
odo_wine
test_notification1
(
hwnd
,
"status"
,
MCI_NOTIFY_SUCCESSFUL
);
t
est_notification
(
hwnd
,
"play"
,
MCI_NOTIFY_SUPERSEDED
);
t
est_notification
(
hwnd
,
"status"
,
MCI_NOTIFY_SUCCESSFUL
);
buf
[
0
]
=
0
;
err
=
mciSendString
(
"status mysound position"
,
buf
,
sizeof
(
buf
),
hwnd
);
...
...
@@ -430,13 +430,14 @@ static void test_asyncWAVE(HWND hwnd)
ok
(
!
err
,
"mci stop returned error: %s
\n
"
,
dbg_mcierr
(
err
));
buf
[
0
]
=
0
;
err
=
mciSendString
(
"info mysound file
"
,
buf
,
sizeof
(
buf
),
NULL
);
err
=
mciSendString
(
"info mysound file
notify"
,
buf
,
sizeof
(
buf
),
hwnd
);
ok
(
!
err
,
"mci info file returned error: %d
\n
"
,
err
);
if
(
!
err
)
{
/* fully qualified name */
int
len
=
strlen
(
buf
);
todo_wine
ok
(
len
>
2
&&
buf
[
1
]
==
':'
,
"Expected full pathname from info file: %s
\n
"
,
buf
);
ok
(
len
>=
12
&&
!
strcmp
(
&
buf
[
len
-
12
],
"tempfile.wav"
),
"info file returned: %s
\n
"
,
buf
);
}
test_notification
(
hwnd
,
"info file"
,
MCI_NOTIFY_SUCCESSFUL
);
buf
[
0
]
=
0
;
err
=
mciSendString
(
"status mysound mode"
,
buf
,
sizeof
(
buf
),
hwnd
);
...
...
@@ -473,8 +474,8 @@ static void test_asyncWAVE(HWND hwnd)
err
=
mciSendString
(
"pause mysound notify"
,
NULL
,
0
,
NULL
);
/* notify no callback */
ok
(
!
err
,
"mci pause notify returned error: %s
\n
"
,
dbg_mcierr
(
err
));
/* Supersede even though pause cannot not
not
ify given no callback */
t
odo_wine
test_notification1
(
hwnd
,
"pause aborted play #1 notification"
,
MCI_NOTIFY_SUPERSEDED
);
/* Supersede even though pause cannot notify given no callback */
t
est_notification
(
hwnd
,
"pause aborted play #1 notification"
,
MCI_NOTIFY_SUPERSEDED
);
test_notification
(
hwnd
,
"impossible pause notification"
,
0
);
/* Seek or even Stop used to hang Wine on MacOS. */
...
...
@@ -490,7 +491,7 @@ static void test_asyncWAVE(HWND hwnd)
err
=
mciSendString
(
"pause mysound wait"
,
NULL
,
0
,
NULL
);
ok
(
!
err
,
"mci pause wait returned error: %d
\n
"
,
err
);
/* Unlike sequencer and cdaudio, waveaudio's pause does not abort. */
t
odo_wine
test_notification1
(
hwnd
,
"pause aborted play #2 notification"
,
0
);
t
est_notification
(
hwnd
,
"pause aborted play #2 notification"
,
0
);
err
=
mciSendString
(
"resume mysound wait"
,
NULL
,
0
,
NULL
);
ok
(
!
err
,
"mci resume wait returned error: %d
\n
"
,
err
);
...
...
@@ -518,7 +519,7 @@ static void test_asyncWAVE(HWND hwnd)
err
=
mciSendString
(
"close mysound wait"
,
NULL
,
0
,
NULL
);
ok
(
!
err
,
"mci close wait returned error: %d
\n
"
,
err
);
t
odo_wine
test_notification1
(
hwnd
,
"play (aborted by close)"
,
MCI_NOTIFY_ABORTED
);
t
est_notification
(
hwnd
,
"play (aborted by close)"
,
MCI_NOTIFY_ABORTED
);
}
static
void
test_AutoOpenWAVE
(
HWND
hwnd
)
...
...
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