Sha256: c1c27494eaa1231c1bd8ed1f84381e1458d0fe01bd768e2ffbcbff3de349870a
Contents?: true
Size: 473 Bytes
Versions: 5
Compression:
Stored size: 473 Bytes
Contents
require 'common.rb' # also test PlayAudio describe PlayMp3Audio do it "can play mp3 files" do a = PlayMp3Audio.new 'diesel.mp3' a.play_non_blocking puts 'non silence' sleep 1 a.stop puts 'silence' sleep 1 end it "can join" do a = PlayMp3Audio.new 'diesel.mp3' a.play_till_end end it "can play wav" do a = PlayAudio.new 'static.wav' a.start puts 'static' sleep 1 puts 'silence' a.stop sleep 1 end end
Version data entries
5 entries across 5 versions & 1 rubygems