Sha256: 5083d74edfa0c9f86b0ff9837de7a2269dae3daf1dbcfd31b54b501d72e86110
Contents?: true
Size: 719 Bytes
Versions: 2
Compression:
Stored size: 719 Bytes
Contents
Shoes.app do boing = sound("./samples/sounds/61847__simon-rue__boink-v3.wav") fog_horn = sound("./samples/sounds/145622__andybrannan__train-fog-horn-long-wyomming.aiff") explosion = sound("./samples/sounds/102719__sarge4267__explosion.mp3") shields = sound("./samples/sounds/46492__phreaksaccount__shields1.ogg") # Set up three buttons button "Boing WAV (740ms)" do puts "Boing clicked" boing.play end @two = button "Fog Horn AIFF (18.667s)" do puts "Fog Horn clicked" fog_horn.play end button "Explosion MP3 (4.800s)" do puts "Explosion clicked" explosion.play end button "Shields UP! OGG (2.473s)" do puts "Shields clicked" shields.play end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre2 | samples/simple-sound.rb |
shoes-4.0.0.pre1 | samples/simple-sound.rb |