Class: AudioStream::AudioOutput
- Defined in:
- lib/audio_stream/audio_output.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ AudioOutput
constructor
A new instance of AudioOutput.
Methods inherited from AudioBus
#add, #on_complete, #on_next, #update
Methods included from AudioObservable
#fx, #mono, #notify_complete, #notify_next, #send_to, #stereo, #subscribe, #subscribe_on_next
Methods included from AudioObserver
Constructor Details
#initialize ⇒ AudioOutput
Returns a new instance of AudioOutput.
4 5 6 |
# File 'lib/audio_stream/audio_output.rb', line 4 def initialize super() end |
Class Method Details
.device(soundinfo:) ⇒ Object
12 13 14 |
# File 'lib/audio_stream/audio_output.rb', line 12 def self.device(soundinfo:) AudioOutputDevice.default_device(soundinfo: soundinfo) end |
.file(fname, soundinfo:) ⇒ Object
8 9 10 |
# File 'lib/audio_stream/audio_output.rb', line 8 def self.file(fname, soundinfo:) AudioOutputFile.new(fname, soundinfo: soundinfo) end |