AutoHotkey Community

It is currently May 25th, 2012, 8:50 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: November 8th, 2007, 2:54 pm 
Offline

Joined: April 28th, 2004, 1:12 pm
Posts: 349
Hello,

I thought this would be easy to get but it seems more complicated that I thought. I am trying to get the name of the default audio device (as it appears in "sound/audio devices" in the controil panel)

e.g. "Realtek AC97 audio device" or "Creative Sound Blaster"

There is the following registry key-

HKEY_CURRENT_USER\Software\Microsoft\Multimedia\Sound Mapper

that I have found which stores this information but this key doesn't seem to appear on all PC's and one PC I tried didn't display the default device in this key.

Another way i found was to call an API (possible directX). I will see if I can find a link to it when I get home. Something about enumeration audio devices and the fist one returned is the default. It is a bit over my head though.

There must be an easier way to get this information?

Thanks, Jonathan


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 8th, 2007, 8:03 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
what do you need the info for?

I just checked SoundGet, but it doesn't appear to provide this.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 8th, 2007, 8:17 pm 
Offline

Joined: April 17th, 2007, 1:37 pm
Posts: 761
Location: Florida
engunneer wrote:
what do you need the info for?


I'm not sure what he has in mind, but I've been kicking around the idea (haven't had time to try anything yet) of writing an app that will detect when my laptop's HDMI port is in use and swap the default output device to the digital channel HDMI uses. I currently have to manually do it, and it is a pain...

_________________
[Join IRC!]
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 8th, 2007, 10:42 pm 
Offline

Joined: April 28th, 2004, 1:12 pm
Posts: 349
engunneer wrote:
what do you need the info for?

I just checked SoundGet, but it doesn't appear to provide this.


It's a long story :)

I am currently working in a primary school where we use some software called "Digital Blue Movie Creator". This software asks which sound card you want to use for recording at startup and then stores the sound card in the users local registry (HKCU). It only asks this once (although I'd prefer if it din't need to ask it at all)

The problem is when they move to a PC which has a different sound card. The sound will not work at all unless you run the audio setup wizard to change the sound card used.

I'd like to bypass the audio setup wizard and store the default sound card in the users registry (in the registry settings area for the digital blue software) when they logon to a PC or when they launch the software.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google Feedfetcher, krajan, MilesAhead, Rathgar2, rbrtryn, vsub and 4 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group