/* * call-seq: * unpause -> self * * Unpause the Sound, if it is currently paused. Resumes from * where it was paused. See also #pause and #paused?. * * Returns:: The receiver (self). * * **NOTE**: Does nothing if the sound is not currently paused. * */ static VALUE rg_sound_unpause( 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) ) { Mix_Resume( channel ); } return self; }