nagachika/ruby-coreaudio — Issue #8: how to sync audio out?
Author: dturnbull
Created: 2012-02-24 18:35:37+00:00
State: open

Currently, I have your library caged inside some timings so I can detect a buffer overflow. I have to wait until a problem happens before I can take action. If I had visibility into the circular buffer then I could fill it up to-the-byte without much effort at all. Time complexity could be managed perfectly and Ruby is plenty capable of sub-millisecond accuracy with the right interface. The unreliable blocking detection I'm currently using is very likely to cause compatibility problems outside my laptop and I'm not sure how to make a solution that works for everyone unless I can manage the buffer myself.

What I need is the opposite of #dropped_frame. You can see what I'm doing now on my project:
https://github.com/ham21/radio/blob/master/lib/radio/signals/coreaudio.rb#L111-120