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
5e19a64b
Commit
5e19a64b
authored
Mar 29, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Call interface methods properly.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1ec90490
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dsoundrender.c
dlls/quartz/dsoundrender.c
+4
-4
No files found.
dlls/quartz/dsoundrender.c
View file @
5e19a64b
...
...
@@ -491,7 +491,7 @@ static HRESULT WINAPI DSoundRender_CompleteConnect(BaseRenderer * iface, IPin *
DSBCAPS_GETCURRENTPOSITION2
;
buf_desc
.
dwBufferBytes
=
This
->
buf_size
;
buf_desc
.
lpwfxFormat
=
format
;
hr
=
IDirectSound_CreateSoundBuffer
(
This
->
dsound
,
&
buf_desc
,
&
This
->
dsbuffer
,
NULL
);
hr
=
IDirectSound
8
_CreateSoundBuffer
(
This
->
dsound
,
&
buf_desc
,
&
This
->
dsbuffer
,
NULL
);
This
->
writepos
=
This
->
buf_size
;
if
(
FAILED
(
hr
))
ERR
(
"Can't create sound buffer (%x)
\n
"
,
hr
);
...
...
@@ -645,14 +645,14 @@ HRESULT DSoundRender_create(IUnknown * pUnkOuter, LPVOID * ppv)
if
(
FAILED
(
hr
))
ERR
(
"Cannot create Direct Sound object (%x)
\n
"
,
hr
);
else
hr
=
IDirectSound_SetCooperativeLevel
(
pDSoundRender
->
dsound
,
GetDesktopWindow
(),
DSSCL_PRIORITY
);
hr
=
IDirectSound
8
_SetCooperativeLevel
(
pDSoundRender
->
dsound
,
GetDesktopWindow
(),
DSSCL_PRIORITY
);
if
(
SUCCEEDED
(
hr
))
{
IDirectSoundBuffer
*
buf
;
DSBUFFERDESC
buf_desc
;
memset
(
&
buf_desc
,
0
,
sizeof
(
DSBUFFERDESC
));
buf_desc
.
dwSize
=
sizeof
(
DSBUFFERDESC
);
buf_desc
.
dwFlags
=
DSBCAPS_PRIMARYBUFFER
;
hr
=
IDirectSound_CreateSoundBuffer
(
pDSoundRender
->
dsound
,
&
buf_desc
,
&
buf
,
NULL
);
hr
=
IDirectSound
8
_CreateSoundBuffer
(
pDSoundRender
->
dsound
,
&
buf_desc
,
&
buf
,
NULL
);
if
(
SUCCEEDED
(
hr
))
{
IDirectSoundBuffer_Play
(
buf
,
0
,
0
,
DSBPLAY_LOOPING
);
IDirectSoundBuffer_Release
(
buf
);
...
...
@@ -736,7 +736,7 @@ static ULONG WINAPI DSoundRender_Release(IBaseFilter * iface)
IDirectSoundBuffer_Release
(
This
->
dsbuffer
);
This
->
dsbuffer
=
NULL
;
if
(
This
->
dsound
)
IDirectSound_Release
(
This
->
dsound
);
IDirectSound
8
_Release
(
This
->
dsound
);
This
->
dsound
=
NULL
;
BasicAudio_Destroy
(
&
This
->
basicAudio
);
...
...
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