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
541075c3
Commit
541075c3
authored
Aug 10, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
Aug 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: After GetBuffer, refuse Reset, but Start/Stop is ok.
parent
64c1f477
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+5
-0
mmdevdrv.c
dlls/winecoreaudio.drv/mmdevdrv.c
+5
-0
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+5
-0
No files found.
dlls/winealsa.drv/mmdevdrv.c
View file @
541075c3
...
...
@@ -1753,6 +1753,11 @@ static HRESULT WINAPI AudioClient_Reset(IAudioClient *iface)
return
AUDCLNT_E_NOT_STOPPED
;
}
if
(
This
->
buf_state
!=
NOT_LOCKED
){
LeaveCriticalSection
(
&
This
->
lock
);
return
AUDCLNT_E_BUFFER_OPERATION_PENDING
;
}
This
->
held_frames
=
0
;
This
->
written_frames
=
0
;
This
->
lcl_offs_frames
=
0
;
...
...
dlls/winecoreaudio.drv/mmdevdrv.c
View file @
541075c3
...
...
@@ -1391,6 +1391,11 @@ static HRESULT WINAPI AudioClient_Reset(IAudioClient *iface)
return
AUDCLNT_E_NOT_STOPPED
;
}
if
(
This
->
getbuf_last
){
OSSpinLockUnlock
(
&
This
->
lock
);
return
AUDCLNT_E_BUFFER_OPERATION_PENDING
;
}
This
->
written_frames
=
0
;
hr
=
AudioClock_GetPosition_nolock
(
This
,
&
This
->
last_time
,
NULL
,
TRUE
);
...
...
dlls/wineoss.drv/mmdevdrv.c
View file @
541075c3
...
...
@@ -1379,6 +1379,11 @@ static HRESULT WINAPI AudioClient_Reset(IAudioClient *iface)
return
AUDCLNT_E_NOT_STOPPED
;
}
if
(
This
->
buf_state
!=
NOT_LOCKED
){
LeaveCriticalSection
(
&
This
->
lock
);
return
AUDCLNT_E_BUFFER_OPERATION_PENDING
;
}
This
->
written_frames
=
0
;
This
->
inbuf_frames
=
0
;
This
->
held_frames
=
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