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
3347bee1
Commit
3347bee1
authored
Apr 06, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Apr 06, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make audiodevice blocking directly after the non-blocking open, since
we use the write(2) also for synchronization.
parent
ce77ea90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
dsound_main.c
dlls/dsound/dsound_main.c
+8
-1
No files found.
dlls/dsound/dsound_main.c
View file @
3347bee1
...
...
@@ -2083,7 +2083,7 @@ static DWORD WINAPI DSOUND_MixPrimary(void)
static
int
DSOUND_OpenAudio
(
void
)
{
int
audioFragment
;
int
audioFragment
,
flags
;
if
(
primarybuf
==
NULL
)
return
DSERR_OUTOFMEMORY
;
...
...
@@ -2107,6 +2107,13 @@ static int DSOUND_OpenAudio(void)
audioFragment
=
0x0002000c
;
if
(
-
1
==
ioctl
(
audiofd
,
SNDCTL_DSP_SETFRAGMENT
,
&
audioFragment
))
perror
(
"ioctl SETFRAGMENT"
);
if
((
flags
=
fcntl
(
audiofd
,
F_GETFL
,
0
))
!=
-
1
)
{
flags
&=
~
O_NDELAY
;
if
(
-
1
==
fcntl
(
audiofd
,
F_SETFL
,
flags
))
perror
(
"clearing the non-blocking flags in DSOUND_OpenAudio"
);
}
else
perror
(
"cannot get flags of audiofd"
);
audioOK
=
1
;
DSOUND_setformat
(
&
(
primarybuf
->
wfx
));
...
...
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