How to detect a song is being played using C#

  • Thread starter Thread starter Vinay
  • Start date Start date
V

Vinay

Hi,
I want to verify if a particular song is being played
from my program. I have read a lot of examples of using
winmm.dll and importing PlaySound(). If there anyway to
check if a song is being played using sound card?

TIA,
Vinay
 
-----Original Message-----
Hi,
I want to verify if a particular song is being played
from my program. I have read a lot of examples of using
winmm.dll and importing PlaySound(). If there anyway to
check if a song is being played using sound card?

TIA,
Vinay
.
It is urgent. Can anyone help?
 
Vinay,

I don't think that this is possible. You can probably interface with
the sound card to see if some sort of sound is playing, but what it is,
well, that depends on a number of factors. You would have to find the
program producing the sound and then hope there is an interface telling you
^what^ exactly is playing.

You might be able to get somewhere using the DirectX libraries, but I
wouldn't bet on it.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top