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
4ff66083
Commit
4ff66083
authored
Oct 25, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Oct 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transform device open error TRACE()s into WARN(); better error msgs.
parent
354f9826
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
audio.c
dlls/winmm/wineoss/audio.c
+5
-5
No files found.
dlls/winmm/wineoss/audio.c
View file @
4ff66083
...
...
@@ -177,7 +177,7 @@ LONG OSS_WaveInit(void)
if
(
access
(
SOUND_DEV
,
0
)
!=
0
||
(
audio
=
open
(
SOUND_DEV
,
O_WRONLY
|
O_NDELAY
,
0
))
==
-
1
)
{
TRACE
(
"Couldn't open out %s (%s)
\n
"
,
SOUND_DEV
,
strerror
(
errno
));
WARN
(
"Couldn't open out %s (%s)
\n
"
,
SOUND_DEV
,
strerror
(
errno
));
return
-
1
;
}
...
...
@@ -276,7 +276,7 @@ LONG OSS_WaveInit(void)
if
(
access
(
SOUND_DEV
,
0
)
!=
0
||
(
audio
=
open
(
SOUND_DEV
,
O_RDONLY
|
O_NDELAY
,
0
))
==
-
1
)
{
TRACE
(
"Couldn't open in %s (%s)
\n
"
,
SOUND_DEV
,
strerror
(
errno
));
WARN
(
"Couldn't open in %s (%s)
\n
"
,
SOUND_DEV
,
strerror
(
errno
));
return
-
1
;
}
...
...
@@ -786,7 +786,7 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
/* not supported, ignore it */
dwFlags
&=
~
WAVE_DIRECTSOUND
;
if
(
access
(
SOUND_DEV
,
0
)
!=
0
)
if
(
access
(
SOUND_DEV
,
0
)
!=
0
)
return
MMSYSERR_NOTENABLED
;
if
(
dwFlags
&
WAVE_DIRECTSOUND
)
/* we want to be able to mmap() the device, which means it must be opened readable,
...
...
@@ -795,7 +795,7 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
else
audio
=
open
(
SOUND_DEV
,
O_WRONLY
|
O_NDELAY
,
0
);
if
(
audio
==
-
1
)
{
WARN
(
"can't open
(%s)!
\n
"
,
strerror
(
errno
));
WARN
(
"can't open
sound device %s (%s)!
\n
"
,
SOUND_DEV
,
strerror
(
errno
));
return
MMSYSERR_ALLOCATED
;
}
fcntl
(
audio
,
F_SETFD
,
1
);
/* set close on exec flag */
...
...
@@ -1902,7 +1902,7 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
if
(
access
(
SOUND_DEV
,
0
)
!=
0
)
return
MMSYSERR_NOTENABLED
;
audio
=
open
(
SOUND_DEV
,
O_RDONLY
|
O_NDELAY
,
0
);
if
(
audio
==
-
1
)
{
WARN
(
"can't open
(%s)!
\n
"
,
strerror
(
errno
));
WARN
(
"can't open
sound device %s (%s)!
\n
"
,
SOUND_DEV
,
strerror
(
errno
));
return
MMSYSERR_ALLOCATED
;
}
fcntl
(
audio
,
F_SETFD
,
1
);
/* set close on exec flag */
...
...
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