IDirectMusicPerformance8::SetDefaultAudioPath

DirectMusic

Microsoft DirectX 9.0 SDK Update (Summer 2004)

IDirectMusicPerformance8::SetDefaultAudioPath

The SetDefaultAudioPath method sets and activates the default audiopath for the performance.

Syntax

HRESULT SetDefaultAudioPath(
  IDirectMusicAudioPath *pAudioPath
);

Parameters

pAudioPath

Pointer to the IDirectMusicAudioPath8 interface of the default audiopath, or NULL to remove the current default audiopath.

Return Values

If it succeeds, the method returns S_OK.

If it fails, the method can return one of the error values shown in the following table.

Return code
DMUS_E_AUDIOPATH_NOPORT
DMUS_E_AUDIOPATHS_NOT_VALID
DMUS_E_NOT_INIT
E_INVALIDARG
E_POINTER

Requirements

  Header: Declared in dmusici.h.

See Also


© 2004 Microsoft Corporation. All rights reserved.