Detecting Sound Card
-
Good morning/afternoon/night to everyone... Whereever you are. I'm developing an MFC app that will give the user audible feedback. The software needs to know whether to use the sound card (for .wav files) or use the PC speaker. The target platforms will be Win98/2000/NT/ME. Does anyone know how to reliably detect the presence of a sound card? Thanks. Mark Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope -- Daniel Burnham
-
Good morning/afternoon/night to everyone... Whereever you are. I'm developing an MFC app that will give the user audible feedback. The software needs to know whether to use the sound card (for .wav files) or use the PC speaker. The target platforms will be Win98/2000/NT/ME. Does anyone know how to reliably detect the presence of a sound card? Thanks. Mark Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope -- Daniel Burnham
What functions were you intended to use to play the wav, Windows Multimedia or DirectX? I think PlaySound returns FALSE if it can't play the wav file, you could then play a BEEP if it failed. Michael :-)
-
What functions were you intended to use to play the wav, Windows Multimedia or DirectX? I think PlaySound returns FALSE if it can't play the wav file, you could then play a BEEP if it failed. Michael :-)
I hadn't looked too deep into what function I would use. This "sounds" (ha ha) like a nice simple solution. Thanks. If any knows of any other methods, please let me know. Regards, Mark Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope -- Daniel Burnham
-
I hadn't looked too deep into what function I would use. This "sounds" (ha ha) like a nice simple solution. Thanks. If any knows of any other methods, please let me know. Regards, Mark Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope -- Daniel Burnham
You could use
**UINT waveOutGetNumDevs()**
to know if any wave device is installed and then call the appropriate function or use Michael P. Butler method. -
You could use
**UINT waveOutGetNumDevs()**
to know if any wave device is installed and then call the appropriate function or use Michael P. Butler method.I think this was more of what I was looking for. Thanks to all! Mark :-D Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope -- Daniel Burnham
-
What functions were you intended to use to play the wav, Windows Multimedia or DirectX? I think PlaySound returns FALSE if it can't play the wav file, you could then play a BEEP if it failed. Michael :-)
hi i think you have sound to clear my problem. i.e i want to disable my sound card. how do i do that? do u have any idea, reply me Thanks in advance regards Halid:confused: