carl at personnelware.com
Tue Sep 1 15:10:30 UTC 2009
is sinks_.size() - 1 reliable?
mixer::sink_id mixer::add_sink(sink * sink)
// XXX We may want to be able to reuse sink slots.
return sinks_.size() - 1;
void mixer::remove_sink(sink_id id)
sinks_.at(id) = 0;
I think it would be good to keep track of the number of sinks. Once I
know how to do that, I am going to try hooking up the "record/stop"
indicator so that you can't record if there is no sink, and if the
last sink drops, flip the status back to 'stop'. I lost a talk
because I was trying to write to an external drive that wasn't
mounted, and didn't notice that dvsink-file had terminated. I lost 3
talks because I ran out of space.
More information about the dvswitch-devel