## MMPM/2 Device Driver Reference

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

### MIX_SETCONTROL (64h) - Example Code

The following code illustrates how to use MIX_GETCONNECTIONS.

       HMIXER   hMix;

       MIXERCONTROL        MixerControl;

       /* Set the volume for the output device */

       MixerControl.ulControl = MIX__VOLUME;

       MixerControl.ulLine = SINK_LINE_OUT;

       MixerControl.ulSetting = 100;

         rc = DosDevIOCtl( hMix,

                         AUDIO_IOCTL_CATEGORY,

                         MIX_SETCONTROL,

                         0,

                         0,

                         0,

                         sizeof (MIXERCONTROL),

                         &MixerControl,

                         &ulDataLengthOut);