menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票

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

 

分类:General Discussion | 用户: Yu-Wei Su (540 分)

1个回答

0 投票
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.
用户: Yu-Wei Su (540 分)
修改于 用户:Yu-Wei Su
...