Module: EasyAudio
- Defined in:
- lib/easy_audio.rb
Overview
Easy Audio is a library to simplify the Portaudio interface
Defined Under Namespace
Modules: Waveforms Classes: EasyStream, Stream, StreamPacket
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
-
.easy_open(opts = {}) { ... } ⇒ Object
Quickly opens an EasyStream and calls Stream#start.
-
.open(opts = {}) {|buffer| ... } ⇒ Object
Quickly opens a Stream and calls Stream#start.
Class Method Details
.easy_open(opts = {}) { ... } ⇒ Object
Quickly opens an EasyStream and calls EasyAudio::Stream#start.
218 219 220 |
# File 'lib/easy_audio.rb', line 218 def easy_open(opts = {}, &block) EasyStream.new(opts, &block).tap {|s| s.start } end |
.open(opts = {}) {|buffer| ... } ⇒ Object
Quickly opens a Stream and calls EasyAudio::Stream#start.
202 203 204 |
# File 'lib/easy_audio.rb', line 202 def open(opts = {}, &block) Stream.new(opts, &block).tap {|s| s.start } end |