Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将我制作的声音效果放入我的游戏中。我有一种走路的声音,我想在用户走路时循环播放,一旦用户停止走路,我希望声音停止。我浏览了有关使用 XACT 的 DirectX 教程,但它没有回答我的问题。在我的代码中,我尝试使用播放功能,当它们不移动时,我停止行走声音。发生的情况是,即使我停止移动,它也只会播放整个声音片段。
你在用XACT_FLAG_STOP_IMMEDIATE国旗吗?
XACT_FLAG_STOP_IMMEDIATE