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
551f7d94
Commit
551f7d94
authored
Dec 21, 2006
by
Ken Thomases
Committed by
Alexandre Julliard
Dec 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Simplify handling of BEGIN+ENDLOOP wave headers.
parent
91c5ec96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
audio.c
dlls/winmm/winecoreaudio/audio.c
+8
-14
No files found.
dlls/winmm/winecoreaudio/audio.c
View file @
551f7d94
...
...
@@ -935,6 +935,7 @@ static void wodHelper_BeginWaveHdr(WINE_WAVEOUT* wwo, LPWAVEHDR lpWaveHdr)
static
LPWAVEHDR
wodHelper_PlayPtrNext
(
WINE_WAVEOUT
*
wwo
)
{
LPWAVEHDR
lpWaveHdr
;
BOOL
didLoopBack
=
FALSE
;
pthread_mutex_lock
(
&
wwo
->
lock
);
...
...
@@ -953,24 +954,17 @@ static LPWAVEHDR wodHelper_PlayPtrNext(WINE_WAVEOUT* wwo)
{
wwo
->
dwLoops
--
;
wwo
->
lpPlayPtr
=
wwo
->
lpLoopPtr
;
}
else
didLoopBack
=
TRUE
;
}
else
{
/* Handle overlapping loops correctly */
if
(
wwo
->
lpLoopPtr
!=
lpWaveHdr
&&
(
lpWaveHdr
->
dwFlags
&
WHDR_BEGINLOOP
))
{
/* shall we consider the END flag for the closing loop or for
* the opening one or for both ???
* code assumes for closing loop only
*/
}
else
{
lpWaveHdr
=
lpWaveHdr
->
lpNext
;
}
wwo
->
lpLoopPtr
=
NULL
;
wodHelper_BeginWaveHdr
(
wwo
,
lpWaveHdr
);
}
}
else
}
if
(
!
didLoopBack
)
{
/* We
're not in a loop
. Advance to the next wave header */
/* We
didn't loop back
. Advance to the next wave header */
wodHelper_BeginWaveHdr
(
wwo
,
lpWaveHdr
=
lpWaveHdr
->
lpNext
);
}
...
...
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