大约有 104 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0031 秒)
音频无法播放 Laya.SoundManager.playMusic('res/sound/'+'fail'+'.wav',1, new Laya.Handler(null,function(){ alert('123') })); 在chrome下 提示图片这个警告,,,手机上也没有声音 附件 : --> 2018-04-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20180403
...的预加载,那么直接使用的音乐资源有没有回收系统? SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, this.onComplete)); 像这样写的代码,会有很多音效,会不会被自动回收 2018-01-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20180119
...下载慢吗,电脑端网页都不用?我用的是官网上的示例,SoundManager.playSound("../../res/sounds/btn.mp3", 1, new Handler(this, this.onComplete));初始化的时候有load资源Laya.loader.load(this.soundPath, Handler.create(this, this.setup)); 2019-08-10 添加评论 免费帖 --...
来源: Laya_社区 发布时间: 20190810
微信小游戏从后台切回来音乐没有恢复播放 真机上 调用SoundManager.playMusic("sound/bgm.mp3"); 播放背景音乐 然后点右上角小圆点切出游戏,或者切出微信 再切回来 音乐没有恢复播放。 不知道是bug还是laya在适配微信小游戏的...
来源: Laya_社区 发布时间: 20180627
Laya.SoundManager.playMusic 播放不出音效,并且预加载也会出错 在使用Laya.SoundManager.playMusic方法播放背景音时,在调试器里面是听不见声音的,使用预加载去加载音效也会报错,但不是路径问题,代码应该也没有错,不知道什么原因,应该是...
来源: Laya_社区 发布时间: 20180207
...用 声音文件。 2.声音处理相关类的注意事项 Sound类不支持bytesLoaded、bytesTotal属性,监听声音文件加载进度的功能不可用。 改变音量的时候,不要使用: SoundMixer.soundTransform.volume 请改用: SoundChannel.sound...
来源: Laya_社区 发布时间: 20151111
...回复 Nevermore 赞同来自: 代码很简单 先load 再play let dreamsSound:Laya.SoundChannel = null Laya.loader.load("res/dreams.mp3",Laya.Handler.create(this,function(){ dreamsSound = Laya.SoundManager.playMusic("res/dreams.mp3") })) ...
来源: Laya_社区 发布时间: 20190716
ios 播放声音问题 需要点击一下才会背景音乐,播放sound完全没有声音。这个有什么解决方案。用微信那个WeixinJSBridge都是游戏刚进去播放一次。如果有很多个背景音乐和各种音效如何解决。 2017-10-17 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20171017
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