summaryrefslogtreecommitdiffhomepage
path: root/test/audio.rb
diff options
context:
space:
mode:
authorTom Black <[email protected]>2018-12-02 01:34:29 -0800
committerTom Black <[email protected]>2018-12-12 00:04:19 -0800
commit0f52b2115a5f910ae4d3350f7400bb11622ea899 (patch)
tree843cfd6db52bb812116ebee1e7655a2ba0feed93 /test/audio.rb
parent80a2c9b1e14b5ed6a68107db407568e63547ac8d (diff)
downloadruby2d-0f52b2115a5f910ae4d3350f7400bb11622ea899.tar.gz
ruby2d-0f52b2115a5f910ae4d3350f7400bb11622ea899.zip
Remove current web backend
Preparing for WebAssembly
Diffstat (limited to 'test/audio.rb')
-rw-r--r--test/audio.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/test/audio.rb b/test/audio.rb
index 8a0e8f6..64e580c 100644
--- a/test/audio.rb
+++ b/test/audio.rb
@@ -1,15 +1,9 @@
require 'ruby2d'
-if RUBY_ENGINE == 'opal'
- media = "../test/media"
-else
- media = "media"
-end
-
set width: 300, height: 200, title: "Ruby 2D — Audio"
-snd = Sound.new("#{media}/sound.wav")
-mus = Music.new("#{media}/music.wav")
+snd = Sound.new('media/sound.wav')
+mus = Music.new('media/music.wav')
volume_bar = Rectangle.new(color: 'green', width: 300, height: 50)