gpt4 book ai didi

actionscript-3 - 如何在AS3中停止播放其他声音?

转载 作者:行者123 更新时间:2023-12-03 00:07:31 24 4
gpt4 key购买 nike

我有代码

if(_snd !=null)
{
_channel.stop();
}

_snd = new SoundBeep();
_channel = new SoundChannel();
_channel = _snd.play();

但是如果用户快速单击几次,闪光灯会稍等一下,然后快速发出哔声。我不知道怎么了。有任何想法吗?

最佳答案

试试这个:

if(_channel != null)
{
_channel.stop();
}

_snd = new SoundBeep();
_channel = _snd.play();

关于actionscript-3 - 如何在AS3中停止播放其他声音?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1019789/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com