Sha256: 46e69679ef14b245da06ccdeba9b564ed786eb1fc1905fe275935c38d52c212e
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 Bytes
Contents
#!/usr/bin/env ruby -w # Copyright (C) 2004-2007 Kouichirou Eto, All rights reserved. # License: Ruby License require File.dirname(__FILE__) + '/test_helper.rb' require 'sgl/bass' class TestSample < Test::Unit::TestCase TEST_FILENAME = "c:/WINDOWS/Media/start.wav" def test_0_simple_play bass = Bass::BassLib.instance samp = Bass::Sample.new(TEST_FILENAME) # test_play samp.play; sleep 0.05 # test_note [0, 2, 4, 5, 7, 9, 11, 12].each {|n| samp.play(60 + n); sleep 0.05 } # test_volume 10.times {|v| samp.play(60, v * 10); sleep 0.05 } # test_pan 10.times {|pos| samp.play(60, 100, pos * 20 - 100); sleep 0.05 } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sgl-0.4.0 | test/test_bass.rb |
sgl-1.0.0 | test/test_bass.rb |