Przeglądaj źródła

Fix sound manager

ShiroSmith 6 lat temu
rodzic
commit
2ce1501061
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      hxd/snd/Manager.hx

+ 1 - 1
hxd/snd/Manager.hx

@@ -555,7 +555,7 @@ class Manager {
 		if (data.duration <= STREAM_DURATION) {
 		if (data.duration <= STREAM_DURATION) {
 			// queue sound buffer
 			// queue sound buffer
 			b = getSoundBuffer(snd, sgroup, start, (s.channel.loop) ? snd.sampleStopLoop : 0);
 			b = getSoundBuffer(snd, sgroup, start, (s.channel.loop) ? snd.sampleStopLoop : 0);
-			driver.queueBuffer(s.handle, b.handle, start, true);
+			driver.queueBuffer(s.handle, b.handle, 0, true);
 		} else {
 		} else {
 
 
 			// wait until fully decoded
 			// wait until fully decoded