This is an example of how to use the SysSoundSetState function along with the SoundSetStateType structure.