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(); }
int SndObj::Set(const char* mess, double value){ switch (FindMsg(mess)){ case 1: SetSr(value); return 1; case 2: SetVectorSize((int) value); return 1; default: return 0; } }
int HiPass::Set(char* mess, float value){ switch (FindMsg(mess)){ case 21: SetFreq(value); return 1; case 23: SetSr(value); return 1; default: return SndObj::Set(mess,value); } }
int DelayLine::Set(char* mess, float value){ switch (FindMsg(mess)){ case 21: SetDelayTime(value); return 1; case 1: SetSr(value); return 1; default: return SndObj::Set(mess,value); } }