Detection of Sound Installation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • tkroeckel
    Indigo Rose Customer
    • Sep 2004
    • 47

    Detection of Sound Installation

    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
    Indigo Rose Staff Alumni
    • Aug 2002
    • 9745

    #2
    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

    Comment

    • tkroeckel
      Indigo Rose Customer
      • Sep 2004
      • 47

      #3
      Hi Corey,
      a very "reliable" and extremly save way.
      Thanks a lot

      Comment

      • Worm
        Indigo Rose Customer
        • Jul 2002
        • 3971

        #4
        Should tell you if they have a soundcard or not, but it can't tell you if they have speakers

        Code:
        nReturn = DLL.CallFunction(_SystemFolder.."\\winmm.dll", "waveOutGetNumDevs", "", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
        if nReturn == 0 then
        	--no soundcard
        end

        Comment

        • Tek
          Forum Member
          • Mar 2004
          • 696

          #5
          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.

          Comment

          • Worm
            Indigo Rose Customer
            • Jul 2002
            • 3971

            #6
            Tek, see this thread :yes

            Comment

            • Tek
              Forum Member
              • Mar 2004
              • 696

              #7
              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)?

              Comment

              • .:AMS NUB:.
                Forum Member
                • Nov 2008
                • 39

                #8
                Double Thank You, just solved 2 of my issues at once.

                Comment

                Working...
                X