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
c2bc22b9
Commit
c2bc22b9
authored
May 24, 2001
by
Andreas Mohr
Committed by
Alexandre Julliard
May 24, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spelling fixes.
parent
e665eba1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
dsound_main.c
dlls/dsound/dsound_main.c
+6
-4
joystick.c
dlls/winmm/joystick/joystick.c
+1
-1
time.c
dlls/winmm/time.c
+1
-1
task.c
loader/task.c
+1
-1
No files found.
dlls/dsound/dsound_main.c
View file @
c2bc22b9
...
...
@@ -103,6 +103,7 @@ struct IDirectSoundImpl
*/
struct
IDirectSoundBufferImpl
{
/* FIXME: document */
/* IUnknown fields */
ICOM_VFIELD
(
IDirectSoundBuffer
);
DWORD
ref
;
...
...
@@ -1361,7 +1362,7 @@ static DWORD DSOUND_CalcPlayPosition(IDirectSoundBufferImpl *This,
if
(
pwrite
<
pplay
)
pwrite
+=
primarybuf
->
buflen
;
/* wraparound */
pwrite
-=
pplay
;
if
(
pmix
>
(
DS_SND_QUEUE
*
primarybuf
->
dsound
->
fraglen
+
pwrite
+
primarybuf
->
writelead
))
{
TRACE
(
"detected an underrun: primary queue was %ld
\n
"
,
pmix
);
WARN
(
"detected an underrun: primary queue was %ld
\n
"
,
pmix
);
pmix
=
0
;
}
/* divide the offset by its sample size */
...
...
@@ -1535,8 +1536,8 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Lock(
if
((
writebytes
==
This
->
buflen
)
&&
((
This
->
state
==
STATE_STARTING
)
||
(
This
->
state
==
STATE_PLAYING
)))
/* some games, like Half-Life, tr
ies
to be clever (not) and
* keep
s one secondary buffer, and mixes
sounds into it itself,
/* some games, like Half-Life, tr
y
to be clever (not) and
* keep
one secondary buffer, and mix
sounds into it itself,
* locking the entire buffer every time... so we can just forget
* about tracking the last-written-to-position... */
This
->
probably_valid_to
=
(
DWORD
)
-
1
;
...
...
@@ -2746,7 +2747,7 @@ static DWORD DSOUND_MixOne(IDirectSoundBufferImpl *dsb, DWORD playpos, DWORD wri
/* determine this buffer's write position */
DWORD
buf_writepos
=
DSOUND_CalcPlayPosition
(
dsb
,
dsb
->
state
&
primarybuf
->
state
,
writepos
,
writepos
,
dsb
->
primary_mixpos
,
dsb
->
buf_mixpos
);
/* determine how much already-mixed data exist */
/* determine how much already-mixed data exist
s
*/
DWORD
buf_done
=
((
dsb
->
buf_mixpos
<
buf_writepos
)
?
dsb
->
buflen
:
0
)
+
dsb
->
buf_mixpos
-
buf_writepos
;
...
...
@@ -2935,6 +2936,7 @@ static void CALLBACK DSOUND_timer(UINT timerID, UINT msg, DWORD dwUser, DWORD dw
if
(
primarybuf
->
hwbuf
)
{
if
(
dsound
->
priolevel
!=
DSSCL_WRITEPRIMARY
)
{
BOOL
paused
=
((
primarybuf
->
state
==
STATE_STOPPED
)
||
(
primarybuf
->
state
==
STATE_STARTING
));
/* FIXME: document variables */
DWORD
playpos
,
writepos
,
inq
,
maxq
,
frag
;
hres
=
IDsDriverBuffer_GetPosition
(
primarybuf
->
hwbuf
,
&
playpos
,
&
writepos
);
if
(
hres
)
{
...
...
dlls/winmm/joystick/joystick.c
View file @
c2bc22b9
...
...
@@ -238,7 +238,7 @@ static LONG JSTCK_GetPosEx(DWORD dwDevID, LPJOYINFOEX lpInfo)
if
((
dev
=
JSTCK_OpenDevice
(
jstck
))
<
0
)
return
JOYERR_PARMS
;
#ifdef HAVE_LINUX_22_JOYSTICK_API
/* After opening the device
it'
s state can be
/* After opening the device
, it
s state can be
read with JS_EVENT_INIT flag */
while
((
read
(
dev
,
&
ev
,
sizeof
(
struct
js_event
)))
>
0
)
{
if
(
ev
.
type
==
(
JS_EVENT_AXIS
|
JS_EVENT_INIT
))
{
...
...
dlls/winmm/time.c
View file @
c2bc22b9
/* -*- tab-width: 8; c-basic-offset: 4 -*- */
/*
* MMSYTEM time functions
* MMSY
S
TEM time functions
*
* Copyright 1993 Martin Ayotte
*/
...
...
loader/task.c
View file @
c2bc22b9
...
...
@@ -448,7 +448,7 @@ HTASK TASK_SpawnTask( NE_MODULE *pModule, WORD cmdShow, LPCSTR cmdline, BYTE len
/***********************************************************************
* TASK_
Kill
Task
* TASK_
Exit
Task
*/
void
TASK_ExitTask
(
void
)
{
...
...
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