Results 1 to 6 of 6

Thread: Discover SoundCard name

  1. #1

    Discover SoundCard name

    OS: Windows Vista
    IDE: Delphi2009
    Libraries: Win32API

    Hi folks,

    I'm really stuck with this question: how to discover the soundcard name with Win32?
    I know that the DirectSound could easily do this but I cannot use it nor other 3th part libraries, my only option is Win32API.

    Any clues will be of great help.

    Thanks.
    http://delphigames.blogspot.com/

  2. #2

    Re: Discover SoundCard name

    You can use WMI. Read up on it on Wikipedia.

    And here's an example written in Delphi - http://www.planet-source-code.com/vb...=tp%2FG6282254

    Hope it helps.

  3. #3

    Re: Discover SoundCard name

    Why would you want to read out the sound card name? Just curious.
    http://3das.noeska.com - create adventure games without programming

  4. #4

    Re: Discover SoundCard name

    Quote Originally Posted by noeska
    Why would you want to read out the sound card name? Just curious.
    For use in a bug report tool I'm writting.
    The idea is to compose a report containing the call stack and the hardware components of the user computer. Almost all the other specs (video card, free memory, total physical memory, processor family and speed, etc...) I could get using some Win32API, but I could not discover nothing about the sound cards hardware.

    Quote Originally Posted by Brainer
    You can use WMI. Read up on it on Wikipedia.

    And here's an example written in Delphi - http://www.planet-source-code.com/vb...=tp%2FG6282254

    Hope it helps.
    I could not compile the source with Delphi2009 because the unit generated by importting the WMI Scripting Library is not compatible with the one used in the project, but even so, it is a really interesting lecture for me.

    By the way, I found an article here (http://www.prototypical.co.uk/pdf/ar...%20wmi%202.pdf) explaining how to use WMI with delphi. Tomorrow I'll try implement the functions and see where I could reach.

    Thanks a lot.
    http://delphigames.blogspot.com/

  5. #5
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    Re: Discover SoundCard name

    Have you considered using something that already exists?

    Like madExcept from http://www.madshi.net/. If it's non-commercial, you can use madExcept for free but you don't get the source. If you want the full freedom to use it for commercial products (and get the source), it's $99.

    It gives you lots of options including mailing the report (amongst others) and includes options to collect a list of installed hardware.

    I purchased a licence and it's been very useful.
    :: AthenaOfDelphi :: My Blog :: My Software ::

  6. #6

    Re: Discover SoundCard name

    Quote Originally Posted by AthenaOfDelphi
    Have you considered using something that already exists?
    Hmmm, well, I didn't knew that there where something like that for Delphi. I’ll give it a try, but I’m afraid it came too late for me since I’m almost finishing my tool( whith WMI, as Brainer suggested).
    Anyway, thanks a lot for the help.
    http://delphigames.blogspot.com/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •