瀏覽代碼

fix for mp3 starting with ID3

Nicolas Cannasse 11 年之前
父節點
當前提交
39b9b47750
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hxd/res/Sound.hx

+ 1 - 1
hxd/res/Sound.hx

@@ -130,7 +130,7 @@ class Sound extends Resource {
 			bytesPosition = 0;
 			snd.addEventListener(flash.events.SampleDataEvent.SAMPLE_DATA, onWavSample);
 			
-		case 255: // MP3
+		case 255, 'I'.code: // MP3 (or ID3)
 			
 			snd.loadCompressedDataFromByteArray(bytes.getData(), bytes.length);
 			if( loop ) {