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