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

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

1. 关于声音(TypeScript-LayaNative原生服务-LayaNative基础文档) [ 100%]

...使用22050采样率、16bit、单声道。 ## 3.提示信息 如果调用`SoundManager.playSound()`,但是传入的文件格式是mp3,则会弹出提示信息,提示信息如下: `The sound only supports wav or ogg format,for optimal performance reason,please refer to the official website d...

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

2. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 31%]

...connect the AudioBufferSourceNode to the // destination so we can hear the sound source.connect(audioCtx.destination); // start the source playing source.start(); } ``` ​ 运行上面的js代码,单击页面就会听到声音播放出来了。那么用LayaAir怎么写呢? ```java package { imp...

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