From 668671b5cdc69feda2310da5336843b492b6e806 Mon Sep 17 00:00:00 2001 From: Nilsen Filc Date: Tue, 21 Jul 2015 23:05:30 +0200 Subject: [PATCH] fix audio offset fixes https://github.com/openfl/openfl/issues/746 --- lime/audio/AudioSource.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lime/audio/AudioSource.hx b/lime/audio/AudioSource.hx index 539c093d3..86112861f 100644 --- a/lime/audio/AudioSource.hx +++ b/lime/audio/AudioSource.hx @@ -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 { } -} \ No newline at end of file +}