PrepareBank() public static method

public static PrepareBank ( PreparationType in_PreparationType, string in_pszString ) : AKRESULT
in_PreparationType PreparationType
in_pszString string
return AKRESULT
Ejemplo n.º 1
0
 /// Unloads a bank.
 public override void UnloadBank()
 {
     if (decodeBank && !saveDecodedBank)
     {
         AkSoundEngine.PrepareBank(PreparationType.Preparation_Unload, m_BankID);
     }
     else
     {
         base.UnloadBank();
     }
 }
Ejemplo n.º 2
0
 /// Unloads a bank.
 public override AKRESULT UnloadBank()
 {
     if (decodeBank && !saveDecodedBank)
     {
         return(AkSoundEngine.PrepareBank(AkPreparationType.Preparation_Unload, m_BankID));
     }
     else
     {
         return(base.UnloadBank());
     }
 }
Ejemplo n.º 3
0
 /// Unloads a bank.
 public override void UnloadBank(bool remove = true)
 {
     if (decodeBank && !saveDecodedBank)
     {
         AkSoundEngine.PrepareBank(AkPreparationType.Preparation_Unload, m_BankID);
     }
     else
     {
         base.UnloadBank(remove);
     }
 }
Ejemplo n.º 4
0
    static public void DoUnloadBanks()
    {
        foreach (AkBankHandle bank in BanksToUnload)
        {
            if (bank.decodeBank == true && bank.saveDecodedBank == false)
            {
                AkSoundEngine.PrepareBank(PreparationType.Preparation_Unload, bank.m_BankID);
            }
            else
            {
                AkSoundEngine.UnloadBank(bank.m_BankID, IntPtr.Zero, null, null);
            }
        }

        BanksToUnload.Clear();
    }
Ejemplo n.º 5
0
    static public void DoUnloadBanks()
    {
        int count = BanksToUnload.Count;

        for (int i = 0; i < count; ++i)
        {
            var bank = BanksToUnload[i];
            if (bank.decodeBank == true && bank.saveDecodedBank == false)
            {
                AkSoundEngine.PrepareBank(PreparationType.Preparation_Unload, bank.m_BankID);
            }
            else
            {
                AkSoundEngine.UnloadBank(bank.m_BankID, IntPtr.Zero, null, null);
            }
        }

        BanksToUnload.Clear();
    }