Have a good look at the sample below:

SetVolume - Set the master volume level