/*
* call-seq:
* paused? -> true or false
*
* True if the Sound is currently paused (not playing or stopped).
* See also #playing? and #stopped?.
*
*/
static VALUE rg_sound_pausedp( 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 "playing" (not stopped), as well as paused. */
if( Mix_Playing(channel) && Mix_Paused(channel) )
{
return Qtrue;
}
else
{
return Qfalse;
}
}
else
{
return Qfalse;
}
}