How to Check whether a sound card exists?

Ac82c492888a012ab15afb8c7b4e3d4e
0
sac123 101 Jan 11, 2007 at 10:08

Hello,

I want to check whether system has sound card installed or not, and this i want to check in my website. So this whole process will run in background completely ünknown to user. As soon as they connect to our website this control will secretly check as the rest of the site loads. If the result of the control returns a results that they have speakers and the volume is turned on then it will trigger a sound.
This is for web based applicatiojn.

Please help me how do i check this? in any language asp, php, asp.net, java etc..

Thanks in advance.

Sachin

4 Replies

Please log in or register to post a reply.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 167 Jan 11, 2007 at 10:15

Sorry, but you can’t get details about the user’s hardware from a web application. Web apps aren’t allowed to access anything outside the browser itself, for security reasons. Why don’t you just play the sound? If the person doesn’t have speakers plugged in or the volume turned on they won’t hear it, but it won’t hurt them. Besides, every computer has a sound card nowadays (even if it’s just built into the motherboard).

Ac82c492888a012ab15afb8c7b4e3d4e
0
sac123 101 Jan 11, 2007 at 15:58

Thanks Reedbeta,
But i want to know how many users plays the game with sound and without sound.

Also if we play any song through internet, it detects first if sound card is installed, speaker is on etc… How they do this??

Thanks,

Sachin

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 167 Jan 11, 2007 at 19:13

The web browser or media player does that automatically when you try to play a sound. But that function isn’t accessible to any client side script, as browser scripts execute in a sandbox that isolates them from the user’s system.

E70f63aceb25fa57bee707b4edbef0c1
0
L1zb3th 101 Mar 22, 2007 at 21:10

well,in your app….
use sockets, first do a check then send the results to a server or a hosting if necesary …. (with a php or asp script for receive and do something with the info ..)
if you need help with that, just tell me …
Au Revoir !