Platform SDK: DirectX

DirectSoundCaptureBuffer.SetNotificationPositions

DirectSoundCaptureBuffer.SetNotificationPositions メソッドは、通知イベントがシグナル送信されるバッファの位置を設定する。現在の読み込み位置が通知位置に到達すると、イベントがシグナル送信される。

object.SetNotificationPositions(nElements As Long, _
    psa() As DSBPOSITIONNOTIFY)

パラメータ

object
DirectSoundCaptureBuffer オブジェクトを表すオブジェクト式。
nElements
psa 配列の要素数。
psa
DSBPOSITIONNOTIFY 型の配列。

エラー コード

失敗すればエラーが発生し、Err.Number に次のいずれかのエラー コードが設定される。

DSERR_BUFFERLOST
DSERR_INVALIDCALL
DSERR_INVALIDPARAM
DSERR_PRIOLEVELNEEDED

参照

DirectSoundCaptureBuffer.GetCurrentPosition