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
408abf9a
Commit
408abf9a
authored
Jul 06, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jul 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Increase performance of waveout getposition.
parent
f45128c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
waveout.c
dlls/winealsa.drv/waveout.c
+1
-7
No files found.
dlls/winealsa.drv/waveout.c
View file @
408abf9a
...
...
@@ -109,7 +109,7 @@ static BOOL wodUpdatePlayedTotal(WINE_WAVEDEV* wwo, snd_pcm_status_t* ps)
WARN
(
"Unexpected state (%d) or delay (%ld) while updating Total Played, resetting
\n
"
,
state
,
delay
);
delay
=
0
;
}
wwo
->
dwPlayedTotal
=
wwo
->
dwWrittenTotal
-
snd_pcm_frames_to_bytes
(
wwo
->
pcm
,
delay
);
InterlockedExchange
((
LONG
*
)
&
wwo
->
dwPlayedTotal
,
wwo
->
dwWrittenTotal
-
snd_pcm_frames_to_bytes
(
wwo
->
pcm
,
delay
)
);
return
TRUE
;
}
...
...
@@ -444,10 +444,6 @@ static void wodPlayer_ProcessMessages(WINE_WAVEDEV* wwo)
wodPlayer_Reset
(
wwo
,
TRUE
);
SetEvent
(
ev
);
break
;
case
WINE_WM_UPDATE
:
wodUpdatePlayedTotal
(
wwo
,
NULL
);
SetEvent
(
ev
);
break
;
case
WINE_WM_BREAKLOOP
:
if
(
wwo
->
state
==
WINE_WS_PLAYING
&&
wwo
->
lpLoopPtr
!=
NULL
)
{
/* ensure exit at end of current loop */
...
...
@@ -1013,8 +1009,6 @@ static DWORD wodGetPosition(WORD wDevID, LPMMTIME lpTime, DWORD uSize)
if
(
lpTime
==
NULL
)
return
MMSYSERR_INVALPARAM
;
wwo
=
&
WOutDev
[
wDevID
];
ALSA_AddRingMessage
(
&
wwo
->
msgRing
,
WINE_WM_UPDATE
,
0
,
TRUE
);
return
ALSA_bytes_to_mmtime
(
lpTime
,
wwo
->
dwPlayedTotal
,
&
wwo
->
format
);
}
...
...
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