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
c3ebd365
Commit
c3ebd365
authored
Aug 04, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Aug 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Acceleration fixes for wavein emulation.
parent
abe8c127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
capture.c
dlls/dsound/capture.c
+9
-9
No files found.
dlls/dsound/capture.c
View file @
c3ebd365
...
...
@@ -1494,8 +1494,6 @@ HRESULT IDirectSoundCaptureBufferImpl_Create(
}
}
else
{
DWORD
flags
=
CALLBACK_FUNCTION
;
if
(
ds_hw_accel
!=
DS_HW_ACCEL_EMULATION
)
flags
|=
WAVE_DIRECTSOUND
;
err
=
mmErr
(
waveInOpen
(
&
(
device
->
hwi
),
device
->
drvdesc
.
dnDevNode
,
device
->
pwfx
,
(
DWORD_PTR
)
DSOUND_capture_callback
,
(
DWORD
)
device
,
flags
));
...
...
@@ -1584,16 +1582,18 @@ HRESULT DirectSoundCaptureDevice_Initialize(
*
ppDevice
=
device
;
device
->
guid
=
devGUID
;
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDIFACE
,(
DWORD_PTR
)
&
(
device
->
driver
),
0
));
if
(
(
err
!=
DS_OK
)
&&
(
err
!=
DSERR_UNSUPPORTED
)
)
{
WARN
(
"waveInMessage failed; err=%x
\n
"
,
err
);
return
err
;
/* Disable the direct sound driver to force emulation if requested. */
device
->
driver
=
NULL
;
if
(
ds_hw_accel
>
DS_HW_ACCEL_EMULATION
)
{
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDIFACE
,(
DWORD_PTR
)
&
(
device
->
driver
),
0
));
if
(
(
err
!=
DS_OK
)
&&
(
err
!=
DSERR_UNSUPPORTED
)
)
{
WARN
(
"waveInMessage failed; err=%x
\n
"
,
err
);
return
err
;
}
}
err
=
DS_OK
;
/* Disable the direct sound driver to force emulation if requested. */
if
(
ds_hw_accel
==
DS_HW_ACCEL_EMULATION
)
device
->
driver
=
NULL
;
/* Get driver description */
if
(
device
->
driver
)
{
...
...
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