/// <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 { } }
/// <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 { } }
/// <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? } }