Method: Ray::AudioSource#volume

Defined in:
ext/audio_source.c

#volumeFloat

Returns Volume of the source, between 0 and 100.

Returns:

  • (Float)

    Volume of the source, between 0 and 100.



20
21
22
23
24
# File 'ext/audio_source.c', line 20

static
VALUE ray_audio_source_volume(VALUE self) {
  say_audio_source *source = ray_rb2audio_source(self);
  return rb_float_new(say_audio_source_get_volume(source));
}