Microsoft DirectX 8.0 (C++) |
Creates an object that represents the stages in data flow from the performance to DirectSound buffers. This method can be used instead of IDirectMusicPerformance8::CreateAudioPath to create a basic predefined audiopath rather than one defined in a source file.
HRESULT CreateStandardAudioPath( DWORD dwType, DWORD dwPChannelCount, BOOL fActivate, IDirectMusicAudioPath **ppNewPath );
For more information on these audiopath types, see Standard Audiopaths.
If the method succeeds, the return value is S_OK.
If it fails, the method can return one of the following error values:
E_POINTER |
DMUS_E_NOT_INIT |
DMUS_E_AUDIOPATHS_NOT_VALID |
DSERR_BUFFERLOST |
E_INVALIDARG |
E_OUTOFMEMORY |
The method fails with DSERR_BUFFERLOST if any application has initialized DirectSound with the write-primary cooperative level.
Header: Declared in dmusici.h.