示例#1
0
 /// <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);
     }
 }
示例#2
0
 /// <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);
     }
 }
示例#3
0
 /// <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);
     }
 }
示例#4
0
 /// <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);
     }
 }
示例#5
0
 /// <summary>
 /// Delegate method that is called when playback has completed
 /// </summary>
 private void PlaybackCompleted()
 {
     SoundFactory.dimAllVolumes(false, null);
 }