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
b8aadbfb
Commit
b8aadbfb
authored
Sep 20, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Sep 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Implement SynthPortImpl_IDirectMusicPort_PlayBuffer.
parent
b177ceff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
port.c
dlls/dmusic/port.c
+20
-2
No files found.
dlls/dmusic/port.c
View file @
b8aadbfb
...
...
@@ -104,10 +104,28 @@ static ULONG WINAPI SynthPortImpl_IDirectMusicPort_Release(LPDIRECTMUSICPORT ifa
static
HRESULT
WINAPI
SynthPortImpl_IDirectMusicPort_PlayBuffer
(
LPDIRECTMUSICPORT
iface
,
LPDIRECTMUSICBUFFER
buffer
)
{
SynthPortImpl
*
This
=
impl_from_SynthPortImpl_IDirectMusicPort
(
iface
);
HRESULT
hr
;
REFERENCE_TIME
time
;
LPBYTE
data
;
DWORD
size
;
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
buffer
);
TRACE
(
"(%p/%p)->(%p)
\n
"
,
iface
,
This
,
buffer
);
return
S_OK
;
if
(
!
buffer
)
return
E_POINTER
;
hr
=
IDirectMusicBuffer_GetStartTime
(
buffer
,
&
time
);
if
(
SUCCEEDED
(
hr
))
hr
=
IDirectMusicBuffer_GetRawBufferPtr
(
buffer
,
&
data
);
if
(
SUCCEEDED
(
hr
))
hr
=
IDirectMusicBuffer_GetUsedBytes
(
buffer
,
&
size
);
if
(
SUCCEEDED
(
hr
))
hr
=
IDirectMusicSynth_PlayBuffer
(
This
->
synth
,
time
,
data
,
size
);
return
hr
;
}
static
HRESULT
WINAPI
SynthPortImpl_IDirectMusicPort_SetReadNotificationHandle
(
LPDIRECTMUSICPORT
iface
,
HANDLE
event
)
...
...
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