Skip to content

Minigame::SoundBuffer and Minigame::Sound

bggd edited this page Jan 23, 2016 · 1 revision
SoundBuffer.load(filepath)
# Class Attributes

Sound.volume=
Sound.volume

# Class Methods

Sound.new(sound_buffer)

Sound.suspend
Sound.resume

# Instance Attributes

sample = SoundBuffer.load("coin.wav")
sfx = Sound.new(sample)

sfx.volume=
sfx.volume

# Instance Methods

sfx.play

sfx.rewind
Clone this wiki locally