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
7605dc0d
Commit
7605dc0d
authored
Feb 18, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Feb 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Stop and free the dsound buffer when needed.
parent
3b5b2331
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
dsoundrender.c
dlls/quartz/dsoundrender.c
+18
-0
No files found.
dlls/quartz/dsoundrender.c
View file @
7605dc0d
...
...
@@ -166,6 +166,17 @@ static HRESULT DSoundRender_SendSampleData(DSoundRenderImpl* This, LPBYTE data,
DWORD
size2
;
DWORD
play_pos
,
buf_free
;
if
(
This
->
state
!=
State_Running
)
{
DWORD
state
;
if
(
SUCCEEDED
(
IDirectSoundBuffer_GetStatus
(
This
->
dsbuffer
,
&
state
)))
{
if
(
state
&
DSBSTATUS_PLAYING
)
{
IDirectSoundBuffer_Stop
(
This
->
dsbuffer
);
This
->
started
=
FALSE
;
}
}
return
S_OK
;
}
while
(
1
)
{
hr
=
IDirectSoundBuffer_GetCurrentPosition
(
This
->
dsbuffer
,
&
play_pos
,
NULL
);
...
...
@@ -391,6 +402,13 @@ static ULONG WINAPI DSoundRender_Release(IBaseFilter * iface)
if
(
This
->
pClock
)
IReferenceClock_Release
(
This
->
pClock
);
if
(
This
->
dsbuffer
)
IDirectSoundBuffer_Release
(
This
->
dsbuffer
);
This
->
dsbuffer
=
NULL
;
if
(
This
->
dsound
)
IDirectSound_Release
(
This
->
dsound
);
This
->
dsound
=
NULL
;
IPin_Release
(
This
->
ppPins
[
0
]);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
ppPins
);
...
...
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