开发者

How to detect silence on line-out/headphone using C#?

I have a scheduler that plays music from different sources. I'd like to write a small program to detect silence on line-out and sends an alert by e-mail. I'm using visual studio 200开发者_JAVA百科8 C#. Can someone give me directions on what audio library I can use or even show me some sample codes? (I can use C if there's a need to.)


This library might prove useful. My suggestion would be to use waveIn, and the analyze the samples you get.

You should configure your 'line in' so it is getting 'total mix' from the soundcard - most of the modern soundcards have that option.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜