## MMPM/2 Device Driver Reference

[prev][next][parent][TOC]

### VSD_SETVOLUME - Example Code

The following code illustrates how to set the volume on an audio VSD.

    VSD_VOLUME_PARMS   vsdVol;

       vsdVol.ulVolume = pInstance->ulVolume;

       vsdVol.ulMasterAudio  = pInstance->ulMasterVolume;

       vsdVol.fMute = pInstance->fMute;

       vsdVol.ulVectoredVolume  = pInstance->ulTime;

       vsdVol.ulFlags  = VSD_VOLUME | VSD_MASTERVOLUME;

       lError = prInstance->pfnAUDIOIF((HVSD)prInstance->pMix->hvsd

                               VSD_SET,

                               VSD_SETVOLUME,

                               (PVOID)&vsdVol);