Pause() public method

Pause the sound. This function pauses the sound if it was playing, otherwise (sound already paused or stopped) it has no effect.
public Pause ( ) : void
return void
Beispiel #1
0
 /// <summary>
 /// Pauses this <see cref="IAudioStreamImp" />.
 /// </summary>
 public void Pause()
 {
     if (IsStream)
     {
         _outputStream.Pause();
     }
     else
     {
         _outputSound.Pause();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Pause the sound.
 /// </summary>
 public void Pause()
 {
     sound.Pause();
 }