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
2de65355
Commit
2de65355
authored
Mar 12, 2008
by
Ken Thomases
Committed by
Alexandre Julliard
Mar 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Adjust for partial block before prepare-header and add-buffer steps.
Otherwise, the wave-in driver(s) may copy incorrect data to internal structures.
parent
0bb1eb72
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
capture.c
dlls/dsound/capture.c
+3
-2
No files found.
dlls/dsound/capture.c
View file @
2de65355
...
...
@@ -1146,6 +1146,9 @@ IDirectSoundCaptureBufferImpl_Start(
for
(
c
=
0
;
c
<
device
->
nrofpwaves
;
++
c
)
{
device
->
pwave
[
c
].
lpData
=
(
char
*
)
device
->
buffer
+
c
*
blocksize
;
if
(
c
+
1
==
device
->
nrofpwaves
)
device
->
pwave
[
c
].
dwBufferLength
=
device
->
buflen
-
c
*
blocksize
;
else
device
->
pwave
[
c
].
dwBufferLength
=
blocksize
;
device
->
pwave
[
c
].
dwBytesRecorded
=
0
;
device
->
pwave
[
c
].
dwUser
=
(
DWORD
)
device
;
...
...
@@ -1167,8 +1170,6 @@ IDirectSoundCaptureBufferImpl_Start(
break
;
}
}
if
(
device
->
buflen
%
blocksize
)
device
->
pwave
[
device
->
nrofpwaves
-
1
].
dwBufferLength
=
device
->
buflen
%
blocksize
;
FillMemory
(
device
->
buffer
,
device
->
buflen
,
(
device
->
pwfx
->
wBitsPerSample
==
8
)
?
128
:
0
);
}
...
...
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