Module: DXRubySDL::Sound::Common

Defined in:
lib/dxruby_sdl/sound.rb

Instance Method Summary collapse

Instance Method Details

#dxruby_volume_to_sdl_volume(volume) ⇒ Object



15
16
17
# File 'lib/dxruby_sdl/sound.rb', line 15

def dxruby_volume_to_sdl_volume(volume)
  (volume * MAX_SDL_VOLUME.to_f / MAX_DXRUBY_VOLUME).round
end