开发者

how to crossfade two AudioElements in OSMF?

开发者 https://www.devze.com 2023-04-02 07:39 出处:网络
I\'d like to crossfade two AudioElements inside a SerialElement but I don\'t know where to start. Any cl开发者_StackOverflow社区ue?So far I\'ve found that the only way is to put them in a parallel ele

I'd like to crossfade two AudioElements inside a SerialElement but I don't know where to start. Any cl开发者_StackOverflow社区ue?


So far I've found that the only way is to put them in a parallel element. Have the 2nd audio element wrapped in a serial element along with a duration element.

Like so:

Parallel Element ->
    Audio Element
    Serial Element ->
         DurationElement
         Audio Element

You can then set up event listeners using their time and audio traits to perform a fade effect for each element.

0

精彩评论

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