Version

menu_open
Wwise SDK 2019.2.15

◆ 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.

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise