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
7c7bd1c3
Commit
7c7bd1c3
authored
Mar 17, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid warnings.
parent
daecaba4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
audio.c
dlls/winmm/wineoss/audio.c
+6
-4
No files found.
dlls/winmm/wineoss/audio.c
View file @
7c7bd1c3
...
...
@@ -491,13 +491,14 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE* ossdev)
{
int
rc
,
arg
;
int
f
,
c
,
r
;
int
mixer
;
TRACE
(
"(%p) %s
\n
"
,
ossdev
,
ossdev
->
dev_name
);
if
(
OSS_OpenDevice
(
ossdev
,
O_WRONLY
,
NULL
,
0
,
-
1
,
-
1
,
-
1
)
!=
0
)
return
FALSE
;
ioctl
(
ossdev
->
fd
,
SNDCTL_DSP_RESET
,
0
);
#ifdef SOUND_MIXER_INFO
{
int
mixer
;
if
((
mixer
=
open
(
ossdev
->
mixer_name
,
O_RDONLY
|
O_NDELAY
))
>=
0
)
{
mixer_info
info
;
if
(
ioctl
(
mixer
,
SOUND_MIXER_INFO
,
&
info
)
>=
0
)
{
...
...
@@ -517,7 +518,7 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE* ossdev)
OSS_CloseDevice
(
ossdev
);
return
FALSE
;
}
close
(
mixer
);
}
#endif
/* SOUND_MIXER_INFO */
/* FIXME: some programs compare this string against the content of the
...
...
@@ -626,13 +627,14 @@ static BOOL OSS_WaveInInit(OSS_DEVICE* ossdev)
{
int
rc
,
arg
;
int
f
,
c
,
r
;
int
mixer
;
TRACE
(
"(%p) %s
\n
"
,
ossdev
,
ossdev
->
dev_name
);
if
(
OSS_OpenDevice
(
ossdev
,
O_RDONLY
,
NULL
,
0
,
-
1
,
-
1
,
-
1
)
!=
0
)
return
FALSE
;
ioctl
(
ossdev
->
fd
,
SNDCTL_DSP_RESET
,
0
);
#ifdef SOUND_MIXER_INFO
{
int
mixer
;
if
((
mixer
=
open
(
ossdev
->
mixer_name
,
O_RDONLY
|
O_NDELAY
))
>=
0
)
{
mixer_info
info
;
if
(
ioctl
(
mixer
,
SOUND_MIXER_INFO
,
&
info
)
>=
0
)
{
...
...
@@ -650,7 +652,7 @@ static BOOL OSS_WaveInInit(OSS_DEVICE* ossdev)
OSS_CloseDevice
(
ossdev
);
return
FALSE
;
}
close
(
mixer
);
}
#endif
/* SOUND_MIXER_INFO */
/* See comment in OSS_WaveOutInit */
...
...
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