大约有 22 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0026 秒)
WebAudioSound.ctx.state typeError:null is not an object(evaluating 'WebAudioSound.ctx.state') iosAPP多次跳转游戏链接,初始化失败,一般4-5次会触发,这是Laya内存回收机制引起的吧 2018-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...
来源: Laya_社区 发布时间: 20180316
分享 修复webaudiosound 循环播放的声音 俩个失声问题 1.循环播放的声音长时间播放 暂停后再恢复 没有声音的问题修复 webAudioSoundChannel play方法修改 _proto = Laya.WebAudioSoundChannel.prototype; /** *播放声音 */ _proto.play = function () { // if (t...
来源: Laya_社区 发布时间: 20201014
...到类似的问题,虽然没有定位到最根本的原因,发现只有WebAudioSound才会播放不出来,所以在游戏切回前台的时候,重新创建AudioContext,然后就能正常播放了。 static _visibilityChange() { if (ILaya.stage.isVisibility) { ...
来源: Laya_社区 发布时间: 20180425
... this.url = url; this.audioBuffer = WebAudioSound._dataCache[url]; if (this.audioBuffer) { this._loaded(this.audioBuffer); return; } ...
来源: Laya_社区 发布时间: 20200107
...我又参考了https://github.com/photonstorm/phaser/issues/2913 在引擎WebAudioSound源码中添加了几行,解决了问题。官方要不要修复一下这个BUG? WebAudioSound._playEmptySound=function(){ if (WebAudioSound.ctx==null){ return; }; var source...
来源: Laya_社区 发布时间: 20171114
...题, chd1024 • 2018-04-23 11:46 我调试到了底层看了一下,是WebAudioSound.ctx.decodeAudioData(WebAudioSound.tInfo["buffer"],WebAudioSound._done,WebAudioSound._fail);这个一句decode失败了,回调到了WebAudioSound._fail这里面 是不是音频格式有什么要求?...
来源: Laya_社区 发布时间: 20180422
...个报错是什么意思? SoundManager._recoverWebAudio=function(){ if(WebAudioSound.ctx&&WebAudioSound.ctx.state!="running") WebAudioSound.ctx.resume(); } 难道是音效问题?可是前面加载的时候我并没有加载音效啊。。 15818760256 • 2018-05-19 17:03 我看...
来源: Laya_社区 发布时间: 20180517
...器上,锁屏又进入游戏时报错: "undefind is not a function" "WebAudioSound.ctx.resume()"is not function 附件 : --> 2018-07-16 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 青衿 赞同来自: Laya....
来源: Laya_社区 发布时间: 20180716
...Loops, _musicCompleteHandler, _musicPosition); } _blurPaused = false; } if(WebAudioSound.ctx.state == "interrupted") { WebAudioSound.ctx.resume(); } } 2017-10-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 yi979070830 相关问题 ...
来源: Laya_社区 发布时间: 20171019
...家数量不多. 目前我们是用类似这样的代码: try { if (Laya.WebAudioSound.webAudioEnabled) { Laya.SoundManager.playSound(this.soundUrl, 1, null, Laya.WebAudioSound, 0); } else { Laya.SoundManager.playSound(this.soundUrl, 1, null, null, 0); } } catch(e) { Debug.err(e.message); } Victor ...
来源: Laya_社区 发布时间: 20181016