Jump to content


How to Check whether a sound card exists?


4 replies to this topic

#1 sac123

    New Member

  • Members
  • Pip
  • 2 posts

Posted 11 January 2007 - 10:08 AM

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

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 5309 posts
  • LocationSanta Clara, CA

Posted 11 January 2007 - 10:15 AM

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).
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 sac123

    New Member

  • Members
  • Pip
  • 2 posts

Posted 11 January 2007 - 03:58 PM

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

#4 Reedbeta

    DevMaster Staff

  • Administrators
  • 5309 posts
  • LocationSanta Clara, CA

Posted 11 January 2007 - 07:13 PM

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.
reedbeta.com - developer blog, OpenGL demos, and other projects

#5 L1zb3th

    New Member

  • Members
  • PipPip
  • 10 posts

Posted 22 March 2007 - 09:10 PM

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 !





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users