/// <summary> /// Plays the sound that signals the start of a trial. /// </summary> internal void PlayStartSound() { if (startSoundPlayer != null) { SoundFactory.dimAllVolumes(true, startSoundPlayer); startSoundPlayer.Play(PlaybackCompleted); } }
/// <summary> /// Plays the sound that signals the beginning of a move to the starting location. /// </summary> internal void PlayMoveSound() { if (moveSoundPlayer != null) { SoundFactory.dimAllVolumes(true, moveSoundPlayer); moveSoundPlayer.Play(PlaybackCompleted); } }
/// <summary> /// Plays the sound that signals the end of a move to the direction of balance location. /// </summary> internal void PlayResetEndSound() { if (resetEndSoundPlayer != null) { SoundFactory.dimAllVolumes(true, resetEndSoundPlayer); resetEndSoundPlayer.Play(PlaybackCompleted); } }
/// <summary> /// Plays the sound that signals the end of a trial. /// </summary> internal void PlayEndSound() { if (endSoundPlayer != null) { SoundFactory.dimAllVolumes(true, endSoundPlayer); endSoundPlayer.Play(PlaybackCompleted); } }
/// <summary> /// Delegate method that is called when playback has completed /// </summary> private void PlaybackCompleted() { SoundFactory.dimAllVolumes(false, null); }