acmStreamConvertCallback

The acmStreamConvertCallback function specifies an application-provided callback function to be used when the acmStreamOpen function specifies the CALLBACK_FUNCTION flag. The acmStreamConvertCallback name is a placeholder for an application-defined function name.

void CALLBACK acmStreamConvertCallback(
  HACMSTREAM has,    
  UINT uMsg,         
  DWORD dwInstance,  
  LPARAM lParam1,    
  LPARAM lParam2     
);
 

Parameters

has
Handle of the ACM conversion stream associated with the callback function.
uMsg
ACM conversion stream message. The following values are defined:
MM_ACM_CLOSE
ACM has successfully closed the conversion stream identified by has. The handle specified by has is no longer valid after receiving this message.
MM_ACM_DONE
ACM has successfully converted the buffer identified by lParam1 (which is a pointer to the ACMSTREAMHEADER structure) for the stream handle identified by has.
MM_ACM_OPEN
ACM has successfully opened the conversion stream identified by has.
dwInstance
User-instance data given as the dwInstance parameter of the acmStreamOpen function.
lParam1 and lParam2
Message parameters.

Return Values

This function does not return a value.

Remarks

The following functions should not be called from within the callback function: acmDriverAdd, acmDriverRemove, and acmDriverPriority.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Import Library: User-defined.

See Also

Audio Compression Manager Overview, Audio Compression Functions, acmStreamOpen, ACMSTREAMHEADER, acmDriverAdd, acmDriverRemove, acmDriverPriority