FMOD 播放重叠的声音
这可能是 FMOD 的内置功能,但我想看看是否可以覆盖它。
当使用 FMOD_System_PlaySound 播放声音时,
FMOD_System_PlaySound( system, FMOD_CHANNEL_FREE, SOUND, false, &channel ) ;
(是的,我使用 C api ;))
如果您已经开始播放声音,那么会发生的情况是原来的声音停止,声音重新开始。
效果是原始声音被“切断”。我不希望这样,我希望声音自身重叠...我希望声音的另一个“实例”开始播放,而不影响已经播放的原始声音。
This may be a build in feature of FMOD, but I'd like to see if i can override it.
When playing a SOUND with FMOD_System_PlaySound,
FMOD_System_PlaySound( system, FMOD_CHANNEL_FREE, SOUND, false, &channel ) ;
(YES I use the C api ;) )
If you've ALREADY started playing SOUND, then what happens is the original one is STOPPED and SOUND starts over again.
The effect is the original sound gets "cut off". I don't want that, I want SOUND to overlap itself... I want another "instance" of the sound to start playing without affecting the original sound that's already playing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
等等,没关系。
我已经使用 FMOD_CREATESTREAM 加载了声音,这就是为什么它不断重新启动声音的原因。
继续。
WAIT, NEVERMIND.
I had loaded the sound with FMOD_CREATESTREAM, which is why it kept starting the sound over again.
Carry on.