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
f4d5f127
Commit
f4d5f127
authored
Jun 23, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jun 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound/winealsa: Remove writelead for alsa directsound.
parent
bfda5d6f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
primary.c
dlls/dsound/primary.c
+4
-1
dsoutput.c
dlls/winealsa.drv/dsoutput.c
+1
-1
dsdriver.h
include/dsdriver.h
+1
-0
No files found.
dlls/dsound/primary.c
View file @
f4d5f127
...
...
@@ -64,8 +64,11 @@ static void DSOUND_RecalcPrimary(DirectSoundDevice *device)
device
->
fraglen
=
fraglen
;
TRACE
(
"fraglen=%d
\n
"
,
device
->
fraglen
);
}
if
(
device
->
hwbuf
&&
device
->
drvdesc
.
dwFlags
&
DSDDESC_DONTNEEDWRITELEAD
)
device
->
writelead
=
0
;
else
/* calculate the 10ms write lead */
device
->
writelead
=
(
device
->
pwfx
->
nSamplesPerSec
/
100
)
*
nBlockAlign
;
device
->
writelead
=
(
device
->
pwfx
->
nSamplesPerSec
/
100
)
*
nBlockAlign
;
}
static
HRESULT
DSOUND_PrimaryOpen
(
DirectSoundDevice
*
device
)
...
...
dlls/winealsa.drv/dsoutput.c
View file @
f4d5f127
...
...
@@ -596,7 +596,7 @@ static HRESULT WINAPI IDsDriverImpl_GetDriverDesc(PIDSDRIVER iface, PDSDRIVERDES
IDsDriverImpl
*
This
=
(
IDsDriverImpl
*
)
iface
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pDesc
);
memcpy
(
pDesc
,
&
(
WOutDev
[
This
->
wDevID
].
ds_desc
),
sizeof
(
DSDRIVERDESC
));
pDesc
->
dwFlags
=
DSDDESC_DONTNEEDPRIMARYLOCK
|
DSDDESC_DONTNEEDSECONDARYLOCK
;
pDesc
->
dwFlags
=
DSDDESC_DONTNEEDPRIMARYLOCK
|
DSDDESC_DONTNEEDSECONDARYLOCK
|
DSDDESC_DONTNEEDWRITELEAD
;
pDesc
->
dnDevNode
=
WOutDev
[
This
->
wDevID
].
waveDesc
.
dnDevNode
;
pDesc
->
wVxdId
=
0
;
pDesc
->
wReserved
=
0
;
...
...
include/dsdriver.h
View file @
f4d5f127
...
...
@@ -52,6 +52,7 @@ typedef struct IDsCaptureDriverBuffer *PIDSCDRIVERBUFFER;
#define DSDDESC_USESYSTEMMEMORY 0x00000004
#define DSDDESC_DONTNEEDPRIMARYLOCK 0x00000008
#define DSDDESC_DONTNEEDSECONDARYLOCK 0x00000010
#define DSDDESC_DONTNEEDWRITELEAD 0x00000020
#define DSDHEAP_NOHEAP 0
#define DSDHEAP_CREATEHEAP 1
...
...
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