• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 18 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0027 秒)

1. 分享 修复webaudiosound 循环播放的声音 俩个失声问题 [ 100%]

分享 修复webaudiosound 循环播放的声音 俩个失声问题 1.循环播放的声音长时间播放  暂停后再恢复 没有声音的问题修复 webAudioSoundChannel play方法修改  _proto = Laya.WebAudioSoundChannel.prototype; /** *播放声音 */ _proto.play = function () { // if (t...

来源: Laya_社区 发布时间: 20201014

2. 如何让发布后的H5加载资源用src或href指向本地路径,而不是网络请求 [ 99%]

...      this.url = url;             this.audioBuffer = WebAudioSound._dataCache[url];             if (this.audioBuffer) {                 this._loaded(this.audioBuffer);                 return;             }        ...

来源: Laya_社区 发布时间: 20200107

3. IOS 音乐和音效 切后台再回来 之后声音消失 [ 98%]

...到类似的问题,虽然没有定位到最根本的原因,发现只有WebAudioSound才会播放不出来,所以在游戏切回前台的时候,重新创建AudioContext,然后就能正常播放了。     static _visibilityChange() {             if (ILaya.stage.isVisibility) {     ...

来源: Laya_社区 发布时间: 20180425

4. Laya.SoundManager.playSound 无法播放出音效 [ 92%]

...题, chd1024 • 2018-04-23 11:46 我调试到了底层看了一下,是WebAudioSound.ctx.decodeAudioData(WebAudioSound.tInfo["buffer"],WebAudioSound._done,WebAudioSound._fail);这个一句decode失败了,回调到了WebAudioSound._fail这里面 是不是音频格式有什么要求?...

来源: Laya_社区 发布时间: 20180422

5. 游戏运行过程中laya引擎里报错? [ 87%]

...个报错是什么意思? SoundManager._recoverWebAudio=function(){ if(WebAudioSound.ctx&&WebAudioSound.ctx.state!="running") WebAudioSound.ctx.resume(); } 难道是音效问题?可是前面加载的时候我并没有加载音效啊。。 15818760256 • 2018-05-19 17:03 我看...

来源: Laya_社区 发布时间: 20180517

6. 声音 soundManager [ 83%]

...器上,锁屏又进入游戏时报错: "undefind is not a function" "WebAudioSound.ctx.resume()"is not function   附件 : --> 2018-07-16 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 青衿 赞同来自: Laya....

来源: Laya_社区 发布时间: 20180716

7. 疑似WebAudio内存泄漏 [ 74%]

...家数量不多. 目前我们是用类似这样的代码: 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

8. 背景音乐播放内存问题 [ 71%]

... 微博 QZONE 微信 douzhix 赞同来自: 对了,我把引擎类中的WebAudioSound类的dispose方法改了,改成了这样:   public function dispose():void { delete _dataCache[url]; delete __loadingSound[url]; this.audioBuffer = null; this.data = null; this.__toPlays = []; super.dispose()...

来源: Laya_社区 发布时间: 20180205

9. chrome 音效 [ 63%]

...udio API的自动播放政策。似乎Chrome 70中会再度实施。 之后webAudioSound针对chrome会有相应更新吗 2018-05-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 朱A翰 赞同来自: 顶一下 2...

来源: Laya_社区 发布时间: 20180518

10. Laya.SoundManager.playSound在iphone6上异常 [ 62%]

...接报异常。 引擎版本是1.7.17,报错是在laya.core的4921行,WebAudioSound.ctx.resume(),报错见图。 有没有解决方案? 附件 : --> 2018-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

来源: Laya_社区 发布时间: 20180515