PDA

View Full Version : Sound Card Detection or Something


gab
02-01-2006, 01:20 PM
There was a way to detect if the user have sound card or if when I start to play a sound detect if it's currently playing or not?.
I'm doing a multimedia presentation, but I want before start play, detect if the loudspeaker are turned on. Is this possible or another solution for alert the user that will have sound...

Corey
02-01-2006, 02:31 PM
The only way I know of that would be 100% reliable is to poll the user, i.e. "Application will now do a sound test, if you can hear the music, please click GO." Other than that it seems to me there's too many anomalies which could occur to ever be 100% sure what's going on. For example what if they have all their sound hardware working but the user has headphones plugged in which they aren't wearing at that moment? In this case all detection scripts would indicate that sound is working even though the user can't hear anything.

gab
02-01-2006, 02:39 PM
Ok thank u that's what I'll do
;)

Corey
02-01-2006, 03:25 PM
Cheers. :yes