Don't set byte offset if playing sound from start

This commit is contained in:
Joshua Granick
2014-02-14 10:09:41 -08:00
parent 3d450247d3
commit 67171cda1e

View File

@@ -67,7 +67,10 @@ namespace lime
{
//alSourceQueueBuffers(mSourceID, 1, &inBufferID);
alSourcePlay(mSourceID);
alSourcef(mSourceID, AL_BYTE_OFFSET, seek * mSize);
if (seek != 0)
{
alSourcef(mSourceID, AL_BYTE_OFFSET, seek * mSize);
}
}
mWasPlaying = true;