PDA

View Full Version : Determine if there is sound coming from soundcard?



honnt
June 13th, 2005, 02:45 PM
Anyone know of a way (lua-way, if possible) to determine if there is currently sound being output on a particular sound device?

Promixis
June 13th, 2005, 02:50 PM
it should be possible.

search google for an active control that does this and we could tie it in to lua ...

honnt
June 14th, 2005, 06:44 PM
I'm surprised...I'm not finding much out there in the way of an ActiveX control that reliably detects sound output. I'll build one myself if I can make the time to figure out what API I should use.

Anyone know of something like that out there so I don't have to run the risk of hurtin' this ol' head??

Thanks!

Treetop
June 15th, 2005, 02:28 AM
Determine if there is sound coming from soundcard?
Just out of curiousity... why? My ears are my judge..........

I can't help with the solution, moreless figure out the problem.

You mention Lua and ActiveX, but I still can't figure out what you are trying to do. Im guessing that
a) its over my head.
b) its over my head
c) zoned audio over multiple soundcards
d) its over my head

What am I missing here...

e) ?

honnt
June 15th, 2005, 07:50 AM
Determine if there is sound coming from soundcard?
Just out of curiousity... why? My ears are my judge..........

I can't help with the solution, moreless figure out the problem.

You mention Lua and ActiveX, but I still can't figure out what you are trying to do. Im guessing that
a) its over my head.
b) its over my head
c) zoned audio over multiple soundcards
d) its over my head

What am I missing here...

e) ?

I want to be able to query if there's actual output because, although I can tell what state JRMC is in (playing, paused, stopped, etc.), I want to know if something else is putting out sound....(XPMCE, streaming web in an IE window, etc.)

Make sense?

Treetop
June 18th, 2005, 04:38 PM
Maybe look at the DirectX SDK (http://msdn.microsoft.com/library/default.asp?url=/downloads/list/directx.asp)... Lots of goodies in there...

As to, how? ... not a clue, as I couldn't program myself a "Hello World" message :oops: :roll: :cry:

As to the ActiveX controls, that Mike mentioned, did you come across anything? I was unable to find any info. on how to use this for your situation.

Good Luck,
Treetop