To adjust the volume of a playback, the Volume-property of the ISoundOut interface has to be adjusted. The volume is expressed as a float value in the range from 0.0 to 1.0.

public void SetVolumeOfAnISoundOutInterface(ISoundOut soundOut, float newVolume)
    soundOut.Volume = newVolume;
    Debug.WriteLine("Adjusted the volume to {0:P}.", newVolume);

Last edited Apr 21, 2014 at 9:37 PM by filoe, version 3


No comments yet.