class DXRubySDL::SoundEffect
Public Class Methods
new(time, wavetype = WAVE_RECT, resolution = 1000) { || ... }
click to toggle source
# File lib/dxruby_sdl/sound_effect.rb, line 4 def initialize(time, wavetype = WAVE_RECT, resolution = 1000) @time = time @time.times { yield } end
Public Instance Methods
add(wavetype = WAVE_RECT, resolution = 1000) { || ... }
click to toggle source
# File lib/dxruby_sdl/sound_effect.rb, line 10 def add(wavetype = WAVE_RECT, resolution = 1000) @time.times { yield } end
play()
click to toggle source
# File lib/dxruby_sdl/sound_effect.rb, line 14 def play end
stop()
click to toggle source
# File lib/dxruby_sdl/sound_effect.rb, line 17 def stop end