Microsoft DirectX 8.0 (C++) |
Creates an audiopath object that represents the stages in data flow from the performance to DirectSound buffers.
HRESULT CreateAudioPath( IUnknown *pSourceConfig, BOOL fActivate, IDirectMusicAudioPath **ppNewPath );
If the method succeeds, the return value is S_OK.
If it fails, the method can return one of the following error values.
E_NOINTERFACE |
E_POINTER |
DMUS_E_NOT_INIT |
DMUS_E_AUDIOPATHS_NOT_VALID |
DSERR_BUFFERLOST |
E_OUTOFMEMORY |
The object addressed by pSourceConfig can be obtained from a segment by using the IDirectMusicSegment8::GetAudioPathConfig method or can be loaded directly from a file.
The method fails with DSERR_BUFFERLOST if any application has initialized DirectSound with the write-primary cooperative level.
If the audiopath configuration specifies a sound device that is not available, the method returns E_NOINTERFACE.
Header: Declared in dmusici.h.