Retrieves the current channel map.
HRESULT GetChannelMap( LPXACTCHANNELMAP pChannelMap, DWORD BufferSize, LPDWORD pRequiredSize );
Returns S_OK if successful, an error code otherwise.
This function must be called twice, first to determine the size of the buffer required to receive the channel map, and then to retrieve the channel map.
Allocate a memory block of the size (in bytes) returned in pRequiredSize.
It is not valid to call GetChannelMap with BufferSize set to a nonzero value that is smaller than the size returned in pRequiredSize.
The following example shows correct procedure for using GetChannelMap.
// Query how much memory is needed for the channel map DWORD dwChannelMapBufferSize; pCue->GetChannelMap( NULL, 0, &dwChannelMapBufferSize ); // Now allocate the memory with our version of malloc() LPXACTCHANNELMAP pChannelMap = (LPXACTCHANNELMAP) MyMalloc (dwChannelMapBufferSize) ; // Retrieve the channel map for the cue pCue->GetChannelMap( pChannelMap, dwChannelMapBufferSize, NULL );
Header: Declared in Xact.h.