Merge pull request #517 from Hasufel/patch-3

fix audio offset
This commit is contained in:
Joshua Granick
2015-07-21 14:21:35 -07:00

View File

@@ -299,8 +299,8 @@ class AudioSource {
if (buffer != null) {
AL.sourceRewind (id);
AL.sourcef (id, AL.SEC_OFFSET, (value + offset) / 1000);
if (playing) AL.sourcePlay (id);
AL.sourcef (id, AL.SEC_OFFSET, (value + offset) / 1000);
}
@@ -386,4 +386,4 @@ class AudioSource {
}
}
}