Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

0 votes
void FAkAudioModule::StartupModule()

{

if (AkAudioModuleIntance)

return;

 

AkAudioModuleIntance = this;

 

#if WITH_EDITOR

FAssetRegistryModule& AssetRegistryModule = FModuleManager::LoadModuleChecked<FAssetRegistryModule>(TEXT("AssetRegistry"));

auto initBankPath = FString::Printf(TEXT("%s/InitBank"), *AkUnrealHelper::GetBaseAssetPackagePath());

FString initBankFileName;

TArray<FString> paths;

if (FPackageName::TryConvertLongPackageNameToFilename(initBankPath, initBankFileName, FPackageName::GetAssetPackageExtension()))

{

paths.Add(initBankFileName);

}

AssetRegistryModule.Get().ScanFilesSynchronous(paths, false);

#endif

 

AkAudioDevice = new FAkAudioDevice;

if (!AkAudioDevice)

return;

 

FAkWaapiClient::Initialize();

if (!AkAudioDevice->Init())

{

delete AkAudioDevice;

AkAudioDevice = nullptr;

return;

}

 

OnTick = FTickerDelegate::CreateRaw(AkAudioDevice, &FAkAudioDevice::Update);

TickDelegateHandle = FTicker::GetCoreTicker().AddTicker(OnTick);

 

FAkWaapiClient::Initialize();

FAkAudioStyle::Initialize();

}
in General Discussion by tomes c. (100 points)
recategorized by Guillaume R. (Audiokinetic)

Please sign-in or register to answer this question.

...