コード例 #1
0
ファイル: Sound.cs プロジェクト: konni-arcadia/MonoGame
		public void Pause()
		{		
			//HACK: Stopping or pausing NSSound is really slow (~200ms), don't if the sample is short :/
			if (Duration > 2) {
				_audioPlayer.Pause();
			}
		}
コード例 #2
0
 public void Pause()
 {
     //HACK: Stopping or pausing NSSound is really slow (~200ms), don't if the sample is short :/
     //Uncomment the if clause if you have trouble pausing sounds.
     //if (Duration > 2) {
     _audioPlayer.Pause();
     //}
 }
コード例 #3
0
 partial void PlayPause(NSObject sender)
 {
     if (isPaused)
     {
         sound.Resume();
         isPaused = false;
     }
     else
     {
         sound.Pause();
         isPaused = true;
     }
 }
コード例 #4
0
ファイル: Sound.cs プロジェクト: jfernandezrodriguez/MonoGame
 public void Pause()
 {
     _audioPlayer.Pause();
 }