Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
6ce8a31b
Commit
6ce8a31b
authored
Mar 06, 2024
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Mar 21, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Initialize MTA in IDirectSound::Initialize().
RE:D Cherish! (Trial ver) depends on this behavior. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53613
parent
67153fa0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
8 deletions
+4
-8
dsound.c
dlls/dsound/dsound.c
+3
-0
dsound_private.h
dlls/dsound/dsound_private.h
+1
-0
dsound.c
dlls/dsound/tests/dsound.c
+0
-4
dsound8.c
dlls/dsound/tests/dsound8.c
+0
-4
No files found.
dlls/dsound/dsound.c
View file @
6ce8a31b
...
...
@@ -207,6 +207,8 @@ static ULONG DirectSoundDevice_Release(DirectSoundDevice * device)
WaitForSingleObject
(
device
->
thread
,
INFINITE
);
CloseHandle
(
device
->
thread
);
}
if
(
device
->
mta_cookie
)
CoDecrementMTAUsage
(
device
->
mta_cookie
);
EnterCriticalSection
(
&
DSOUND_renderers_lock
);
list_remove
(
&
device
->
entry
);
...
...
@@ -332,6 +334,7 @@ static HRESULT DirectSoundDevice_Initialize(DirectSoundDevice ** ppDevice, LPCGU
WARN
(
"DSOUND_ReopenDevice failed: %08lx
\n
"
,
hr
);
return
hr
;
}
CoIncrementMTAUsage
(
&
device
->
mta_cookie
);
ZeroMemory
(
&
device
->
drvcaps
,
sizeof
(
device
->
drvcaps
));
...
...
dlls/dsound/dsound_private.h
View file @
6ce8a31b
...
...
@@ -90,6 +90,7 @@ struct DirectSoundDevice
int
lfe_channel
;
float
*
tmp_buffer
,
*
cp_buffer
;
DWORD
tmp_buffer_len
,
cp_buffer_len
;
CO_MTA_USAGE_COOKIE
mta_cookie
;
DSVOLUMEPAN
volpan
;
...
...
dlls/dsound/tests/dsound.c
View file @
6ce8a31b
...
...
@@ -1879,9 +1879,7 @@ static void test_implicit_mta(void)
"IDirectSound_Initialize() failed: %08lx
\n
"
,
hr
);
if
(
hr
==
DS_OK
)
{
check_apttype
(
&
test_apt_data
);
todo_wine
ok
(
test_apt_data
.
type
==
APTTYPE_MTA
,
"got apt type %d.
\n
"
,
test_apt_data
.
type
);
todo_wine
ok
(
test_apt_data
.
qualifier
==
APTTYPEQUALIFIER_IMPLICIT_MTA
,
"got apt type qualifier %d.
\n
"
,
test_apt_data
.
qualifier
);
}
...
...
@@ -1896,9 +1894,7 @@ static void test_implicit_mta(void)
"DirectSoundCreate() failed: %08lx
\n
"
,
hr
);
if
(
hr
==
DS_OK
)
{
check_apttype
(
&
test_apt_data
);
todo_wine
ok
(
test_apt_data
.
type
==
APTTYPE_MTA
,
"got apt type %d.
\n
"
,
test_apt_data
.
type
);
todo_wine
ok
(
test_apt_data
.
qualifier
==
APTTYPEQUALIFIER_IMPLICIT_MTA
,
"got apt type qualifier %d.
\n
"
,
test_apt_data
.
qualifier
);
IDirectSound_Release
(
dso
);
...
...
dlls/dsound/tests/dsound8.c
View file @
6ce8a31b
...
...
@@ -1903,9 +1903,7 @@ static void test_implicit_mta(void)
"IDirectSound8_Initialize() failed: %08lx
\n
"
,
hr
);
if
(
hr
==
DS_OK
)
{
check_apttype
(
&
test_apt_data
);
todo_wine
ok
(
test_apt_data
.
type
==
APTTYPE_MTA
,
"got apt type %d.
\n
"
,
test_apt_data
.
type
);
todo_wine
ok
(
test_apt_data
.
qualifier
==
APTTYPEQUALIFIER_IMPLICIT_MTA
,
"got apt type qualifier %d.
\n
"
,
test_apt_data
.
qualifier
);
}
...
...
@@ -1920,9 +1918,7 @@ static void test_implicit_mta(void)
"DirectSoundCreate8() failed: %08lx
\n
"
,
hr
);
if
(
hr
==
DS_OK
)
{
check_apttype
(
&
test_apt_data
);
todo_wine
ok
(
test_apt_data
.
type
==
APTTYPE_MTA
,
"got apt type %d.
\n
"
,
test_apt_data
.
type
);
todo_wine
ok
(
test_apt_data
.
qualifier
==
APTTYPEQUALIFIER_IMPLICIT_MTA
,
"got apt type qualifier %d.
\n
"
,
test_apt_data
.
qualifier
);
IDirectSound8_Release
(
dso
);
...
...
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