using System.IO; using Microsoft.Xna.Framework.Audio; using StardewModdingAPI; using StardewValley; namespace SimpleSoundManager { public class XACTMusicPair { public WaveBank waveBank; public ISoundBank soundBank; /// Create a xwb and xsb music pack pair. /// The mod helper from the mod that will handle loading in the file. /// A relative path to the .xwb file in the mod helper's mod directory. /// A relative path to the .xsb file in the mod helper's mod directory. public XACTMusicPair(IModHelper helper, string wavBankPath, string soundBankPath) { wavBankPath = Path.Combine(helper.DirectoryPath, wavBankPath); soundBankPath = Path.Combine(helper.DirectoryPath, soundBankPath); this.waveBank = new WaveBank(Game1.audioEngine, wavBankPath); this.soundBank = new SoundBankWrapper(new SoundBank(Game1.audioEngine, soundBankPath)); } } }