ソースを参照

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 ) {