module DXRubySDL::Sound::Common
Constants
- MAX_DXRUBY_VOLUME
- MAX_SDL_VOLUME
Public Instance Methods
dxruby_volume_to_sdl_volume(volume)
click to toggle source
# File lib/dxruby_sdl/sound.rb, line 14 def dxruby_volume_to_sdl_volume(volume) (volume * MAX_SDL_VOLUME.to_f / MAX_DXRUBY_VOLUME).round end