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
9123f28e
Commit
9123f28e
authored
Nov 24, 2009
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Call DSOUND_FullDuplexCreate instead of creating it directly.
parent
c9b70ddf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
duplex.c
dlls/dsound/duplex.c
+3
-17
No files found.
dlls/dsound/duplex.c
View file @
9123f28e
...
...
@@ -745,22 +745,8 @@ DirectSoundFullDuplexCreate(
return
DSERR_INVALIDPARAM
;
}
/* Get dsound configuration */
setup_dsound_options
();
This
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectSoundFullDuplexImpl
));
if
(
This
==
NULL
)
{
WARN
(
"out of memory
\n
"
);
*
ppDSFD
=
NULL
;
return
DSERR_OUTOFMEMORY
;
}
This
->
lpVtbl
=
&
dsfdvt
;
This
->
ref
=
1
;
This
->
capture_device
=
NULL
;
This
->
renderer_device
=
NULL
;
hres
=
DSOUND_FullDuplexCreate
(
&
IID_IDirectSoundFullDuplex
,
(
LPDIRECTSOUNDFULLDUPLEX
*
)
&
This
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IDirectSoundFullDuplexImpl_Initialize
((
LPDIRECTSOUNDFULLDUPLEX
)
This
,
pcGuidCaptureDevice
,
...
...
@@ -770,7 +756,7 @@ DirectSoundFullDuplexCreate(
hWnd
,
dwLevel
,
ppDSCBuffer8
,
ppDSBuffer8
);
if
(
hres
!=
DS_OK
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
IUnknown_Release
((
LPDIRECTSOUNDFULLDUPLEX
)
This
);
WARN
(
"IDirectSoundFullDuplexImpl_Initialize failed
\n
"
);
*
ppDSFD
=
NULL
;
}
else
...
...
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