Exemplo n.º 1
0
void vsx_param_sequence_list::dump_master_channels_to_command_list(vsx_command_list &savelist)
{
	//TODO: !!!
	for (std::map<vsx_string,void*>::iterator it = master_channel_map.begin(); it != master_channel_map.end(); it++)
	{
		//0=mseq_channel 1=inject 2=[channel_name] 3=[data like time;length;pool_name]
		savelist.add_raw(
					vsx_string("mseq_channel ")+  // 0
				  "inject "+ // 1
				  (*it).first+" "+ // 2
				  ((vsx_master_sequence_channel*)((*it).second))->dump()
		);
	}
}
Exemplo n.º 2
0
int vsx_engine_abs::i_load_state(vsx_command_list& load1,vsx_string *error_string, vsx_string info_filename)
{
  if (!valid) return 2;
  vsx_command_list load2,loadr2;
  load1.reset();
  vsx_command_s* mc = 0;
  // check the macro list to verify the existence of the componente we need for this macro
  //bool components_existing = true;
  vsx_string failed_component = "";
  while ( (mc = load1.get()) )
  {
    if (mc->cmd == "component_create")
    {
      // verify that the module is present and can be loaded
      if
      (
          !module_list->find( mc->parts[1] )
      )
      {
        failed_component = mc->parts[2];
        //components_existing = false;
        if (error_string) *error_string = "VSX Engine could not find or load module: "+mc->parts[1];
        printf( "%s\n",vsx_string(
                  "**************************************************\n"
                  "Notice: \n\tVSX Engine could not load module: "
                  "'"+mc->parts[1]+"'"
                  "\n\tThis prevented the project: \n\t\t'"+
                  info_filename+"'\n"+
                  "\tfrom loading.\n"
                  "\tThis is most likely from your GPU/drivers do not support some feature needed.\n"
                  "\tPlease consider upgrading your hardware or drivers.\n"
                  "\tIf you are a developer, this might mean some modules didn't compile properly.\n"
                  "**************************************************\n\n").c_str() );

        LOG3("Module missing in engine: "+mc->parts[1]);
        return 1;
      }
    }
  }
  static vsx_string sld("state_load_done");
  load1.add_raw(sld);
  load1.reset();
  //if (components_existing)
  {
    LOG("i_load_state: all modules are available, proceeding with load")

    LOG("stopping")
    stop();
    LOG("i_clear")
    i_clear();
    LOG("start()")

    //load2.add_raw("clear");
    //process_message_queue(&load2,&loadr2,true);
    start();
    LOG("i_load_state pre processing_message_queue")

    process_message_queue(&load1,&loadr2,true);
    LOG("i_load_state post processing_message_queue")
    load2.clear(true);
    loadr2.clear(true);
  }
  load1.clear(true);
  current_state = VSX_ENGINE_LOADING;
  g_timer.start();
  modules_loaded = 0;
  modules_left_to_load = 0;
  return 0;
}
Exemplo n.º 3
0
void load_desktop_a(vsx_string state_name = "") {
  internal_cmd_in.clear();
  internal_cmd_out.clear();
//  internal_cmd_out.add_raw(vsx_string("vsxu_welcome ")+vsx_string(vsxu_ver)+" 0");
}