module AudioStream::AudioObserver

Public Instance Methods

update(notification) click to toggle source
# File lib/audio_stream/audio_observer.rb, line 4
def update(notification)
  case notification.stat
  when AudioNotification::STAT_NEXT
    on_next(notification.input)
  when AudioNotification::STAT_COMPLETE
    on_complete
  end
end