The following code illustrates how to enable microphone input on an audio device.

   USHORT                  usAmpDeviceID;
   MCI_CONNECTOR_PARMS     connectorparms;

   connectorparms.ulConnectorType = MCI_MICROPHONE_CONNECTOR;

                                         /* Enable microphone input on */
                                         /* the audio device           */

   mciSendCommand (usAmpDeviceID,        /* Amp/mixer device ID        */
    MCI_CONNECTOR,                       /* CONNECTOR message          */
    MCI_ENABLE_CONNECTOR | MCI_CONNECTOR_TYPE | MCI _WAIT,
                                         /* Flags for this message     */
    (PVOID) &connectorparms,             /* Data structure             */
    0 );                                 /* No user parm               */


[Back] [Next]