示例#1
0
 public bool IsPaused(int channel = -1)
 {
     if (channel == MusicChannel)
     {
         return(SDL_mixer.Mix_PausedMusic() == 1);
     }
     else
     {
         return(SDL_mixer.Mix_Paused(channel) == 1);
     }
 }
示例#2
0
 private bool IsPlaying() =>
 Channel >= 0 &&
 SDL_mixer.Mix_Playing(Channel) == 1 &&
 SDL_mixer.Mix_Paused(Channel) == 0;