Platform SDK: DirectX |
The DirectSoundBuffer.SetCurrentPosition method moves the current play position in the buffer.
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 |
This method cannot be called on primary sound buffers.
If the buffer is already playing, it immediately moves to the new position and continues. If it is not playing, it begins from the new position the next time the DirectSoundBuffer.Play method is called.