\r
#include "oal_consumer.h"\r
\r
+#include <common/exception/exceptions.h>\r
#include <common/diagnostics/graph.h>\r
#include <common/log/log.h>\r
#include <common/utility/timer.h>\r
, container_(16)\r
, preroll_count_(0)\r
{\r
+ if(core::consumer_buffer_depth() < 3)\r
+ BOOST_THROW_EXCEPTION(invalid_argument() << msg_info("audio-consumer does not support buffer-depth lower than 3."));\r
+\r
graph_->add_guide("tick-time", 0.5);\r
graph_->set_color("tick-time", diagnostics::color(0.1f, 0.7f, 0.8f));\r
is_running_ = true;\r