大约有 133 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0058 秒)
...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
...部这个代码呢 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
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
AudioSound/Sound/WebAudio的区别是什么? 我在看音效这部分的实现代码 我发现在代码中有 AudioSound/Sound/WebAudio 三个类 我想知道具体区别是什么? 在引擎实例中我看主要是用到Sound系的代码【Channel/Manager】之类的,并没有设计到两个A...
来源: Laya_社区 发布时间: 20161216
版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 在sound文件夹下音乐播放不了(居然找不到文件),放入到res文件夹下可播放 错误提示:Failed to load resource: net::ERR_FILE_NOT_FOUND [file:///F:/GitHub/TS_Laya/TS_M...
来源: Laya_社区 发布时间: 20190421