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
d2ae1054
Commit
d2ae1054
authored
Aug 27, 2015
by
Andrew Eikum
Committed by
Alexandre Julliard
Aug 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xaudio2: Implement IXAudio2SourceVoice::GetState.
parent
e43ca169
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
xaudio_dll.c
dlls/xaudio2_7/xaudio_dll.c
+23
-0
xaudio2.idl
include/xaudio2.idl
+1
-0
No files found.
dlls/xaudio2_7/xaudio_dll.c
View file @
d2ae1054
...
@@ -655,7 +655,30 @@ static void WINAPI XA2SRC_GetState(IXAudio2SourceVoice *iface,
...
@@ -655,7 +655,30 @@ static void WINAPI XA2SRC_GetState(IXAudio2SourceVoice *iface,
XAUDIO2_VOICE_STATE
*
pVoiceState
,
UINT32
Flags
)
XAUDIO2_VOICE_STATE
*
pVoiceState
,
UINT32
Flags
)
{
{
XA2SourceImpl
*
This
=
impl_from_IXAudio2SourceVoice
(
iface
);
XA2SourceImpl
*
This
=
impl_from_IXAudio2SourceVoice
(
iface
);
TRACE
(
"%p, %p, 0x%x
\n
"
,
This
,
pVoiceState
,
Flags
);
TRACE
(
"%p, %p, 0x%x
\n
"
,
This
,
pVoiceState
,
Flags
);
EnterCriticalSection
(
&
This
->
lock
);
if
(
!
(
Flags
&
XAUDIO2_VOICE_NOSAMPLESPLAYED
)){
ALint
bufpos
=
0
;
alGetSourcei
(
This
->
al_src
,
AL_SAMPLE_OFFSET
,
&
bufpos
);
pVoiceState
->
SamplesPlayed
=
This
->
played_frames
+
bufpos
;
}
else
pVoiceState
->
SamplesPlayed
=
0
;
if
(
This
->
nbufs
)
pVoiceState
->
pCurrentBufferContext
=
This
->
buffers
[
This
->
first_buf
].
xa2buffer
.
pContext
;
else
pVoiceState
->
pCurrentBufferContext
=
NULL
;
pVoiceState
->
BuffersQueued
=
This
->
nbufs
;
LeaveCriticalSection
(
&
This
->
lock
);
TRACE
(
"returning %s, queued: %u
\n
"
,
wine_dbgstr_longlong
(
pVoiceState
->
SamplesPlayed
),
This
->
nbufs
);
}
}
static
HRESULT
WINAPI
XA2SRC_SetFrequencyRatio
(
IXAudio2SourceVoice
*
iface
,
static
HRESULT
WINAPI
XA2SRC_SetFrequencyRatio
(
IXAudio2SourceVoice
*
iface
,
...
...
include/xaudio2.idl
View file @
d2ae1054
...
@@ -567,6 +567,7 @@ const UINT32 XAUDIO2_VOICE_MUSIC = 16;
...
@@ -567,6 +567,7 @@ const UINT32 XAUDIO2_VOICE_MUSIC = 16;
const
UINT32
XAUDIO2_PLAY_TAILS
=
32
;
const
UINT32
XAUDIO2_PLAY_TAILS
=
32
;
const
UINT32
XAUDIO2_END_OF_STREAM
=
64
;
const
UINT32
XAUDIO2_END_OF_STREAM
=
64
;
const
UINT32
XAUDIO2_SEND_USEFILTER
=
128
;
const
UINT32
XAUDIO2_SEND_USEFILTER
=
128
;
const
UINT32
XAUDIO2_VOICE_NOSAMPLESPLAYED
=
256
;
const
XAUDIO2_FILTER_TYPE
XAUDIO2_DEFAULT_FILTER_TYPE
=
LowPassFilter
;
const
XAUDIO2_FILTER_TYPE
XAUDIO2_DEFAULT_FILTER_TYPE
=
LowPassFilter
;
const
float
XAUDIO2_DEFAULT_FILTER_FREQUENCY
=
XAUDIO2_MAX_FILTER_FREQUENCY
;
const
float
XAUDIO2_DEFAULT_FILTER_FREQUENCY
=
XAUDIO2_MAX_FILTER_FREQUENCY
;
...
...
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