/* * call-seq: * playing? -> true or false * * True if the Music is currently playing (not paused or stopped). * See also #paused? and #stopped?. * */ static VALUE rg_music_playingp( 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 music is playing, but not paused. */ if( Mix_PlayingMusic() && !Mix_PausedMusic() ) { return Qtrue; } else { return Qfalse; } } else { return Qfalse; } }