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
3f762d5d
Commit
3f762d5d
authored
Aug 03, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Aug 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Sound acceleration fixes.
parent
4536a9d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
dsound.c
dlls/dsound/dsound.c
+4
-6
primary.c
dlls/dsound/primary.c
+2
-4
No files found.
dlls/dsound/dsound.c
View file @
3f762d5d
...
...
@@ -1411,13 +1411,11 @@ HRESULT DirectSoundDevice_Initialize(DirectSoundDevice ** ppDevice, LPCGUID lpcG
*
ppDevice
=
device
;
device
->
guid
=
devGUID
;
device
->
driver
=
NULL
;
/* DRV_QUERYDSOUNDIFACE is a "Wine extension" to get the DSound interface */
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDIFACE
,
(
DWORD_PTR
)
&
device
->
driver
,
0
);
/* Disable the direct sound driver to force emulation if requested. */
if
(
ds_hw_accel
==
DS_HW_ACCEL_EMULATION
)
device
->
driver
=
NULL
;
if
(
ds_hw_accel
>
DS_HW_ACCEL_EMULATION
)
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDIFACE
,
(
DWORD_PTR
)
&
device
->
driver
,
0
);
/* Get driver description */
if
(
device
->
driver
)
{
...
...
@@ -1441,7 +1439,7 @@ HRESULT DirectSoundDevice_Initialize(DirectSoundDevice ** ppDevice, LPCGUID lpcG
DWORD
flags
=
CALLBACK_FUNCTION
;
/* disable direct sound if requested */
if
(
d
s_hw_accel
!=
DS_HW_ACCEL_EMULATION
)
if
(
d
evice
->
driver
)
flags
|=
WAVE_DIRECTSOUND
;
hr
=
mmErr
(
waveOutOpen
(
&
(
device
->
hwo
),
...
...
dlls/dsound/primary.c
View file @
3f762d5d
...
...
@@ -290,9 +290,7 @@ HRESULT DSOUND_PrimaryStop(DirectSoundDevice *device)
if
(
device
->
hwbuf
)
{
err
=
IDsDriverBuffer_Stop
(
device
->
hwbuf
);
if
(
err
==
DSERR_BUFFERLOST
)
{
DWORD
flags
=
CALLBACK_FUNCTION
;
if
(
ds_hw_accel
!=
DS_HW_ACCEL_EMULATION
)
flags
|=
WAVE_DIRECTSOUND
;
DWORD
flags
=
CALLBACK_FUNCTION
|
WAVE_DIRECTSOUND
;
/* Wine-only: the driver wants us to reopen the device */
/* FIXME: check for errors */
IDsDriverBuffer_Release
(
device
->
hwbuf
);
...
...
@@ -415,7 +413,7 @@ HRESULT DSOUND_PrimarySetFormat(DirectSoundDevice *device, LPCWAVEFORMATEX wfex)
if
(
device
->
drvdesc
.
dwFlags
&
DSDDESC_DOMMSYSTEMSETFORMAT
)
{
DWORD
flags
=
CALLBACK_FUNCTION
;
if
(
d
s_hw_accel
!=
DS_HW_ACCEL_EMULATION
)
if
(
d
evice
->
driver
)
flags
|=
WAVE_DIRECTSOUND
;
/* FIXME: check for errors */
DSOUND_PrimaryClose
(
device
);
...
...
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