请问有没有播放音效和BGM的例子 #67
Closed
samoyedsun
started this conversation in
General
Replies: 3 comments 5 replies
-
|
目前没有实现声音有关的部分。但我觉得可以额外找一个库封装一下独立用。看起来不会和已经实现的特性冲突。 比如 封装 fmod 不会太复杂 https://github.com/ejoy/ant/tree/master/pkg/ant.audio/src 但不清楚 fmod 有没有 wasm 版本。 |
Beta Was this translation helpful? Give feedback.
5 replies
-
|
有没有考察过 sokol_audio ( 支持 WebAudio with ScriptProcessorNode ) ? 这样就不需要额外增加依赖。 我现在没有增加 bindings 是因为新游戏项目还没有准备好,而之前的 deepfuture 没有增加声音的计划。等下个游戏需要播放声音的时候,我会加入。 ps. 可能还需要增加可选的 ogg 支持,用来压缩音频流。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
#85 已经开工了,讨论可在这个 pr 下继续。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
需要H5也支持的
Beta Was this translation helpful? Give feedback.
All reactions