sounder:在Mac上播放声音
发声器在Mac上播放声音安装将此行添加到应用程序的Gemfile中: gem 'sounder'然后执行: $ bundle或者自己安装: $ gem install sounder用法Sounder::System.set_volume 70 # 0-100 Sounder.play File.expand_path('../support/mysound.m4a', __FILE__) sound = Sounder::Sound.new "/path/to/audio/file" sound.play my_group = Sounder::SoundGroup.new( :sound_one => File.expand_path('../lib/support/sound1.m4a', __FILE__), "sound_two
文件列表
sounder-master.zip
(预估有个18文件)
sounder-master
Rakefile
28B
Gemfile
92B
spec
sounder
sound_spec.rb
641B
system_spec.rb
666B
soundboard_spec.rb
2KB
sound_group_spec.rb
2KB
sounder_spec.rb
251B
暂无评论