00001 #include "Amp.h" 00002 00003 Amp::Amp() : m_amplitude(1) 00004 { 00005 } 00006 00007 Amp::~Amp() 00008 { 00009 } 00010 00011 void Amp::SetAmplitude(float amp) 00012 { 00013 Lock l(this); 00014 cout << "Amplitude at " << amp << endl; 00015 m_amplitude = amp; 00016 } 00017 00018 void Amp::Process(jack_nframes_t count) 00019 { 00020 ISoundElement::Process(count); 00021 try { 00022 GetPipe() *= GetParameter("amplitude")->GetPipe(); 00023 } 00024 catch (...) {} 00025 GetPipe() *= m_amplitude; 00026 } 00027