大约有 41 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0038 秒)
...,此侦听事件响应一次后自动移除。 EventDispatcher play(startTime:Number = 0, loops:Number = 0):SoundChannel 播放声音。 SoundProperty Detaildurationpropertyduration:Number [read-only] 获取总时间。 Implementation public function get duration():NumberMethod Detai...
来源: Laya2.0_api 发布时间: 20190513
...ntDispatcher SoundChannel Index Properties completeHandler isStopped loops startTime url Accessors duration position volume Methods event hasListener off offAll offAllCaller on once pause play resume stop Properties completeHandler completeHandler: Handler Defined in laya/media/SoundChannel.ts:28 ...
来源: Laya3.0_api 发布时间: 20231115
...ass 使用哪个声音类进行播放,null表示自动选择。 * @param startTime 声音播放起始时间。 * @return SoundChannel对象,通过此对象可以对声音进行控制,以及获取声音信息。 */ static playSound(url: string, loops?: number, soundClass?: any, startTime?: numb...
来源: Laya_社区 发布时间: 20180124
...复此bug!SoundManager.playSound=function(url,loops,complete,soundClass,startTime){ (loops===void 0)&& (loops=1); (startTime===void 0)&& (startTime=0); // if (!SoundManager._isActive || !url)return null; if (!url)return null; if (SoundManager._muted)return null; SoundManager._recov...
来源: Laya_社区 发布时间: 20180709
...tatic playMusic playMusic(url: string, loops?: number, complete?: Handler, startTime?: number): SoundChannel Defined in laya/media/SoundManager.ts:353 播放背景音乐。背景音乐同时只能播放一个,如果在播放背景音乐时再次调用本方法,会先停止之前的背景音乐...
来源: Laya3.0_api 发布时间: 20231115
...: 用外网最新的版本已经可以了,外网最新的版本修复了startTime时间无效的bug,你可以下载测试下。 2018-08-31 0 1 分享 微博 QZONE 微信 176*****233 赞同来自: 有人遇到过吗 2018-08-28 0 3 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个建议...
来源: Laya_社区 发布时间: 20180827
...time2"); const targetDuration = 2; // 目标持续时间(毫秒) const startTime = performance.now(); // 使用性能高精度时间标记 // 一个简单的计数循环,用于占用CPU时间 // 初始值和增量的大小可能需要调整以匹配大约2ms的执行时间 let count = 0; while...
来源: Laya3.0_文档 发布时间: 20251010
...uffer) { // console.log("audioBuffer is null",this.url) return; } if (this.startTime >= this.duration) { if (this.loops == 1) { return this.stop(); } this.startTime = 0; } 2.修复 当播放未加载好的声音时 声音状态为暂停时 声音不播放的问题修复 webAudioSound 方法...
来源: Laya_社区 发布时间: 20201014
... @param complete 声音播放完成回调。 * @param startTime 声音播放起始时间。 * @return SoundChannel对象,通过此对象可以对声音进行控制,以及获取声音信息。 */ public static function playMus...
来源: Laya_社区 发布时间: 20180417
... position : Number[read-only] 获取当前播放时间。 SoundChannel startTime : Number 开始时间。 SoundChannel url : String 声音地址。 SoundChannel volume : Number 音量范围从 0(静音)至 1(最大音量)。 SoundChannelPublic Methods Hide Inherited Public Methods ...
来源: laya_api 发布时间: 20170929