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
80be4dad
Commit
80be4dad
authored
Sep 24, 2015
by
Andrew Eikum
Committed by
Alexandre Julliard
Sep 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xaudio2: Don't report mid-buffer positions.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
parent
2decbcc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
xaudio_dll.c
dlls/xaudio2_7/xaudio_dll.c
+3
-7
No files found.
dlls/xaudio2_7/xaudio_dll.c
View file @
80be4dad
...
...
@@ -776,13 +776,9 @@ static void WINAPI XA2SRC_GetState(IXAudio2SourceVoice *iface,
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
if
(
!
(
Flags
&
XAUDIO2_VOICE_NOSAMPLESPLAYED
))
pVoiceState
->
SamplesPlayed
=
This
->
played_frames
;
else
pVoiceState
->
SamplesPlayed
=
0
;
if
(
This
->
nbufs
)
...
...
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