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.
我正在编写游戏,在我的游戏中我有背景音乐,那条线看起来像这样。
PlaySound(TEXT("GameMusic.wav"), NULL, SND_LOOP | SND_ASYNC);
但有时当游戏中发生特殊的事情时,我希望发生声音效果。
PlaySound(TEXT("SoundFX.wav"), NULL, SND_ASYNC);
一旦音效开始,音乐就会停止播放,但我希望它们同时播放。音乐应该一直在播放。