Stop() public méthode

Stop playing the sound. This function stops the sound if it was playing or paused, and does nothing if it was already stopped. It also resets the playing position (unlike pause()).
public Stop ( ) : void
Résultat void
Exemple #1
0
 /// <summary>
 /// Stops this <see cref="IAudioStreamImp" />.
 /// </summary>
 public void Stop()
 {
     if (IsStream)
     {
         _outputStream.Stop();
     }
     else
     {
         _outputSound.Stop();
     }
 }
Exemple #2
0
 /// <summary>
 /// Stop the sound.
 /// </summary>
 public void Stop()
 {
     sound.Stop();
 }