The ACMDM_FORMATTAG_DETAILS message requests an ACM driver to return information about a format tag.
Flag |
Meaning |
ACM_FORMATTAGDETAILSF_ |
Indicates the dwFormatTagIndex member of the ACMFORMATTAGDETAILS structure contains a format tag index. The valid index range is from zero to one less than the cFormatTags member returned in the driver’s ACMDRIVERDETAILS structure. (See ACMDM_DRIVER_DETAILS.) The driver should return details for the format tag associated with the index. |
ACM_FORMATTAGDETAILSF_ |
Indicates the dwFormatTag member of the ACMFORMATTAGDETAILS structure contains a format tag. The driver should return details for the specified format tag. |
ACM_FORMATTAGDETAILSF_ |
Indicates the driver should return details for the format tag having the largest format. The dwFormatTag member of ACMFORMATTAGDETAILS can contain a format tag or WAVE_FORMAT_UNKNOWN. |
The driver should return MMSYSERR_NOERROR if the operation succeeds. Otherwise it should return one of the MMSYSERR error codes defined in mmsystem.h, or one of the ACMERR error codes defined in msacm.h. Possible error codes include:
Error Code |
Meaning |
MMSYSERR_NOTSUPPORTED |
The driver does not support the specified query operation. |
ACMERR_NOTPOSSIBLE |
The input parameter values do not represent a valid format or format tag. |
A client sends the ACMDM_FORMATTAG_DETAILS message by calling the driver’s DriverProc entry point, passing the specified parameters. The ACM sends this message when an application calls the acmFormatTagDetails function, which is described the Win32 SDK.
All ACM drivers must support this message.
The client specifies the format tag in the ACMFORMATTAGDETAILS structure’s dwFormatTag member. The driver returns information for a particular tag, as follows:
Before calling the driver’s DriverProc function, the ACM verifies that:
If the format tag is WAVE_FORMAT_PCM, then the driver should return a zero-length string in szFormatTag. The ACM provides a description string for this format.
Before returning, the driver must set the ACMFORMATTAGDETAILS structure’s cbStruct member to the actual number of bytes returned. The value returned in cbStruct must not be greater than the value received.
For more information about format tags, see Format Tags and Filter Tags.