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

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

41. 播放MP3格式的音效,设置音量为0,无效!! 依旧有声音。 [ 76%]

...。 手机 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

42. 求教: soundManager如何停止正在播放的背景音乐 [ 76%]

... 3 个回复 Monica - 知识达人 赞同来自: shaotianhk SoundManager.playSound或者 SoundManager.playMusic会返回一个SoundChannel实例。你可以声明一个变量来接收它,然后通过SoundChannel来控制播放、停止、暂停。具体代码如下所示: var soundC:SoundChanne...

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

43. app声音有问题 [ 75%]

...地址”); 当点击按钮时要播放点击音效, 用SoundManager.playSound(“音效地址”);,此时只能听到点击音效,背景音乐立即停止。   我怀疑在app中,背景音乐和音效的通道是一个。 请问大神们有何方法解决?   下面是demo , 用手...

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

44. 有没有可以暂停播放音乐的方法 [ 75%]

...内容相关的链接 提交 1 个回复 qian 赞同来自: SoundManager.playSound或者 SoundManager.playMusic会返回一个SoundChannel实例。你可以声明一个变量来接收它,然后通过SoundChannel来控制播放、停止、暂停。具体代码如下所示: var soundC:SoundChanne...

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

45. laya.media.SoundManager_API3.0 [ 75%]

...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

46. QQ里扫一扫打开网页,不响应Laya.Event.FOCUS事件,导致失去焦点后,声音异常 [ 74%]

...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

47. [LayaAirIDE2]Laya2.13.8引擎版本接入淘宝小游戏在安卓没声音 [ 73%]

...AudioContext() 播放背景音,点击图片则是使用Laya.SoundManager.playSound("")播放音频。安卓必现没声。 附件 : --> taobaogame.zip 2025-09-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 La...

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

48. ios load后 声音播放问题 [ 73%]

...预加载了,返回的依然会是undefined;直接使用SoundManager.playSound()也无效。使用SoundManager.playMusic()有效; 要使用playSound(),必须要先调用一次playMusic() 即使提前预加载了音频,playMusic()依然会去再加载一次,也就是说,如果需求是立...

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

49. https://ask.layabox.com/question/14310,在手机上不能同时连续播放音效 [ 73%]

...能同时连续播放音效 能解决一下这个问题吗? SoundManager.PlaySound()方法,在微信小游戏开发工具测试正常,但是在手机上就存在如下问题: 比如一个长度1s的音效,连续播放,1s之内始终只会播放一次 2018-06-07 添加评论 免费帖 -->...

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

50. 疑似WebAudio内存泄漏 [ 72%]

...代码: 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