How to temporarily disable Sound Card/Driver

Reply

Join Date: Jul 2006
Posts: 11
Reputation: cyman73 is an unknown quantity at this point 
Solved Threads: 0
cyman73 cyman73 is offline Offline
Newbie Poster

How to temporarily disable Sound Card/Driver

 
0
  #1
Jul 24th, 2006
Hello all,

How can the sound card be Enabled/Disabled with Vb Code? Is this possible through API call? or maybe registry edit?

My app. needs to disable sound card while running then enable afterward. This app will be running on a dedicated system.

Using "black box" object. The object's method (for which I don't have source code) uses .wav file play that can overwhelm the sound card to the point of BSOD. After manually disabling my sound device the BSOD events dissapeared. Mute does not work, BSOD still occurs.

Any help is greatly appreciated.

Thank you.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: How to temporarily disable Sound Card/Driver

 
0
  #2
Jul 24th, 2006
After some pretty hard-core searching, I've settled on the fact that you simply can't by yourself. I've looked into API's, WMI, and using Sendkeys to the device manager window itself :eek: (which works, btw, but it's really tacky, and certainly not something I'm going to suggest). After all is said and done, it looks like there is a utility called "devcon" from microsoft, that can be used to do what you want (http://support.microsoft.com/?kbid=311272). I'm quite a bit disappointed that I can't find a VB solution to this, or even a solution in another language that I could port to VB. Everything seems to rely on this tool...... good luck.
Last edited by Comatose; Jul 24th, 2006 at 11:08 am.
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 11
Reputation: cyman73 is an unknown quantity at this point 
Solved Threads: 0
cyman73 cyman73 is offline Offline
Newbie Poster

Re: How to temporarily disable Sound Card/Driver

 
0
  #3
Jul 24th, 2006
Thank you very much for your help. I tried the link, but it does not work.
Last edited by cyman73; Jul 24th, 2006 at 8:21 am.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: How to temporarily disable Sound Card/Driver

 
0
  #4
Jul 24th, 2006
Sorry about that, vBulletin assumed the trailing ) as part of the URL, but it's not: http://support.microsoft.com/?kbid=311272
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC