Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I was searching now for quite a while, I need to write a program which can read out all the sound devices and adjust the system volume for windows 7 and XP.

I first used a project I found here but it will not work with windows 7. So my question is, is there a way to make an application that works crossover both platforms (windows 7 and XP) to read out sound devices and adjust volume?

Your help is appreciated.

Edit:

I just listed the devices in a listbox.

By not working on Windows 7 i mean that the application didnt even start under Windows 7 and i also read that some applications only change their own volume now, i need an application that changes the master volume.

Some links i used tried:
http://www.codeguru.com/csharp/csharp/cs_graphics/sound/article.php/c10931[^]
http://rongchaua.net/blog/c-adjust-master-volume-in-vista-and-windows-7/[^] (This link wont work on xp)

I used some more but i cant find them right now. Thanks for your Answer


Nikolas
Posted
Updated 1-Apr-11 20:32pm
v4
Comments
Henry Minute 31-Mar-11 18:54pm    
When you say read out do you mean audibly as in speak the names of the devices, or simply list them.

It would also help if you mentioned which article you tried, so that we don't suggest the same one.

Aaaand it would be nice to know what exactly "it will not work with windows 7" actually means.
KeySam 1-Apr-11 3:32am    
Sry i posted this shortly before i stopped working ok here we go:
Changed the Question.
DaveAuld 2-Apr-11 2:33am    
EDIT: convert links to clickable

1 solution

You could try this[^] - uses API calls so could work in both operating systems.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900