Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

0 votes

base on Unity 5.6.6f2 , wwise 2017.2.6

AkSoundEngine.PrepareEvent( AkPreparationType.Preparation_Load, eventNameArray, numOfEvents ); < - - - work , ok

AkSoundEngine.PrepareEvent( AkPreparationType.Preparation_LoadAndDecode, eventNameArray, numOfEvents ); < - - - return Ak_Success , but still log error "Wwise: Media was not loaded for this source"

my question is " is there anyway to load single decoded media file instead of loading whole soundBank then decode it ?"

 

the description of prepareEvent and PreparationType :

https://www.audiokinetic.com/library/2017.2.9_6726/?source=SDK&id=namespace_a_k_1_1_sound_engine_a21e0dbb1f9aebfc22fdd88634dc1067b.html

https://www.audiokinetic.com/library/2017.2.9_6726/?source=SDK&id=namespace_a_k_1_1_sound_engine_a9acdc9745d7277f83131cdfff9b482ad.html#a9acdc9745d7277f83131cdfff9b482ad

 

in General Discussion by Yu-Wei Su (540 points)

1 Answer

0 votes
I found another way to achieve the same goal.

Use Conversion Settings to set the target media files uncompressed.

Use prepareEvent method to load uncompressed media file.

So we don't have to load a soundBank contains compressed media then try to decode the media files on loadinig. The format is already uncompressed when packaged into the soundBank.

By the way , if we want use the advantage of prepareEvent() to load single media file instead of all media files in a soundBanks , there are three options inside the soundBankEditor window , { Events , Structures , Media } , do not check the Media , leave the box empty.
by Yu-Wei Su (540 points)
edited by Yu-Wei Su
...