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
c385a935
Commit
c385a935
authored
Apr 26, 2011
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Zero buffer, only write data if needed.
parent
e140077c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+5
-1
No files found.
dlls/winealsa.drv/mmdevdrv.c
View file @
c385a935
...
...
@@ -479,6 +479,10 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface,
hr
=
E_OUTOFMEMORY
;
goto
exit
;
}
if
(
fmt
->
wBitsPerSample
==
8
)
memset
(
This
->
local_buffer
,
128
,
This
->
bufsize_frames
*
fmt
->
nBlockAlign
);
else
memset
(
This
->
local_buffer
,
0
,
This
->
bufsize_frames
*
fmt
->
nBlockAlign
);
if
((
err
=
snd_pcm_sw_params_get_boundary
(
sw_params
,
&
boundary
))
<
0
){
WARN
(
"Unable to get boundary: %d (%s)
\n
"
,
err
,
snd_strerror
(
err
));
...
...
@@ -1110,7 +1114,7 @@ static void CALLBACK alsa_push_buffer_data(void *user, BOOLEAN timer)
EnterCriticalSection
(
&
This
->
lock
);
if
(
This
->
dataflow
==
eRender
)
if
(
This
->
dataflow
==
eRender
&&
This
->
held_frames
)
alsa_write_data
(
This
);
else
if
(
This
->
dataflow
==
eCapture
)
alsa_read_data
(
This
);
...
...
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