大约有 156 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0031 秒)
Laya_社区(132) Laya2.0_文档(7) Laya3.0_文档(6) laya_api(3) Laya3.0_api(3) Laya2.0_api(3) Laya2.0_示例(1) Laya_示例(1)
...infoDialog.lh", type: Laya.Loader.HIERARCHY }, { url: "resources/sound/dh/boy1.wav", type: Laya.Loader.SOUND }, { url: "resources/sound/dh/boy2.wav", type: Laya.Loader.SOUND }, { url: "resources/sound/dh/boy3.wav", type: Laya.Loader.SOUND }, { url: "resources/...
来源: Laya_社区 发布时间: 20230713
...!! 我现在的问题是不能播放音乐呀,代码如下: var bg_sound:Laya.Sound =new Laya.Sound(); bg_sound.load("res/bg.mp3"); bg_sound.play(0,0);这么写的话,声音不能播放,于是我想是不是声音没有加载完,所以又这么写了: var bg_sound:Laya.Sound =new ...
来源: Laya_社区 发布时间: 20160805
音频节点(SoundNode)1. LayaAir IDE中使用音频节点1.1 创建SoundNode1.2 属性介绍1.3 脚本控制SoundNode2.代码创建SoundNode音频节点(SoundNode) 1. LayaAir IDE中使用音频节点 1.1 创建SoundNode 如图1-1所示,可以在层级窗口中右键进行创建,也可以从小...
来源: Laya3.0_文档 发布时间: 20251010
...部这个代码呢 smile • 2018-05-31 11:49 @Laya_Aaron:我只是t调用SoundMannager.playMusic(); Laya_Aaron • 2018-05-31 11:59 @smile:网络上,传buffer啊。 smile • 2018-05-31 12:06 @Laya_Aaron:大神咋传呀,请教下,那个不是写在底层的类吗 Laya_Aaron • 2018-05-31 16:...
来源: Laya_社区 发布时间: 20180531
...a.Loader.IMAGE } , { url: "video/mp3/SB02_SFX_BG01.mp3", type: Laya.Loader.SOUND } , { url: "video/mp3/SB02_SFX_BG02.mp3", type: Laya.Loader.SOUND } , { url: "video/mp3/SB02_SFX_BG03.mp3", type: Laya.Loader.SOUND } , { url: "video/mp3/SB02_SFX_BG04.mp3", type: Laya.Loader.SOUND } , { url: "video/mp3...
来源: Laya_社区 发布时间: 20171217
Sound类如何中断加载声音? 点击按钮btnA通过Sound的load方法加载声音soundA,点击按钮btnB通过Sound的load方法加载声音soundB。假如点击btnB的时候,soundA还没有加载完毕,如何中断soundA的加载。因为不中断的话就会导致soundB加载完后...
来源: Laya_社区 发布时间: 20160616
...t():void { var assetArr:Array=[ {url:"res/sound/music_gameplay.mp3", type:Loader.SOUND}, {url:"res/sound/button.mp3", type:Loader.SOUND}, {url:"res/sound/mob_true.mp3", type:Loader.SOUND}, {url:"res/sound...
来源: Laya_社区 发布时间: 20181112
...c/Protected All Inherited Externals Only exported Menu Globals "laya/media/Sound" Sound Class Sound Sound 类是用来播放控制声音的类。 引擎默认有两套声音方案,优先使用WebAudio播放声音,如果WebAudio不可用,则用H5Audio播放,H5Audio在部分机器上有兼容...
来源: Laya3.0_api 发布时间: 20231115
Sound.dispose()方法无效,音频资源卸载问题 如何卸载音乐类资源,如背景音乐,MP3格式,使用Sound类播放,但是Sound.dispose卸载方法无效,查看底层代码,dispose方法是空的。 2017-10-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20171022
...频吗? //避免切换页面的时候fp掉到2帧 protected var channel:SoundChannel; protected var sound:Sound; protected function wakeUp():void { /*强迫至少保持8FPS sound = new Sound(new URLRequest("")); sound.play(); sound.close(); */ //*/强迫保持原本设定的FPS try { sound = new S...
来源: Laya_社区 发布时间: 20180627