在准确的时间停止播放声音 [英] stop playing sound at exact time
本文介绍了在准确的时间停止播放声音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如在00:00:02.87455
感谢您的回答.
解决方案
您的问题有点不清楚.
但是,如果您是想开发某种播放器,或者只是重复播放WAV声音,则可以使用计时器对象,该间隔就是您需要它停止的时间.
如:
计时器timer = new Timer();
timer.Interval = 2;
间隔以毫秒为单位.
hi
when i playing sound how can i stop sound exact time.
for example at 00:00:02.87455
thanks for your answer .
解决方案
Hi,
your question is a bit unclear.
but if you mean that your developing some kind of player or just playing a WAV sound on repeat then you could use timer object, which interval will be the time u need it to stop.
as :
Timer timer = new Timer();
timer.Interval = 2;
the interval is measured by ms.
这篇关于在准确的时间停止播放声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文