## MMPM/2 Device Driver Reference

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

### VSD_SETMIXCONTROL - Syntax

This subcommand of the VSD_SET command enables an application to set the current state of a particular line. For further information about VSD mixer support and functions, see Audio Sample for Vendor-Specific Drivers and Mixer IOCtl Functions Introduction

This command is sent using VSDEntry as follows:

        VSDEntry(hvsd, ulFunc, ulFlags, pRequest)

hvsd (HVSD) Handle to a VSD.

ulFunc (ULONG) Set to VSD_SET.

ulFlags (ULONG) Set to VSD_SETMIXCONTROL.

pRequest (PMIXERCONTROL) A pointer to the MIXERCONTROL structure.

The ulControl field of the MIXERCONTROL structure must be filled in with the desired setting. For stereo controls, the high-order word of this field contains the left channel setting and the low-order word contains the right channel setting. A value of 0xFFFF represents full intensity and a value of 0x0000 is full cutout. The ulLine field must also be filled in.

rc (ULONG) Error code indicating success or the type of failure:

VSDERR_MISSING_PARAMETER One or more parameters are missing.

VSDERR_INVALID_SOURCE Invalid source.

VSDERR_INVALID_SINK Invalid sink.

VSDERR_INVALID_CONNECTION Invalid connection.