public SoundToPlay(string fileName, PlayMode playMode, int pitchShift, float volume = 1.0F) { this.soundFile = new SoundFile(fileName); this.playMode = playMode; this.pitchShiftInSemitones = pitchShift; this.volume = volume; }
public override bool Equals(object obj) { SoundFile other = obj as SoundFile; if (other == null) { return(false); } else { return(other.fileName == this.fileName); } }