/*
* call-seq:
* stopped? -> true or false
*
* True if the Sound is currently stopped (not playing or paused).
* See also #playing? and #paused?.
*
*/
static VALUE rg_sound_stoppedp( VALUE self )
{
RG_Sound *sound;
Data_Get_Struct(self, RG_Sound, sound);
int channel = sound->channel;
/* Make sure the sound actually belongs to the channel */
if( _rg_sound_channel_check(sound) )
{
/* Return true if it's not playing. */
if( !Mix_Playing(channel) )
{
return Qtrue;
}
else
{
return Qfalse;
}
}
else
{
/* If it's not on a channel... it can't be playing! */
return Qtrue;
}
}