The waveOutSetVolume function sets the volume level of the specified waveform-audio output device.
In other words, the sound volume can be set to zero.
* * *
Also it can be done by calling the mciSendString API function. I will post some code shortly.... not that fast; it may not work this way.
* * *
Next option -- mixerSetControlDetails API function