void director::start (base::conf_node& conf, const boost::filesystem::path& home_path) { m_config = &conf; m_filemgr.start (conf.child ("file_manager"), home_path); for (auto i = m_outdir.begin(); i != m_outdir.end(); ++i) { std::unique_ptr<output_director> od (i->second->create_output_director()); od->defaults(m_config->child (i->first)); } register_config(); m_info.sample_rate = conf.child ("sample_rate").get<int> (); m_info.num_channels = conf.child ("num_channels").get<int> (); m_info.block_size = conf.child ("block_size").get<int> (); m_world = new world (m_info); m_world->set_patcher (base::manage (new patcher_dynamic)); start_output (); }
void base_to(void) { log_debug("base_to loading..."); register_config("to", base_to_config, NULL); }
void base_file(void) { log_debug(ZONE,"base_file loading..."); register_config("file",base_file_config,NULL); }