## MMPM/2 Device Driver Reference

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

### VSD_QUERYMIXLINE - Example Code

The following code illustrates how to query the supported audio attributes from a mixer connector.

    HVSD               hvsd;

    MIXERLINEINFO      mixerinfo;

      mixerinfo.ulLine = SYNTHESIZER_INPUT;

      mixerinfo.ulLength = sizeof(MIXERLINEINFO);

          rc = pInstance->pfnAUDIOIF( hsvd,

                                      VSD_QUERY,

                                      VSD_QUERYMIXLINE,

                                      (PVOID) &mixerinfo);

       if(!rc)

          if(mixerinfo.ulSupport & MIX_VOLUME)

              {

              /* process volume */

              }

            }  /* If no errors */