Class: AudioStream::AudioOutput

Inherits:
AudioBus
  • Object
show all
Defined in:
lib/audio_stream/audio_output.rb

Direct Known Subclasses

AudioOutputDevice, AudioOutputFile

Class Method Summary collapse

Instance Method Summary collapse

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

#update

Constructor Details

#initializeAudioOutput

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