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
ccdea75d
Commit
ccdea75d
authored
Oct 04, 2004
by
Jerry Jenkins
Committed by
Alexandre Julliard
Oct 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix an error message.
parent
05fb3ca6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
audio.c
dlls/winmm/winealsa/audio.c
+17
-15
No files found.
dlls/winmm/winealsa/audio.c
View file @
ccdea75d
...
...
@@ -1238,29 +1238,31 @@ static int wodPlayer_WriteMaxFrags(WINE_WAVEOUT* wwo, DWORD* frames)
TRACE
(
"Writing wavehdr %p.%lu[%lu]
\n
"
,
lpWaveHdr
,
wwo
->
dwPartialOffset
,
lpWaveHdr
->
dwBufferLength
);
written
=
(
wwo
->
write
)(
wwo
->
p_handle
,
lpWaveHdr
->
lpData
+
wwo
->
dwPartialOffset
,
toWrite
);
if
(
written
<
0
)
{
/* XRUN occurred. let's try to recover */
ALSA_XRUNRecovery
(
wwo
,
written
);
if
(
toWrite
>
0
)
{
written
=
(
wwo
->
write
)(
wwo
->
p_handle
,
lpWaveHdr
->
lpData
+
wwo
->
dwPartialOffset
,
toWrite
);
}
if
(
written
<=
0
)
{
/* still in error */
ERR
(
"Error in writing wavehdr. Reason: %s
\n
"
,
snd_strerror
(
written
));
return
written
;
}
if
(
written
<
0
)
{
/* XRUN occurred. let's try to recover */
ALSA_XRUNRecovery
(
wwo
,
written
);
written
=
(
wwo
->
write
)(
wwo
->
p_handle
,
lpWaveHdr
->
lpData
+
wwo
->
dwPartialOffset
,
toWrite
);
}
if
(
written
<=
0
)
{
/* still in error */
ERR
(
"Error in writing wavehdr. Reason: %s
\n
"
,
snd_strerror
(
written
));
return
written
;
}
}
else
written
=
0
;
wwo
->
dwPartialOffset
+=
snd_pcm_frames_to_bytes
(
wwo
->
p_handle
,
written
);
if
(
wwo
->
dwPartialOffset
>=
lpWaveHdr
->
dwBufferLength
)
{
/* this will be used to check if the given wave header has been fully played or not... */
wwo
->
dwPartialOffset
=
lpWaveHdr
->
dwBufferLength
;
/* If we wrote all current wavehdr, skip to the next one */
wodPlayer_PlayPtrNext
(
wwo
);
wwo
->
dwPartialOffset
=
lpWaveHdr
->
dwBufferLength
;
/* If we wrote all current wavehdr, skip to the next one */
wodPlayer_PlayPtrNext
(
wwo
);
}
*
frames
-=
written
;
wwo
->
dwWrittenTotal
+=
snd_pcm_frames_to_bytes
(
wwo
->
p_handle
,
written
);
TRACE
(
"dwWrittenTotal=%lu
\n
"
,
wwo
->
dwWrittenTotal
);
return
written
;
}
...
...
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