/* * call-seq: * paused? -> true or false * * True if the Music is currently paused (not playing or stopped). * See also #playing? and #stopped?. * */ static VALUE rg_music_pausedp( VALUE self ) { RG_Music *music; Data_Get_Struct(self, RG_Music, music); /* Check that the music is current. */ if( _rg_music_current_check(self) ) { /* Return true if it's "playing" (not stopped), as well as paused. */ if( Mix_PlayingMusic() && Mix_PausedMusic() ) { return Qtrue; } else { return Qfalse; } } else { return Qfalse; } }