Microsoft DirectX 8.0 (Visual Basic)

DirectMusicPerformance8.SetDefaultAudioPath

パフォーマンスのデフォルト オーディオパスを設定してアクティブにする。

object.SetDefaultAudioPath( _
  AudioPath As DirectMusicAudioPath8)

指定項目

object
DirectMusicPerformance8 オブジェクトを指定する。
AudioPath
デフォルトのオーディオパスを指定する DirectMusicAudioPath8 オブジェクト。

エラー コード

失敗した場合は、エラーが発生する。Err.Number に次のいずれかの値が設定される。

DMUS_E_INVALIDARG
DMUS_E_AUDIOPATHS_NOT_VALID
DMUS_E_NOT_INIT