Latency in playing short sounds in Flash 9, Actionscript 3

前端 未结 6 1761
不思量自难忘°
不思量自难忘° 2020-12-15 13:44

I\'ve got a few very short audio clips (less than a second long) to be played on various events (button hover, click, etc). However, there is usually a significant lag betw

6条回答
  •  旧时难觅i
    2020-12-15 13:54

    One solution might be to use an ActionScript library that reads sound files as binary data.

    StandingWave
    https://github.com/maxl0rd/standingwave3
    http://maxl0rd.github.com/standingwave3/

    Also, make sure to check audio settings of the environment around your SWF. I was debugging my app for hours until realizing the latency came from my bluetooth headphone connection.

提交回复
热议问题