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.
NAudio WaveChannel32を使用して録音したサウンドを再生していますが、再生が終了したときにいくつかの行を自動的に印刷したいと思います。
したがって、XNA Update関数では、次のようになります。
if(*Replay has finished*) // Do Something else //Do some other things
想定されるif条件は何ですか?
ありがとう!
NAudio 出力デバイスはすべてPlaybackStoppedイベントを発生させます。これは、再生がいつ終了したかを判断する最良の方法です。
PlaybackStopped