Computer Hope

Microsoft => Microsoft Windows => Windows Vista and 7 => Topic started by: Lemonilla on June 29, 2012, 07:13:30 AM

Title: how does mmsys.clp work?
Post by: Lemonilla on June 29, 2012, 07:13:30 AM
So I was going to write a program that lowers the volume of music when it sensed incoming audio from skype, but then I learned that java doesn't do that. So I was wondering what does. Hate to sound uppity, but obviously some programming language does it, because mmsys.clp (windows sound control panel thingy) has an option for it.  what language are the .clp's written in? \ how does it do that?

Thanks for the help :D
Title: Re: how does mmsys.clp work?
Post by: BC_Programmer on June 29, 2012, 11:26:20 AM
mmsys.cpl is a control panel applet. It doesn't control anything...

The actual mixing is done at the kernel level. volumes aren't changed

http://blogs.msdn.com/larryosterman/archive/2005/06/13/428724.aspx

http://blogs.msdn.com/b/larryosterman/archive/2006/03/07/545451.aspx

http://blogs.msdn.com/b/larryosterman/archive/2005/06/14/428962.aspx
Title: Re: how does mmsys.clp work?
Post by: Lemonilla on June 29, 2012, 03:29:55 PM
So from the very little I understood of the articles, this is a hardware thing that can't really be altered by programs?
Title: Re: how does mmsys.clp work?
Post by: BC_Programmer on June 29, 2012, 03:35:01 PM
So from the very little I understood of the articles, this is a hardware thing that can't really be altered by programs?

It probably can, but you'll have to dig pretty deep into Windows APIs, callbacks, and other 'fun' stuff.