Example #1
0
 /// <summary>
 /// Stops the Theme currently playing. Psai will keep silent for some time and then wake up with the Basic Mood that was triggered the last.
 /// </summary>
 /// <remarks>
 /// The period of time psai will remain silent can be authored per Basic Mood in the psai Editor. If you wish to override the default values,
 /// use the overridden version of GoToRest with additional parameters restTimeMin and restTimeMax.
 /// </remarks>
 /// <param name="immediately">True: Go to rest immediately by fading out. False: play an End-Segment</param>
 /// <param name="fadeOutSeconds">the fade-out time in seconds</param>
 /// <returns></returns>
 public PsaiResult GoToRest(bool immediately, float fadeOutSeconds)
 {
     return(m_logik.GoToRest(immediately, (int)(fadeOutSeconds * 1000)));
 }