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
629e857c
Commit
629e857c
authored
Apr 18, 2012
by
Andrew Eikum
Committed by
Alexandre Julliard
Apr 19, 2012
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Don't try to create a standard audio path if the client didn't ask for one.
parent
b09d195b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
performance.c
dlls/dmime/performance.c
+3
-2
performance.c
dlls/dmime/tests/performance.c
+14
-0
No files found.
dlls/dmime/performance.c
View file @
629e857c
...
...
@@ -945,7 +945,8 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_InitAudio(IDirectMusicPerform
This
->
pParams
.
dwFeatures
=
dwFlags
;
This
->
pParams
.
clsidDefaultSynth
=
CLSID_DirectMusicSynthSink
;
}
hr
=
IDirectMusicPerformance8_CreateStandardAudioPath
(
iface
,
dwDefaultPathType
,
dwPChannelCount
,
FALSE
,
&
This
->
pDefaultPath
);
if
(
dwDefaultPathType
!=
0
)
hr
=
IDirectMusicPerformance8_CreateStandardAudioPath
(
iface
,
dwDefaultPathType
,
dwPChannelCount
,
FALSE
,
&
This
->
pDefaultPath
);
PostMessageToProcessMsgThread
(
This
,
PROCESSMSG_START
);
...
...
@@ -1096,7 +1097,7 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_CreateStandardAudioPath(IDire
*
ppNewPath
=
pPath
;
TRACE
(
" returning IDirectMusic
Performance
interface at %p.
\n
"
,
*
ppNewPath
);
TRACE
(
" returning IDirectMusic
AudioPath
interface at %p.
\n
"
,
*
ppNewPath
);
return
IDirectMusicAudioPath_Activate
(
*
ppNewPath
,
fActivate
);
}
...
...
dlls/dmime/tests/performance.c
View file @
629e857c
...
...
@@ -82,6 +82,20 @@ static HRESULT test_InitAudio(void)
IDirectMusicPerformance8_Release
(
idmusicperformance
);
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicPerformance
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicPerformance8
,
(
void
**
)
&
idmusicperformance
);
ok
(
hr
==
S_OK
,
"CoCreateInstance failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicPerformance8_InitAudio
(
idmusicperformance
,
NULL
,
NULL
,
NULL
,
0
,
64
,
0
,
NULL
);
ok
(
hr
==
S_OK
,
"InitAudio failed: %08x
\n
"
,
hr
);
hr
=
IDirectMusicPerformance8_CloseDown
(
idmusicperformance
);
ok
(
hr
==
S_OK
,
"CloseDown failed: %08x
\n
"
,
hr
);
IDirectMusicPerformance8_Release
(
idmusicperformance
);
return
S_OK
;
}
...
...
Vitaly Lipatov
@lav
mentioned in commit
a301ac63
·
Sep 03, 2020
mentioned in commit
a301ac63
mentioned in commit a301ac63c32055914eb1ba942e1d07af9a2a939e
Toggle commit list
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