Exemple #1
0
        public IAsset Load(string name, string path, Dictionary<string, string> parameters, ContentManager manager)
        {
            var engine = XACTAudio.AudioController.Engine;

            var soundBank = new SoundBank()
            {
                Name = name,
                InnerSoundBank = new Microsoft.Xna.Framework.Audio.SoundBank(engine, manager.RootDirectory + @"\" + path)
            };

            XACTAudio.AudioController.AddSoundBank(soundBank);

            return soundBank;
        }
 public void RemoveSoundBank(SoundBank bank)
 {
     SoundBanks.Remove(bank.Name);
 }
 public void AddSoundBank(SoundBank bank)
 {
     SoundBanks.Add(bank.Name, bank);
 }