文件名称:as3boxingtu
- 所属分类:
- ActiveX/DCOM
- 资源属性:
- 上传时间:
- 2012-11-26
- 文件大小:
- 230kb
- 下载次数:
- 0次
- 提 供 者:
- tt***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
pcm这段代码首先加载并播放一个声音,然后监听Event.ENTER_fr a me事件,也就是在声音播放时触发onEnterfr a me()函数. onEnterfr a me()首先调用SoundMixer.computeSpectrum()方法,把波形数据保存在ByteArray对象bytes中.
然后使用矢量绘图API绘制声音的波形.第一个for循环遍历前256个左声道的数据, 并使用Graphics.lineTo()方法从一个点绘到另一个点.第二个for循环遍历接下来的256个右声道的数据,这次以相反的次序绘图,从右到左.最后的波形图可以产生一个有趣的镜像效果.
-pcm this code to load and play the first one voice, and then monitor Event.ENTER_fr a me events, that is, voice playback trigger onEnterfr a me () function. onEnterfr a me () first call SoundMixer.computeSpectrum () method, the waveform data stored in the ByteArray object in bytes. and then use vector graphics rendering API sound waveform. The first traversal for the cycle 256 before the left channel data, and use Graphics.lineTo () method from one point to another point of painting. The second for the cycle traverse the next 256 right channel data in the opposite order of the drawing, right-to-left. final waveform can produce an interesting image effects.
然后使用矢量绘图API绘制声音的波形.第一个for循环遍历前256个左声道的数据, 并使用Graphics.lineTo()方法从一个点绘到另一个点.第二个for循环遍历接下来的256个右声道的数据,这次以相反的次序绘图,从右到左.最后的波形图可以产生一个有趣的镜像效果.
-pcm this code to load and play the first one voice, and then monitor Event.ENTER_fr a me events, that is, voice playback trigger onEnterfr a me () function. onEnterfr a me () first call SoundMixer.computeSpectrum () method, the waveform data stored in the ByteArray object in bytes. and then use vector graphics rendering API sound waveform. The first traversal for the cycle 256 before the left channel data, and use Graphics.lineTo () method from one point to another point of painting. The second for the cycle traverse the next 256 right channel data in the opposite order of the drawing, right-to-left. final waveform can produce an interesting image effects.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
0Table
Data
WordDocument
[5]DocumentSummaryInformation
[5]SummaryInformation
Data
WordDocument
[5]DocumentSummaryInformation
[5]SummaryInformation