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("Data/Die.wav", NULL, SND_SYNC); // Play The Death Sound
使用しSND_ASYNCないSND_SYNC
SND_ASYNC
SND_SYNC