Class: PlayAudio
- Inherits:
-
Object
- Object
- PlayAudio
- Defined in:
- lib/play_audio.rb
Class Method Summary collapse
Class Method Details
.play(filename) ⇒ Object
6 7 8 9 10 |
# File 'lib/play_audio.rb', line 6 def self.play filename i = java.io.FileInputStream.new(filename) a = AudioStream.new(i) AudioPlayer.player.start(a) end |