大约有 71 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
...自动选择。 * @param startTime 声音播放起始时间。 * @return SoundChannel对象,通过此对象可以对声音进行控制,以及获取声音信息。 */ static playSound(url: string, loops?: number, soundClass?: any, startTime?: number) { return new Promise((resolve, reject) => {...
来源: Laya_社区 发布时间: 20180124
...移除。 EventDispatcher play(startTime:Number = 0, loops:Number = 0):SoundChannel 播放声音。 SoundProperty Detaildurationpropertyduration:Number [read-only] 获取总时间。 Implementation public function get duration():NumberMethod Detaildispose()method public function dispos...
来源: laya_api 发布时间: 20170929
...移除。 EventDispatcher play(startTime:Number = 0, loops:Number = 0):SoundChannel 播放声音。 SoundProperty Detaildurationpropertyduration:Number [read-only] 获取总时间。 Implementation public function get duration():NumberMethod Detaildispose()method public function dispos...
来源: Laya2.0_api 发布时间: 20190513
...使用SoundMixer.soundTransform.volum去设置音量,但是可以通过SoundChannel.soundTransform.volume去设置 示例如下: public function init(e:Event):void { var sound:Sound=new Sound(); sound.load(new URLRequest("xxx.xxx.xxx")); var sc:SoundChannel=sound.play(); var st:SoundTransfor...
来源: Laya_社区 发布时间: 20160311
...微博 QZONE 微信 fool_tiger 赞同来自: 嗯嗯,已经解决了,用SoundChannel的volume属性设置就有效了,因为声音是用SoundChannel播放的 2018-04-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 fool_tiger 相...
来源: Laya_社区 发布时间: 20180426
...Monica - 知识达人 赞同来自: SoundManager.playMusic()会返回一个SoundChannel实例,你自己定义一个变量。然后拿这个变量去调暂停的方法。 你可以先看下SoundChannel的API 2017-11-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...
来源: Laya_社区 发布时间: 20171101
...y[] Returns EventDispatcher play play(startTime?: number, loops?: number): SoundChannel Defined in laya/media/Sound.ts:24 播放声音。 Parameters Default value startTime: number = 0 开始时间,单位秒 Default value loops: number = 0 循环次数,0表示一直循环 Returns SoundChannel 声道...
来源: Laya3.0_api 发布时间: 20231115
...param startTime 声音播放起始时间。 * @return SoundChannel对象,通过此对象可以对声音进行控制,以及获取声音信息。 */ public static function playMusic(url:String, loops:int = 0, complete:Handler = null, startTime:Numb...
来源: Laya_社区 发布时间: 20180417
...音乐 SoundManager.playSound或者 SoundManager.playMusic会返回一个SoundChannel实例。你可以声明一个变量来接收它,然后通过SoundChannel来控制播放、停止、暂停。具体代码如下所示: var soundC:SoundChannel = SoundManager.playSound("url"); //播放 soundC.pl...
来源: Laya_社区 发布时间: 20180308
...1, complete:Handler = null, soundClass:Class = null, startTime:Number = 0):SoundChannel { if ((!_isActive && loops != 0) || !url) return null; if (_muted) return null; _recoverWebAudio(); url = URL.formatURL(url); if (url == _tMusic) { if (_musicMuted) return null; } else { if (Render.isConc...
来源: Laya_社区 发布时间: 20190115