如采样的频率是8000,单声道, 压缩比是8 BIT LAW设怎么设置?

解决方案 »

  1.   

    MCI_SETAUDIO
    The MCI_SETAUDIO command sets values associated with audio playback and capture. Digital-video and VCR devices recognize this command. MCIERROR mciSendCommand(MCIDEVICEID wDeviceID, MCI_SETAUDIO, 
        DWORD dwFlags, (DWORD) (LPMCI_GENERIC_PARMS) lpSetAudio);
     
    Parameters
    wDeviceID 
    Device identifier of the MCI device that is to receive the command message. 
    dwFlags 
    MCI_NOTIFY, MCI_WAIT, or MCI_TEST. For information about these flags, see The Wait, Notify, and Test Flags. 
    lpSetAudio 
    Address of an MCI_GENERIC_PARMS structure. (Devices with extended command sets might replace this structure with a device-specific structure.) 
    Return Values
    Returns zero if successful or an error otherwise.