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 更新函数中,它就像:
if(*Replay has finished*) // Do Something else //Do some other things
if 条件应该是什么?
谢谢!
NAudio 输出设备都会引发PlaybackStopped事件,这是确定回放何时结束的最佳方式。
PlaybackStopped