Audiokinetic Wwise Knowledge Base

Do all requests immediately get added to a queue, with all background processing occurring in a separate thread?

Yes, everything is occurring in a separate thread.
There are some exceptions, but they shouldn't be a problem:

  • Initialization and term functions of the sound engine are not thread safe and are blocking.
  • Functions like PostEvent(...), or SetRTPCValue( ... ) immediately add in a queue so it is processed in a different thread. The only case where they will block will be if the message queue is full and there is no available memory. You can set parameters to decide the maxmum allocated memory for this queue in the initialization settings of the sound engine. If the queue gets full, the function will block and an emergency RenderAudio is sent to the audio thread to start processing the message queue.
  • Functions of the SDK that are of type Query (defined in namespace AK::SoundEngine::Query) that allow the game to immediately query back information from the audio objects are blocking on some lock that may be held by the audiothread. Query functions are optional and should not be used in critical paths.

No message gets discarded in the message queue.




Article Details

Last Updated
22nd o February, 2010

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions (0 votes)

No users have voted.

How would you rate this answer?



Thank you for rating this answer.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Continue