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

大约有 14 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0038 秒)

1. SoundManager.destroySound()销毁声音资源无效,请问声音回收机制是什么 [ 100%]

SoundManager.destroySound()销毁声音资源无效,请问声音回收机制是什么 项目中的背景音乐大概1分多种,在使用SoundManager.destroySound()进行销毁后,内存并无减少,请问声音要如何正确销毁,释放内存,这块的回收机制是什么样的,麻...

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

2. 音效问题destroySound [ 94%]

音效问题destroySound SoundManager.destroySoundSoundManager.removeChannel。这两个方法在音效播完调用的。然后把网上得音效去了还能播放到。只有重启游戏才会播放不到。请问还有什么方法能直接清除呢? autoReleaseSound默认是true,没改过 ...

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

3. laya.media.SoundManager_API3.0 [ 86%]

...autoStopMusic 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:9...

来源: Laya3.0_api 发布时间: 20231115

4. 背景音乐问题 [ 82%]

...){         Laya.SoundManager.stopAll() ;         Laya.SoundManager.destroySound(url) ;     } } 2017-04-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 williamjie 相关问题 发起问题须知,必看!!!不按提问...

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

5. laya.media.SoundManager [ 81%]

...:SoundChannel):void[static] 添加播放的声音实例。 SoundManager  destroySound(url:String):void[static] 释放声音资源。 SoundManager  playMusic(url:String, loops:int = 0, complete:Handler = null, startTime:Number = 0):SoundChannel[static] 播放背景音乐。背景音乐同时只...

来源: Laya2.0_api 发布时间: 20190513

6. laya.media.SoundManager [ 81%]

...:SoundChannel):void[static] 添加播放的声音实例。 SoundManager  destroySound(url:String):void[static] 释放声音资源。 SoundManager  playMusic(url:String, loops:int = 0, complete:Handler = null, startTime:Number = 0):SoundChannel[static] 播放背景音乐。背景音乐同时只...

来源: laya_api 发布时间: 20170929

7. 背景音乐播放内存后续问题 [ 68%]

...景音乐的时候,这样子调用 SoundManager.stopAll(); SoundManager.destroySound("res/sound/blade in my heart Short JUNkaraoke_M.mp3"); SoundManager.playMusic("res/sound/BGM01.m4a"); 但是内存也降不下去,两个背景音乐来回切换的话,会内存不断上涨 示例中点击左...

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

8. 项目中音乐资源释放问题 [ 68%]

..., null, Loader.SOUND)进行预加载 在退出项目时使用 SoundManager.destroysound("allResources/backmusic.mp3"); Laya.loader.clearRes("allResources/backmusic.mp3",true);释放资源   播放音乐使用的是Soundmanager.playmusic("allResources/backmusic.mp3")   如果项目里这个音乐...

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

9. Sound.dispose()方法无效,音频资源卸载问题 [ 67%]

... Monica • 2017-10-23 20:00 @sen3779494:它没有destroy属性,应该是destroySound()

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

10. 微信小游戏播放音效无法连续反复播放 [ 66%]

...游戏提示加载错误可以 先释放音频资源再加载 SoundManager.destroySound(url); SoundManager.playSound(url, 1); 2018-09-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 bq49 相关问题 关于微信小游戏关系链的...

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