查看文章 |
*************************************
![]() 今天就来解析所谓的音乐了... 以mp3为例,如果是wav,好像到flash里面也是mp3的. 一齐来看看就知道了. 46 57 53 08 没有问题,fws形式的flash8版本的swf。 24 01 00 00 =00 00 01 24=292 字节。 80 00 02 51 c0 00 01 96 40 代表了他的尺寸,950×650,不懂的看前面。 00 1e =30帧/秒 01 00=00 01=1 帧 44 11 00 00 00 00 =FileAttributes 不明白 43 02 ff ff ff =背景颜色是 白色 ok,接着 44 0b 26 00 00 00 44 0b =0b 44==0000101101000100=0000101101 000100,tag类型 45,长度 4, tag 类型45 是 SoundStreamHead2,恩恩音乐的. 4,就是后面4个直接就是属性 26 00=0010011000000000= 0010 01 1 0 0000 00 0 0 分别代表了.Reserved=0010=3,好像没有什么用 PlaybackSoundRate=01=1,就是11hz.... PlaybackSoundSize=1=1就是 16bit.... PlaybackSoundType=0=0,就是mono StreamSoundCompression=0000=0,uncompressed,未压缩. StreamSoundRate=00 ,5.5hz... StreamSoundSize=0,是8bit StreamSoundType=0 ,是mono 全部不懂得是为什么... 不解释了.. bf 03=03 bf=0000001110111111=0000001110 111111 ,tag类型是14,长字节,后面4个字节是大小. tag 14是,Define Sound,这个就是声音了. b8 e0 00 00=00 00 e0 b8=57528 音乐有57528字节大小. 恩恩 01 00 =00 01 =1,是这个声音的id 26=00011010=0001 10 1 0,0001=1,代表这个声音的类型是ADPCM, 10=3,代表了这个声音的频率是44hz, 1=1,代表了16bit, 0=0,代表了声音是mono 40 dc 04 00 ,这四个嘛 ...SoundSampleCount,Number of samples. Not affected by mono/stereo setting; for stereo sounds this is the number of sample pairs. 不是很明白.. 但是不影响.. 继续 00 这个是SoundData,The sound data; varies by format. 也是不明白,... 后面那个00,肯定就是休止符了... 然后后面57528-9=57519字节就是声音数据了... 就是这样,声音就这样导出来了.. |
