Sound Card Name

Windows specific forum
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Sound Card Name

Post by nco2k »

does anyone know how to get the name of the default sound card?

- i dont want to use directx or wmi.
- it looks like it can be done with the IMMDeviceEnumerator, but it requires vista or later.
- waveOutGetDevCaps only returns the speaker/output name and is insanly outdated.

am i missing something obvious here? im totally running out of ideas. :?

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Sound Card Name

Post by IdeasVacuum »

IMMDeviceEnumerator, see the code from ts-soft: http://www.purebasic.fr/german/viewtopi ... =6&t=27758
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
DontTalkToMe
Enthusiast
Enthusiast
Posts: 334
Joined: Mon Feb 04, 2013 5:28 pm

Re: Sound Card Name

Post by DontTalkToMe »

nco2k wrote: - it looks like it can be done with the IMMDeviceEnumerator, but it requires vista or later.
IdeasVacuum wrote:IMMDeviceEnumerator, see the code from ts-soft: http://www.purebasic.fr/german/viewtopi ... =6&t=27758
lol, someone missed something I believe :lol:
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Re: Sound Card Name

Post by nco2k »

DontTalkToMe wrote:
nco2k wrote: - it looks like it can be done with the IMMDeviceEnumerator, but it requires vista or later.
IdeasVacuum wrote:IMMDeviceEnumerator, see the code from ts-soft: http://www.purebasic.fr/german/viewtopi ... =6&t=27758
lol, someone missed something I believe :lol:
yes :D i was hoping to find a simple way, which will also work for xp, but i couldnt find anything satisfying so far. for the time being, i will stick with the vista+ version and hope microsoft doesnt change it for a very long time. :?

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
Post Reply