DirectX SDK

DirectSoundCaptureBuffer.SetNotificationPositions

The DirectSoundCaptureBuffer.SetNotificationPositions method sets the notification positions. During capture, whenever the position reaches an offset specified in one of the DSBPOSITIONNOTIFY types in the caller-supplied array, the associated event will be signaled. The position tracked in playback is the current play position; in capture it is the current read position.

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

Parameters

object
Object expression that resolves to a DirectSoundCaptureBuffer object.
nElements
The number of DSBPOSITIONNOTIFY types in the psa() array.
psa()
An array of DSBPOSITIONNOTIFY types.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following error codes:

DSERR_BUFFERLOST
DSERR_INVALIDCALL
DSERR_INVALIDPARAM
DSERR_PRIOLEVELNEEDED