Fix streaming sound time

openmw-38
Chris Robinson 9 years ago
parent 3ce6aee98b
commit 5ad772c3b3

@ -376,7 +376,7 @@ double OpenAL_SoundStream::getTimeOffset()
{
ALint queued;
alGetSourcei(mSource, AL_BUFFERS_QUEUED, &queued);
ALint inqueue = mBufferSize/mFrameSize*queued + offset;
ALint inqueue = mBufferSize/mFrameSize*queued - offset;
t = (double)(mDecoder->getSampleOffset() - inqueue) / (double)mSampleRate;
}
else

Loading…
Cancel
Save