Beispiel #1
0
        /// <summary>Constructor for wav files.</summary>
        public void loadWavFile(IModHelper helper, string songName, List <string> pathToWav)
        {
            WavSound wav = new WavSound(helper, songName, pathToWav);

            SimpleSoundManagerMod.ModMonitor.Log("Getting sound file:" + songName);
            try
            {
                this.sounds.Add(songName, wav);
            }
            catch { }
        }
Beispiel #2
0
        /// <summary>Constructor for wav files.</summary>
        public void loadWavFile(string soundName, string pathToWav)
        {
            WavSound wav = new WavSound(soundName, pathToWav);

            SimpleSoundManagerMod.ModMonitor.Log("Getting sound file:" + soundName);
            try
            {
                this.sounds.Add(soundName, wav);
            }
            catch { }
        }
Beispiel #3
0
        /// <summary>Constructor for wav files.</summary>
        public void loadWavFile(IModHelper helper, string soundName, string relativePath)
        {
            WavSound wav = new WavSound(helper, soundName, relativePath);

            SimpleSoundManagerMod.ModMonitor.Log("Getting sound file:" + soundName);
            try
            {
                this.sounds.Add(soundName, wav);
            }
            catch
            {
                //Sound already added so no need to worry?
            }
        }