Version

    Other Documentation

menu_open
Wwise SDK 2021.1.14

◆ CreateAuto() [3/3]

virtual AKRESULT AK::IAkStreamMgr::CreateAuto ( void *  in_pBuffer,
AkUInt64  in_uSize,
const AkAutoStmHeuristics in_heuristics,
IAkAutoStream *&  out_pStream 
)
pure virtual

Create an automatic stream (in-memory buffer overload).

This overload differs largely from CreateAuto() implementations, which are file based. This version is provided with a memory space and the resulting automatic stream will simply return the memory space in a similar fashion, but without the need to perform any actual file operations.

If you are in the process of implementing your own IAkStreamMgr object, consider using the initial implementation from \\SDK\\source\\StreamManager\\Common\\AkStreamMgr.cpp.

Returns
AK_Success if the stream was created successfully
Remarks
The stream needs to be started explicitly with IAkAutoStream::Start().
See also
Parameters
in_pBuffer Pointer to the memory area containing stream data
in_uSize Size of the memory area containing stream data
in_heuristics Streaming heuristics
out_pStream Returned interface to an automatic stream. If the function does not return AK_Success, this pointer is left untouched.

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