Browse Source

fix: prevent from shifting channel position (#908)

Quentin Dreyer 4 years ago
parent
commit
8f7ed52cd1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      hxd/snd/Manager.hx

+ 2 - 2
hxd/snd/Manager.hx

@@ -361,7 +361,7 @@ class Manager {
 				#end
 				playedSamples = 0;
 			}
-			c.position = (s.start + playedSamples) / s.buffers[0].sampleRate;
+			c.position = playedSamples / s.buffers[0].sampleRate;
 			c.positionChanged = false;
 
 			// enqueue next buffers
@@ -816,4 +816,4 @@ class Manager {
 			if( snd != null && snd.channel == c ) snd.channel = null;
 		}
 	}
-}
+}