WM_CAP_SET_AUDIOFORMAT

The WM_CAP_SET_AUDIOFORMAT message sets the audio format to use when performing streaming or step capture. You can send this message explicitly or by using the capSetAudioFormat macro.

WM_CAP_SET_AUDIOFORMAT 
wParam = (WPARAM) (wSize); 
lParam = (LPARAM) (LPVOID) (LPWAVEFORMATEX) (psAudioFormat); 
 

Parameters

wSize
Size, in bytes, of the structure referenced by s.
psAudioFormat
Address of a WAVEFORMATEX or PCMWAVEFORMAT structure that defines the audio format.

Return Values

Returns TRUE if successful or FALSE otherwise.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in vfw.h.

See Also

Video Capture Overview, Video Capture Messages, capSetAudioFormat, PCMWAVEFORMAT, WAVEFORMATEX