ACMDRVFORMATSUGGEST

The ACMDRVFORMATSUGGEST structure contains client-specified input arguments to the acmFormatSuggest function. The ACM fills in this structure with the client' s input arguments and passes it to an ACM driver with an ACMDM_FORMAT_SUGGEST message.

Syntax

typedef struct { DWORD cbStruct; DWORD fdwSuggest; LPWAVEFORMATEX pwfxSrc; DWORD cbwfxSrc;
LPWAVEFORMATEX pwfxDst; DWORD cbwfxDst; } ACMDRVFORMATSUGGEST;

Members

cbStruct
Size, in bytes, of the ACMDRVFORMATSUGGEST structure.
fdwSuggest
Restriction flags that limit the possible destination formats. Can contain any combination of the following flags.
ACM_FORMATSUGGESTF_WFORMATTAG
The wFormatTag member of the WAVEFORMATEX structure pointed to by pwfxDst contains a format tag. The driver can only suggest a destination format that is associated with the specified format tag.
ACM_FORMATSUGGESTF_NCHANNELS
The nChannels member of the WAVEFORMATEX structure pointed to by pwfxDst contains a channel value. The driver can only suggest a destination format whose channel value matches the specified value.
ACM_FORMATSUGGESTF_NSAMPLESPERSEC
The nSamplesPerSec member of the WAVEFORMATEX structure pointed to by pwfxDst contains a sample rate. The driver can only suggest a destination format whose sample rate matches the specified rate.
ACM_FORMATSUGGESTF_WBITSPERSAMPLE
The nBitsPerSample member of the WAVEFORMATEX structure pointed to by pwfxDst contains a sample size. The driver can only suggest a destination format whose sample size matches the specified size.
pwfxSrc
Pointer to a WAVEFORMATEX structure describing the source format.
cbwfxSrc
Size, in bytes, of the WAVEFORMATEX structure pointed to by pwfxSrc.
pwfxDst
Pointer to a WAVEFORMATEX structure to receive the suggested destination format description. If flags in the fdwSuggest member are set, corresponding members of this structure contain client-specified values. The driver should fill in all empty structure members.
cbwfxDst
Size, in bytes, of the WAVEFORMATEX structure pointed to by pwfxDst. The driver cannot return an extended WAVEFORMATEX structure that is larger than this size.

Remarks

The WAVEFORMATEX structures specified for source or destination formats might be extended structures defined for particular formats. (For example, see IMAADPCMWAVEFORMAT in the file mmreg.h.) Check the structure's wFormatTag member to determine the format type and hence the specific structure being passed.

This structure is declared in the header file Msacmdrv.h

For more information about format structures, see Defining Format Structures and Filter Structures in the Windows NT DDK.