大约有 36 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
为什么SoundChannel需要实例,而SoundManage不需要要,小白求问 同样是 import 进来的 import soundManager = Laya.SoundManager; import soundChannel = Laya.SoundChannel; soundManager 就可以直接调用 SoundManager类的方法, 而 soundChannel 却不行,需要实例。 ...
来源: Laya_社区 发布时间: 20180301
需要用SoundChannel的play()方法,报错说不存在play()方法? 附件 : --> 2017-11-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: zyz1208 如果要播放声音使用sound...
来源: Laya_社区 发布时间: 20171103
有没有SoundChannel的示例? SoundManager.playSound(_url, _loop, new Handler(this, _fn)); var channel:SoundChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (ch...
来源: Laya_社区 发布时间: 20170116
SoundChannel在页面失焦后自动丢失audioBuffer,以致没有声音 页面在焦点时:WebAudioSoundChannel {audioBuffer: AudioBuffer, gain: GainNode, bufferSource: AudioBufferSourceNode, _currentTime: 0, _volume: 1, …} audioBuffer:AudioBuffer {length: 7364022, duration: 1...
来源: Laya_社区 发布时间: 20171006
...otianhk SoundManager.playSound或者 SoundManager.playMusic会返回一个SoundChannel实例。你可以声明一个变量来接收它,然后通过SoundChannel来控制播放、停止、暂停。具体代码如下所示: var soundC:SoundChannel = SoundManager.playSound("url"); //播放 soundC.p...
来源: Laya_社区 发布时间: 20180312
...ndManager; private curBGMUrl: string; private bgmChannel: Laya.SoundChannel | null; private effectChannels: Map<string, Laya.SoundChannel>; private dialogueChannels: Map<string, Laya.SoundChannel>; private fadeIntervals: Map<Laya.SoundChannel, any>; ...
来源: Laya_社区 发布时间: 20250930
... 1 个回复 w1114367261 赞同来自: playSound声音播放会返回一个SoundChannel你可以根据这个对声音进行控制soundChannel.position是获取当前播放时间 .duration是总时间 2018-04-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...
来源: Laya_社区 发布时间: 20180412
...1, complete:Handler = null, soundClass:Class = null, startTime:Number = 0):SoundChannel { if ((!_isActive && loops != 0) || !url) return null; if (_muted) return null; _recoverWebAudio(); url = URL.formatURL(url); if (url == _tMusic) { if (_musicMuted) return null; } else { if (Render.isConc...
来源: Laya_社区 发布时间: 20190115
播放音效promise报错 播放音效 let channel:SoundChannel = SoundManager.playSound(url,1); let volume:number = data.volume?data.volume:1; channel.volume = volume; 每点一次按钮 就执行一次 url是相同的 会报错 这个该怎么解决 附件 : --> 2019-12-06 添加评论 ...
来源: Laya_社区 发布时间: 20191206
...代码改动的工作量大吗 调试matter.js的问题 iosapp获取到的soundChannel.position总是为0,导致不能继续播放 问题状态 最新活动: 2017-04-28 13:54 浏览: 1213 关注: 2 人
来源: Laya_社区 发布时间: 20170428