Microsoft DirectX 8.0 (C++) |
Sets the performance channels that this segment uses. This method is usually called by a track in the IDirectMusicTrack8::Init method to inform the segment of which channels the track uses.
HRESULT SetPChannelsUsed( DWORD dwNumPChannels, DWORD* paPChannels );
If the method succeeds, the return value is S_OK.
If it fails, the method can return one of the following error values:
E_INVALIDARG |
E_OUTOFMEMORY |
E_POINTER |
This method allows the performance to know which ports are being used by the segment so that it can determine the actual latency, rather than providing for the worst case.
Header: Declared in dmusici.h.