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

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

            XACTAudio.AudioController.AddWaveBank(waveBank);

            return waveBank;
        }
예제 #2
0
 public void RemoveWaveBank(WaveBank bank)
 {
     WaveBanks.Remove(bank.Name);
 }
예제 #3
0
 public void AddWaveBank(WaveBank bank)
 {
     WaveBanks.Add(bank.Name, bank);
 }