大约有 157 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0033 秒)
Laya_社区(133) Laya2.0_文档(7) Laya3.0_文档(6) laya_api(3) Laya3.0_api(3) Laya2.0_api(3) Laya2.0_示例(1) Laya_示例(1)
...迟 Laya 背景音乐太大 预加载 Laya.loader.load 音乐 Laya.SoundManager.playMusic 播放 会出现延迟效果 Laya.loader.load(['remote/music/' + this.soundUrl + '.mp3'], new Laya.Handler(this, () => { this.store.isDemo = true; ...
来源: Laya_社区 发布时间: 20201102
...: 1773 关注: 2 人 林龙 • 2018-05-30 10:21 我现在是0.9.6版本 SoundManager.playSound("sound/jump.mp3", 1, null); Laya_Aaron • 2018-05-30 10:24 建议升级到新版 林龙 • 2018-05-30 10:33 @Laya_Aaron:升级了 音效还是不支持mp3吧? Laya_Aaron • 2018-05-30 10:36...
来源: Laya_社区 发布时间: 20180530
Laya.SoundManager.playMusic 播放不出音效,并且预加载也会出错 在使用Laya.SoundManager.playMusic方法播放背景音时,在调试器里面是听不见声音的,使用预加载去加载音效也会报错,但不是路径问题,代码应该也没有错,不知道什么原因,应该是...
来源: Laya_社区 发布时间: 20180207
...用 声音文件。 2.声音处理相关类的注意事项 Sound类不支持bytesLoaded、bytesTotal属性,监听声音文件加载进度的功能不可用。 改变音量的时候,不要使用: SoundMixer.soundTransform.volume 请改用: SoundChannel.sound...
来源: Laya_社区 发布时间: 20151111
...,再播放同一个url 就不行了 是我代码写错了吗? var soundControl = true; // 背景乐开关 function onPlayBgMusic(url, loop, rate) { Laya.SoundManager.playbackRate = rate; if(soundControl){ Laya.SoundManager.playMusic(url, loop, Laya.Handler.create(this...
来源: Laya_社区 发布时间: 20170414
... 在laya模拟器里运行都播放正常, 发布qq小游戏之后,playSound使用本地url播放也正常, 使用远程http url播放音效,只能播放1次,之后就再也播放不出来,也没有报错信息。 代码很简单,附件为复现工程,具体代码在GameUiTest.js thi...
来源: Laya_社区 发布时间: 20200225
SoundManager的兼容性问题 play sound error!InvalidAccessError: Failed to execute 'setTargetAtTime' on 'AudioParam': Time constant must be a finite positive number: 0","channel":"error","stack":{"hash":"7d3c8a0d876bf167157fe044b73f4d88","error":"Error\n at Function.i.error \n at e.pla...
来源: Laya_社区 发布时间: 20180902
...ls.push({url:"http://192.168.6.132:8900/bin/comp/tap.mp3",type:Laya.Loader.SOUND});Laya.loader.load(resurls, Handler.create(this, onLoaded), Handler.create(this, onLoading, null, false)); function onLoaded(){ console.log(Laya.loader.getRes(src)); } 在chrome,安卓下都是正常的,在ios和...
来源: Laya_社区 发布时间: 20170811
...多警告. code.js:12835 Resources already exist,is repeated loading: res/sound/bullet.mp3 附件 : --> 2018-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Apple 赞同来自: 忽略即可,如果...
来源: Laya_社区 发布时间: 20180411
...小游戏播放音效无法连续反复播放 症状:1、使用:Laya.SoundManager.playSound(soundA) 播放A音效 2、此时前一个播放尚未完毕,A音效还在进行中,再次按下按键播放A音效 3、以上第2步的播放不会开始 4、等第1步的音效播放完毕后,再...
来源: Laya_社区 发布时间: 20180817