forked from teamnwah/openmw-tes3coop
Fix streaming sound time
This commit is contained in:
parent
3ce6aee98b
commit
5ad772c3b3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue