Class: AudioMixer::Sox::SoundServer
- Inherits:
-
Object
- Object
- AudioMixer::Sox::SoundServer
- Defined in:
- lib/audio_mixer/sox/sound_server.rb
Instance Method Summary collapse
-
#initialize(composition) ⇒ SoundServer
constructor
A new instance of SoundServer.
- #tick ⇒ Object
Constructor Details
#initialize(composition) ⇒ SoundServer
Returns a new instance of SoundServer.
5 6 7 8 9 |
# File 'lib/audio_mixer/sox/sound_server.rb', line 5 def initialize(composition) @composition = composition @sound_buffers = {} @timeouts = Hash.new(0) end |
Instance Method Details
#tick ⇒ Object
11 12 13 14 |
# File 'lib/audio_mixer/sox/sound_server.rb', line 11 def tick cache_sounds play_sounds end |