## MMPM/2 Device Driver Reference

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

### VSD_QUERYMIXCONNECTIONS - Example Code

The following code illustrates how to query the output that a particular line is routed to.

      HVSD              hvsd;

      LINECONNECTIONS   LineCon;

     /* Find out the setting for the synth. */

      LineCon.ulLine = SOURCE_SYNTHESIZER;

      LineCon.ulLength = sizeof(MIXERLINEINFO);

     /* Ask VSD for the capabilities of this line. */

      rc = pInstance->(hvsd,

                       VSD_QUERY,

                       VSD_QUERYMIXCONNECTIONS,

                       (PVOID)&LineCon);

     /* Are we connected to the amp or record outputs... */

      if (LineCon.ulConnection & (SINK_SPEAKERS))

         {

         pMixParms->ulReturn = MCI_OUTPUT_AMP;

         }

      else

         {

         pMixParms->ulReturn = MCI_OUTPUT_DIGITALAUDIO;

         }