Powerbasic Museum 2020-B

General Category => General Discussion => Topic started by: Gérôme Guillemin on November 25, 2009, 09:55:25 AM

Title: Muting?
Post by: Gérôme Guillemin on November 25, 2009, 09:55:25 AM
Hello !

Does anyone know of any way to programmatically mute the computer's speakers without affecting the level of incoming audio stream so that a recording process (like sndrec32) may proceed unaffected while the speakers are turned off without the use of Windows' built-in Volume Control?

Thanks for any reply !

Yours,
Gerome
Title: Re: Muting?
Post by: Patrice Terrier on November 25, 2009, 11:39:17 AM
http://msdn.microsoft.com/en-us/library/aa964574(VS.85).aspx

...
Title: Re: Muting?
Post by: Mike Lobanovsky on November 25, 2009, 12:06:55 PM
What a pity this solution seems to be platform-dependent (Vista and up only, I presume...)
Title: Re: Muting?
Post by: Patrice Terrier on November 25, 2009, 01:53:33 PM
On older system like XP and previous, you will have to use the MIXER API, or the DirectSound API.

...
Title: Re: Muting?
Post by: Mike Lobanovsky on November 25, 2009, 03:12:33 PM
Thanks Patrice,

This gives the general direction to some further thought.