Microsoft DirectX 8.1 (Visual Basic) |
The DSBPOSITIONNOTIFY type describes a notification position. Used by the DirectSoundSecondaryBuffer8.SetNotificationPositions and DirectSoundCaptureBuffer8.SetNotificationPositions methods.
Syntax
Type DSBPOSITIONNOTIFY
hEventNotify As Long
lOffset As Long
End Type
Members
hEventNotify
Handle to the event to signal when the offset has been reached. Obtain this handle by using the DirectX8.CreateEvent method.
lOffset
Offset from the beginning of the buffer where the notify event is to be triggered, or DSBPN_OFFSETSTOP. See Remarks.
Remarks
The DSBPN_OFFSETSTOP value in the lOffset member causes the event to be signaled when playback or capture stops, either because the end of the buffer has been reached and playback or capture is not looping, or because the application called the DirectSoundSecondaryBuffer8.Stop or DirectSoundCaptureBuffer8.Stop method.
When you use DSBCAPS_LOCDEFER and DSBCAPS_NOTIFY along with a voice management flag, a sound that has notifications set, but not yet reached, may be terminated by the voice manager. In this event, the notification event will not occur.