Table of Contents

Wwise SDK 2018.1.11

◆ SetPosition()

virtual AKRESULT AK::IAkAutoStream::SetPosition ( AkInt64  in_iMoveOffset,
AkMoveMethod  in_eMoveMethod,
AkInt64 out_piRealOffset 
)
pure virtual

Set the stream's position. The next call to AK::IAkAutoStream::GetBuffer() will grant data that corresponds to the position specified here.

Remarks
Data already streamed into the Stream Manager's memory might be flushed.
The new position will round down to the low-level I/O block size.
Returns
AK_Success if the resulting position is valid
See also
Parameters
in_iMoveOffset Seek offset
in_eMoveMethod Seek method, from the beginning, end or current file position
out_piRealOffset The actual seek offset may differ from the expected value when the low-level's block size is greater than 1. In that case, the real absolute position rounds down to the block boundary. Can pass NULL.