lib/gamebox/core/sound_manager.rb
# plays the music based on the name with the specified volume level.
# will loop until SoundManager#stop_music is called.
# play_music :foo, :volume => 0.8  # play music at 80% volumne
plays the music based on the name with the specified volume level.
plays the music based on the name with the specified volume level .
def play_music(what, opts={})
    if @enabled && @music[what]
      volume = opts.delete :volume
      repeat = opts[:repeat]
      repeat ||= false
      @music[what].volume = volume if volume
      @music[what].play repeat
    end
  end
def play_music ( what , opts = { } ) if @enabled && @music [ what ] volume = opts . delete :volume repeat = opts [ :repeat ] repeat ||= false @music [ what ] . volume = volume if volume @music [ what ] . play repeat end end
plays the music based on the name with the specified volume level.
plays the music based on the name with the specified volume level .
what
<not_specific>
opts
<not_specific>