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

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

31. 微信小游戏背景音乐重叠 [ 74%]

微信小游戏背景音乐重叠 scene01中: Laya.SoundManager.playMusic(music01); Laya.Scene.open(scene02);   scene02中: Laya.SoundManager.playMusic(music02); Laya.Scene.open(scene03);   发现在scene03中music01和music02会重叠播放,直到music01播放一遍完成后才会单独循...

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

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

有没有可以暂停播放音乐的方法 Laya.SoundManager.playMusic 把音乐播放之后 没有一个方法可以暂停,只可以停止。但是停止之后又要重新开始 2018-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

33. laya.media.SoundManager_API3.0 [ 73%]

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

34. 微信小游戏不支持声音的预加载,那么直接使用的音乐资源有没有回收系统? [ 73%]

...,那么直接使用的音乐资源有没有回收系统? SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, this.onComplete)); 像这样写的代码,会有很多音效,会不会被自动回收 2018-01-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

35. 背景音乐文件太大 播放延迟 [ 72%]

...背景音乐太大 预加载 Laya.loader.load 音乐   Laya.SoundManager.playMusic 播放 会出现延迟效果    Laya.loader.load(['remote/music/' + this.soundUrl + '.mp3'], new Laya.Handler(this, () => {                 this.store.isDemo = true;         ...

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

36. 音乐播放 position 和 duration 问题 [ 71%]

...文件,就是一个Laya.WebAudioSound对象 music, 然后用 this.NowPlayMusic = music.play(0,1)来播放背景音乐,返回的Laya.SoundChannel 对象就是 NowPlayMusic ,我听说失去焦点后,这个NowPlayMusic 就废了,所以我就想再使用music.play(position,1)来续播...

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

37. 音频-播放演示 [ 69%]

...t.CLICK, this, this.onPlaySound); musicButton.on(Event.CLICK, this, this.onPlayMusic); } createButton(labelText) { let w = 110, h = 40; const Sprite = Laya.Sprite; let btn = new Sprite(); Laya.stage.addChild(btn); btn.size(w, h); btn.graphics.drawRect(0, 0, w, h, "#FF7F50"); btn.graphics.fillText(la...

来源: Laya2.0_示例 发布时间: 20251130

38. 音频-播放演示 [ 69%]

...on.on(Event.CLICK, this, onPlaySound); musicButton.on(Event.CLICK, this, onPlayMusic); } function createButton(label) { var w = 110; var h = 40; var button = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#F...

来源: Laya_示例 发布时间: 20251130

39. 微信上SoundManager无法关闭背景音乐 [ 68%]

微信上SoundManager无法关闭背景音乐 Laya.SoundManager.playMusic("hall.mp3"); Laya.SoundManager.setMusicVolume(0); Laya.SoundManager.musicVolume = 0; Laya.SoundManager.musicMuted = true;   播放音乐后,关闭背景音乐的3行代码都不起作用。 测试设备1:iphone6(10.2.1)...

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

40. 音乐与音效的播放与控制(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 68%]

...戏用的背景音乐。采用laya.media.SoundManager音频管理类中的playMusic方法进行播放,由于是背景音乐,playMusic方法只能同时播放一个音频文件。 ​ 音效:采用的是laya.media.SoundManager音频管理类中的playSound方法,允许同时播放多个音频...

来源: Laya2.0_文档 发布时间: 20210715