/* * call-seq: * volume -> vol * * Return the volume level of the music. * 0.0 is totally silent, 1.0 is full volume. * * **NOTE**: Ignores fading in or out. * */ static VALUE rg_music_getvolume( VALUE self ) { RG_Music *music; Data_Get_Struct(self, RG_Music, music); return rb_float_new(music->volume); }