Logo Search packages:      
Sourcecode: ultrastar-ng version File versions  Download package

bool CAudio::isPaused ( void   ) 

This method returns true if music is playing, but paused. Otherwise it returns false

Definition at line 226 of file audio.cpp.

References isPlaying().

Referenced by togglePause().

                            {
#ifdef USE_LIBXINE_AUDIO
      if (isPlaying()){
            int speed = xine_get_param(stream,XINE_PARAM_SPEED);
            if (speed == XINE_SPEED_PAUSE)
                  return true;
            return false;
      }
      else
            return false;
#endif
#ifdef USE_GSTREAMER_AUDIO
      return GST_STATE(music) ==  GST_STATE_PAUSED;
#endif
}


Generated by  Doxygen 1.6.0   Back to index