Microsoft DirectX 8.0 (Visual Basic) |
Sets the position of the play cursor.
object.SetCurrentPosition(newPosition As Long)
If the method fails, an error is raised and Err.Number may be set to one of the following error values
DSERR_INVALIDCALL |
DSERR_INVALIDPARAM |
DSERR_PRIOLEVELNEEDED |
If the buffer is playing, the cursor immediately moves to the new position and play continues from that point. If it is not playing, playback will begin from the new position the next time the DirectSoundSecondaryBuffer8.Play method is called.
DirectSoundSecondaryBuffer8.GetCurrentPosition,Play and Write Cursors