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
209fe1ec
Commit
209fe1ec
authored
Dec 03, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss.drv: Sign-compare warnings fix.
parent
c3b27ceb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
audio.c
dlls/wineoss.drv/audio.c
+11
-8
dscapture.c
dlls/wineoss.drv/dscapture.c
+1
-1
dsrender.c
dlls/wineoss.drv/dsrender.c
+1
-1
No files found.
dlls/wineoss.drv/audio.c
View file @
209fe1ec
...
...
@@ -701,7 +701,8 @@ static void OSS_Info(int fd)
static
BOOL
OSS_WaveOutInit
(
OSS_DEVICE
*
ossdev
)
{
int
rc
,
arg
;
int
f
,
c
,
r
;
int
f
,
c
;
unsigned
int
r
;
BOOL
has_mixer
=
FALSE
;
TRACE
(
"(%p) %s
\n
"
,
ossdev
,
ossdev
->
dev_name
);
...
...
@@ -876,7 +877,8 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE* ossdev)
static
BOOL
OSS_WaveInInit
(
OSS_DEVICE
*
ossdev
)
{
int
rc
,
arg
;
int
f
,
c
,
r
;
int
f
,
c
;
unsigned
int
r
;
TRACE
(
"(%p) %s
\n
"
,
ossdev
,
ossdev
->
dev_name
);
if
(
OSS_OpenDevice
(
ossdev
,
O_RDONLY
,
NULL
,
0
,
-
1
,
-
1
,
-
1
)
!=
0
)
...
...
@@ -1004,7 +1006,8 @@ static BOOL OSS_WaveInInit(OSS_DEVICE* ossdev)
static
void
OSS_WaveFullDuplexInit
(
OSS_DEVICE
*
ossdev
)
{
int
rc
,
arg
;
int
f
,
c
,
r
;
int
f
,
c
;
unsigned
int
r
;
int
caps
;
BOOL
has_mixer
=
FALSE
;
TRACE
(
"(%p) %s
\n
"
,
ossdev
,
ossdev
->
dev_name
);
...
...
@@ -1149,7 +1152,7 @@ static char* StrDup(const char* str, const char* def)
LRESULT
OSS_WaveInit
(
void
)
{
char
*
str
;
int
i
;
unsigned
int
i
;
/* FIXME: Remove unneeded members of WOutDev and WInDev */
TRACE
(
"()
\n
"
);
...
...
@@ -1172,9 +1175,9 @@ LRESULT OSS_WaveInit(void)
for
(
i
=
1
;
i
<
MAX_WAVEDRV
;
++
i
)
{
WOutDev
[
i
].
ossdev
.
dev_name
=
WInDev
[
i
].
ossdev
.
dev_name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
11
);
sprintf
(
WOutDev
[
i
].
ossdev
.
dev_name
,
"/dev/dsp%
d
"
,
i
);
sprintf
(
WOutDev
[
i
].
ossdev
.
dev_name
,
"/dev/dsp%
u
"
,
i
);
WOutDev
[
i
].
ossdev
.
mixer_name
=
WInDev
[
i
].
ossdev
.
mixer_name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
13
);
sprintf
(
WOutDev
[
i
].
ossdev
.
mixer_name
,
"/dev/mixer%
d
"
,
i
);
sprintf
(
WOutDev
[
i
].
ossdev
.
mixer_name
,
"/dev/mixer%
u
"
,
i
);
}
}
...
...
@@ -1213,13 +1216,13 @@ LRESULT OSS_WaveInit(void)
TRACE
(
"%d wave out devices
\n
"
,
numOutDev
);
for
(
i
=
0
;
i
<
numOutDev
;
i
++
)
{
TRACE
(
"%
d
: %s, %s, %s
\n
"
,
i
,
WOutDev
[
i
].
ossdev
.
dev_name
,
TRACE
(
"%
u
: %s, %s, %s
\n
"
,
i
,
WOutDev
[
i
].
ossdev
.
dev_name
,
WOutDev
[
i
].
ossdev
.
mixer_name
,
WOutDev
[
i
].
ossdev
.
interface_name
);
}
TRACE
(
"%d wave in devices
\n
"
,
numInDev
);
for
(
i
=
0
;
i
<
numInDev
;
i
++
)
{
TRACE
(
"%
d
: %s, %s, %s
\n
"
,
i
,
WInDev
[
i
].
ossdev
.
dev_name
,
TRACE
(
"%
u
: %s, %s, %s
\n
"
,
i
,
WInDev
[
i
].
ossdev
.
dev_name
,
WInDev
[
i
].
ossdev
.
mixer_name
,
WInDev
[
i
].
ossdev
.
interface_name
);
}
...
...
dlls/wineoss.drv/dscapture.c
View file @
209fe1ec
...
...
@@ -317,7 +317,7 @@ static HRESULT WINAPI IDsCaptureDriverNotifyImpl_SetNotificationPositions(
}
if
(
TRACE_ON
(
dscapture
))
{
int
i
;
DWORD
i
;
for
(
i
=
0
;
i
<
howmuch
;
i
++
)
TRACE
(
"notify at %d to 0x%08lx
\n
"
,
notify
[
i
].
dwOffset
,(
DWORD_PTR
)
notify
[
i
].
hEventNotify
);
...
...
dlls/wineoss.drv/dsrender.c
View file @
209fe1ec
...
...
@@ -303,7 +303,7 @@ static HRESULT WINAPI IDsDriverNotifyImpl_SetNotificationPositions(
}
if
(
TRACE_ON
(
wave
))
{
int
i
;
DWORD
i
;
for
(
i
=
0
;
i
<
howmuch
;
i
++
)
TRACE
(
"notify at %d to 0x%08lx
\n
"
,
notify
[
i
].
dwOffset
,(
DWORD_PTR
)
notify
[
i
].
hEventNotify
);
...
...
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