Esempio n. 1
0
SndObj::SndObj(SndObj& obj){
  m_output = NULL;
  SetVectorSize(obj.GetVectorSize());
  SetSr(obj.GetSr());

  for(int n=0; n<m_vecsize;n++)m_output[n]=obj.Output(n);
  m_input = obj.GetInput();
  m_error =0;

  m_msgtable = new msg_link;
  m_msgtable->previous = 0;
  AddMsg("SR", 1);
  AddMsg("vector size", 2);
  AddMsg("input", 3);
  Enable();
}
Esempio n. 2
0
SndObj::SndObj(SndObj& obj){

	m_vecsize = obj.GetVectorSize();
	m_vecpos = m_altvecpos = 0;
	if(!(m_output = new float[m_vecsize])){
		m_error = 1;
		cout << ErrorMessage();
		return;
	}
	
	for(int n=0; n<m_vecsize;n++)m_output[n]=obj.Output(n);
	m_input = obj.GetInput();
	m_sr = obj.GetSr();
	m_error =0;

	m_msgtable = new msg_link;
	m_msgtable->previous = 0;
	AddMsg("SR", 1);
	AddMsg("vector size", 2);
    AddMsg("input", 3);
    Enable();
	
}