百度空间 | 百度首页 
 
查看文章
 
swf文件分析(四)
2007年02月21日 星期三 下午 07:24

*************************************

今天就来解析所谓的音乐了...

mp3为例,如果是wav,好像到flash里面也是mp3.

一齐来看看就知道了.

46 57 53 08 没有问题,fws形式的flash8版本的swf

24 01 00 00 00 00 01 24292 字节。

80 00 02 51 c0 00 01 96 40  代表了他的尺寸,950×650,不懂的看前面。

00 1e 30/

01 0000 011

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字节就是声音数据了...

就是这样,声音就这样导出来了..


类别:电脑应用 | 浏览() | 评论 (0)
 
网友评论:
本篇日志被作者设置为禁止发表新评论

     

©2009 Baidu