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
4ef6e8ea
Commit
4ef6e8ea
authored
Aug 21, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Aug 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Move assignment of DSBCAPS_LOC to primary buffer creation time.
parent
efc001a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
dsound.c
dlls/dsound/dsound.c
+4
-0
primary.c
dlls/dsound/primary.c
+0
-3
No files found.
dlls/dsound/dsound.c
View file @
4ef6e8ea
...
...
@@ -1594,6 +1594,10 @@ HRESULT DirectSoundDevice_CreateSoundBuffer(
*
ppdsb
=
(
LPDIRECTSOUNDBUFFER
)(
device
->
primary
);
}
else
{
device
->
dsbd
=
*
dsbd
;
device
->
dsbd
.
dwFlags
&=
~
(
DSBCAPS_LOCHARDWARE
|
DSBCAPS_LOCSOFTWARE
);
if
(
device
->
hwbuf
)
device
->
dsbd
.
dwFlags
|=
DSBCAPS_LOCHARDWARE
;
else
device
->
dsbd
.
dwFlags
|=
DSBCAPS_LOCSOFTWARE
;
hres
=
PrimaryBufferImpl_Create
(
device
,
(
PrimaryBufferImpl
**
)
&
(
device
->
primary
),
&
(
device
->
dsbd
));
if
(
device
->
primary
)
{
IDirectSoundBuffer_AddRef
((
LPDIRECTSOUNDBUFFER8
)(
device
->
primary
));
...
...
dlls/dsound/primary.c
View file @
4ef6e8ea
...
...
@@ -980,9 +980,6 @@ static HRESULT WINAPI PrimaryBufferImpl_GetCaps(
}
caps
->
dwFlags
=
device
->
dsbd
.
dwFlags
;
if
(
device
->
hwbuf
)
caps
->
dwFlags
|=
DSBCAPS_LOCHARDWARE
;
else
caps
->
dwFlags
|=
DSBCAPS_LOCSOFTWARE
;
caps
->
dwBufferBytes
=
device
->
buflen
;
/* Windows reports these as zero */
...
...
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