大约有 186 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
Laya_社区(175) Laya2.0_文档(4) Laya3.0_文档(2) laya_api(1) Laya_示例(1) Laya3.0_api(1) Laya2.0_示例(1) Laya2.0_api(1)
...。 手机 ios 代码如下: (1)var SoundChannel = Laya.SoundManager.playSound(url, 1); SoundChannel.volume = 0; (2)Laya.SoundManager.playSound(url, 1); Laya.SoundManager.setSoundVolume(0); 两种方式都不起作用!! 2018-08-30 5 条评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20180830
... 3 个回复 Monica - 知识达人 赞同来自: shaotianhk SoundManager.playSound或者 SoundManager.playMusic会返回一个SoundChannel实例。你可以声明一个变量来接收它,然后通过SoundChannel来控制播放、停止、暂停。具体代码如下所示: var soundC:SoundChanne...
来源: Laya_社区 发布时间: 20180312
...地址”); 当点击按钮时要播放点击音效, 用SoundManager.playSound(“音效地址”);,此时只能听到点击音效,背景音乐立即停止。 我怀疑在app中,背景音乐和音效的通道是一个。 请问大神们有何方法解决? 下面是demo , 用手...
来源: Laya_社区 发布时间: 20170424
...内容相关的链接 提交 1 个回复 qian 赞同来自: SoundManager.playSound或者 SoundManager.playMusic会返回一个SoundChannel实例。你可以声明一个变量来接收它,然后通过SoundChannel来控制播放、停止、暂停。具体代码如下所示: var soundC:SoundChanne...
来源: Laya_社区 发布时间: 20180329
...d muted soundMuted useAudioMusic Methods addChannel destroySound playMusic playSound removeChannel setMusicVolume setSoundVolume stopAll stopAllSound stopMusic stopSound Properties Static autoReleaseSound autoReleaseSound: boolean = true Defined in laya/media/SoundManager.ts:90 音效播放后自动...
来源: Laya3.0_api 发布时间: 20231115
...leaseSound = true Laya.SoundManager.autoStopMusic = true Laya.SoundManager.playSound("sound/bg1.mp3", 0); Laya.stage.on(Laya.Event.FOCUS, null, function(){ console.log("获取焦点") Laya.SoundManager.playSound("sound/bg1.mp3", 0); }) Laya.stage.on(Laya.Event.BLUR, null, function(){ console.log("...
来源: Laya_社区 发布时间: 20180807
...AudioContext() 播放背景音,点击图片则是使用Laya.SoundManager.playSound("")播放音频。安卓必现没声。 附件 : --> taobaogame.zip 2025-09-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 La...
来源: Laya_社区 发布时间: 20250929
...预加载了,返回的依然会是undefined;直接使用SoundManager.playSound()也无效。使用SoundManager.playMusic()有效; 要使用playSound(),必须要先调用一次playMusic() 即使提前预加载了音频,playMusic()依然会去再加载一次,也就是说,如果需求是立...
来源: Laya_社区 发布时间: 20170811
...能同时连续播放音效 能解决一下这个问题吗? SoundManager.PlaySound()方法,在微信小游戏开发工具测试正常,但是在手机上就存在如下问题: 比如一个长度1s的音效,连续播放,1s之内始终只会播放一次 2018-06-07 添加评论 免费帖 -->...
来源: Laya_社区 发布时间: 20180607
...代码: 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 • 2018-10-18 15:56 @demibug 目前在IE上我用...
来源: Laya_社区 发布时间: 20181016