Commit 80be4dad authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

xaudio2: Don't report mid-buffer positions.

parent 2decbcc0
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment