DirectX SDK |
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)
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 |