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
8a317d89
Commit
8a317d89
authored
Aug 25, 2015
by
Andrew Eikum
Committed by
Alexandre Julliard
Aug 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xaudio2: Implement IXAudio2SourceVoice::Play.
parent
1c643f39
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
xaudio_dll.c
dlls/xaudio2_7/xaudio_dll.c
+21
-0
No files found.
dlls/xaudio2_7/xaudio_dll.c
View file @
8a317d89
...
...
@@ -140,6 +140,8 @@ typedef struct _XA2SourceImpl {
DWORD
nsends
;
XAUDIO2_SEND_DESCRIPTOR
*
sends
;
BOOL
running
;
struct
list
entry
;
}
XA2SourceImpl
;
...
...
@@ -429,6 +431,8 @@ static void WINAPI XA2SRC_DestroyVoice(IXAudio2SourceVoice *iface)
This
->
in_use
=
FALSE
;
This
->
running
=
FALSE
;
HeapFree
(
GetProcessHeap
(),
0
,
This
->
fmt
);
LeaveCriticalSection
(
&
This
->
lock
);
...
...
@@ -438,7 +442,15 @@ static HRESULT WINAPI XA2SRC_Start(IXAudio2SourceVoice *iface, UINT32 Flags,
UINT32
OperationSet
)
{
XA2SourceImpl
*
This
=
impl_from_IXAudio2SourceVoice
(
iface
);
TRACE
(
"%p, 0x%x, 0x%x
\n
"
,
This
,
Flags
,
OperationSet
);
EnterCriticalSection
(
&
This
->
lock
);
This
->
running
=
TRUE
;
LeaveCriticalSection
(
&
This
->
lock
);
return
S_OK
;
}
...
...
@@ -446,7 +458,15 @@ static HRESULT WINAPI XA2SRC_Stop(IXAudio2SourceVoice *iface, UINT32 Flags,
UINT32
OperationSet
)
{
XA2SourceImpl
*
This
=
impl_from_IXAudio2SourceVoice
(
iface
);
TRACE
(
"%p, 0x%x, 0x%x
\n
"
,
This
,
Flags
,
OperationSet
);
EnterCriticalSection
(
&
This
->
lock
);
This
->
running
=
FALSE
;
LeaveCriticalSection
(
&
This
->
lock
);
return
S_OK
;
}
...
...
@@ -1324,6 +1344,7 @@ static HRESULT WINAPI IXAudio2Impl_CreateSourceVoice(IXAudio2 *iface,
}
src
->
in_use
=
TRUE
;
src
->
running
=
FALSE
;
LeaveCriticalSection
(
&
This
->
lock
);
...
...
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