开发者

Playing multiple tracks in sync flash builder

I'm about to create some art installation using augmented reality and music. I'd like to implement some kind of sampler in it, but I can't find any way to do it.

It's gonna be a looper, I've got 12 files (each 8 seconds) and I want to play them synchronized - so they must start at the s开发者_JS百科ame time. this is example of something similiar to my project: http://www.incredibox.fr/ . They must be controlled by changing volume (0 means off).

When I'm adding them to the code and play - delay is very annoying. Is there any posibility to sync them?


ActionScript 3 uses the notion of Cue Points for synchronization.

Using Cue Points: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000561.html

This enables the coordination of playback with events. NetStream events can then be used to control and coordinate your loops at specific points.

NetStream Events: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.html#eventSummary

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜