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
3f598560
Commit
3f598560
authored
Aug 02, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Aug 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Don't commit data on Stop and Play.
parent
decd2d81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dsoutput.c
dlls/winealsa.drv/dsoutput.c
+2
-2
No files found.
dlls/winealsa.drv/dsoutput.c
View file @
3f598560
...
...
@@ -587,7 +587,6 @@ static HRESULT WINAPI IDsDriverBufferImpl_Play(PIDSDRIVERBUFFER iface, DWORD dwR
/* **** */
EnterCriticalSection
(
&
This
->
pcm_crst
);
CommitAll
(
This
);
snd_pcm_start
(
This
->
pcm
);
/* **** */
LeaveCriticalSection
(
&
This
->
pcm_crst
);
...
...
@@ -607,10 +606,11 @@ static HRESULT WINAPI IDsDriverBufferImpl_Stop(PIDSDRIVERBUFFER iface)
avail
=
This
->
mmap_buflen_frames
;
snd_pcm_drop
(
This
->
pcm
);
snd_pcm_prepare
(
This
->
pcm
);
avail
=
snd_pcm_avail_update
(
This
->
pcm
);
snd_pcm_mmap_begin
(
This
->
pcm
,
&
areas
,
&
This
->
mmap_pos
,
&
avail
);
snd_pcm_hw_params_get_format
(
This
->
hw_params
,
&
format
);
snd_pcm_format_set_silence
(
format
,
areas
->
addr
,
This
->
mmap_buflen_frames
);
This
->
mmap_pos
+=
snd_pcm_mmap_commit
(
This
->
pcm
,
This
->
mmap_pos
,
avail
);
snd_pcm_mmap_commit
(
This
->
pcm
,
This
->
mmap_pos
,
0
);
/* **** */
LeaveCriticalSection
(
&
This
->
pcm_crst
);
...
...
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