Stop() public method

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
return void
Beispiel #1
0
 /// <summary>
 /// Stops this <see cref="IAudioStreamImp" />.
 /// </summary>
 public void Stop()
 {
     if (IsStream)
     {
         _outputStream.Stop();
     }
     else
     {
         _outputSound.Stop();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Stop the sound.
 /// </summary>
 public void Stop()
 {
     sound.Stop();
 }