ncannasse пре 11 година
родитељ
комит
7f72f2d974
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      hxd/res/Sound.hx

+ 3 - 0
hxd/res/Sound.hx

@@ -123,6 +123,9 @@ class Sound extends Resource {
 	public function playAt( startPosition : Float ) {
 	public function playAt( startPosition : Float ) {
 		#if flash
 		#if flash
 		if( snd != null ) {
 		if( snd != null ) {
+			// can't mix two wavs
+			if( wavHeader != null && channel != null )
+				return;
 			bytesPosition = 0;
 			bytesPosition = 0;
 			channel = snd.play(startPosition,loop?0x7FFFFFFF:0);
 			channel = snd.play(startPosition,loop?0x7FFFFFFF:0);
 			volume = volume;
 			volume = volume;