Ejemplo n.º 1
0
        public AKRESULT Initialize()
        {
            if (IsInitialized)
            {
                return(AKRESULT.AK_Success);
            }
            if (!AkSoundEngine.IsInitialized())
            {
                return(AKRESULT.AK_Fail);
            }
            switch (AudioInfluence.LoadTactics)
            {
            case AudioBnk_LoadTactics.LoadEntirely:
                break;

            default:
                break;
            }
            string[] assetNames = AudioUtil.GetBankAssetNamesByFolder(null);
            foreach (string bankName in assetNames)
            {
                bankAtomSet.Register(new BankLoadRequestStruct(bankName), true);
            }
            IsInitialized = true;
            return(AKRESULT.AK_Success);
        }
Ejemplo n.º 2
0
        public AKRESULT Initialize()
        {
            if (IsInitialized)
            {
                return(AKRESULT.AK_Success);
            }
            if (!AkSoundEngine.IsInitialized())
            {
                return(AKRESULT.AK_Fail);
            }
            string[] assetNames = AudioUtil.GetBankAssetNamesByFolder(null);
            foreach (string bankName in assetNames)
            {
                AKBankAtom atom = bankAtomSet.Register(bankName, AudioBank_LoadAction.Normal, AudioBank_LoadMode.Sync);
                bankAtomSet.DoLoadBank(atom, null);
            }

            IsInitialized = true;
            return(AKRESULT.AK_Success);
        }
Ejemplo n.º 3
0
        public AKRESULT Initialize()
        {
            if (IsInitialized)
            {
                return(AKRESULT.AK_Success);
            }
            if (!AkSoundEngine.IsInitialized())
            {
                return(AKRESULT.AK_Fail);
            }
            string[] assetNames = AudioUtil.GetBankAssetNamesByFolder(null);
            foreach (string bankName in assetNames)
            {
                if (bankName.StartsWith("Hall_") || bankName.StartsWith("Map_"))
                {
                    continue;
                }
                AKBankAtom atom = bankAtomSet.Register(bankName, AudioBank_LoadMode.Aync);
                bankAtomSet.DoLoadBank(atom);
            }

            IsInitialized = true;
            return(AKRESULT.AK_Success);
        }