View Full Version : Detection of Sound Installation
tkroeckel
03-09-2006, 02:04 AM
Hello,
I'm searching for a reliable way to detect if a target-system has a correct installed and enabled soundcard.
My setup requires this information at startup, otherwise I have to inform the user that installation will not work properly afterwards.
Any help is appreciated,
thx in advance
Thomas
Corey
03-09-2006, 02:18 AM
Here's the thing. Just because a sound device is installed won't necessarily indicate that the user can hear your application. I would do one of those quick sound tests which just plays a sound and asks them to click one of two buttons, "Yes I heard the sound" or "No I didn't hear anything". That's the only way to know 100% for sure if the user can hear your app. My two cents. :yes
tkroeckel
03-09-2006, 10:19 AM
Hi Corey,
a very "reliable" and extremly save way.
Thanks a lot
Should tell you if they have a soundcard or not, but it can't tell you if they have speakers :)
nReturn = DLL.CallFunction(_SystemFolder.."\\winmm.dll", "waveOutGetNumDevs", "", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
if nReturn == 0 then
--no soundcard
end
I don't want to take over this thread or anything, but I have been looking for a way to detect the names of the installed audio devices. Worm, maybe you can help me using that winmm.dll?
Thanks.
Tek, see this thread :yes
http://www.indigorose.com/forums/showthread.php?p=77494#post77494
Superb!
Thank you very much! :yes :yes
Oh one thing. Is there a way with this DLL to detect the current default Windows device (as per the Control Panel)?
.:AMS NUB:.
06-17-2010, 07:44 AM
Double Thank You, just solved 2 of my issues at once.
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.