Beispiel #1
0
 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;
 }
Beispiel #2
0
        public override bool Equals(object obj)
        {
            SoundFile other = obj as SoundFile;

            if (other == null)
            {
                return(false);
            }
            else
            {
                return(other.fileName == this.fileName);
            }
        }