capSetAudioFormat

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

BOOL capSetAudioFormat(
  hwnd,           
  psAudioFormat,  
  wSize           
);

Parameters

hwnd

Handle to a capture window.

wSize

Size, in bytes, of the structure referenced by s.

psAudioFormat

Pointer to a WAVEFORMATEX or PCMWAVEFORMAT structure that defines the audio format.

Return Values

Returns TRUE if successful or FALSE otherwise.

Requirements

**  Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Vfw.h.

See Also

Video Capture, Video Capture Macros, PCMWAVEFORMAT, WAVEFORMATEX, WM_CAP_SET_AUDIOFORMAT