#include <Amp.h>
Public Member Functions | |
Amp () | |
void | SetAmplitude (float amp) |
~Amp () | |
Protected Member Functions | |
void | Process (jack_nframes_t count) |
Private Attributes | |
float | m_amplitude |
Definition at line 14 of file Amp.h.
Amp::Amp | ( | ) |
void Amp::Process | ( | jack_nframes_t | count | ) | [protected, virtual] |
Reimplemented from ISoundElement.
Definition at line 18 of file Amp.cpp.
References ISoundElement::GetParameter(), ISoundElement::GetPipe(), and m_amplitude.
00019 { 00020 ISoundElement::Process(count); 00021 try { 00022 GetPipe() *= GetParameter("amplitude")->GetPipe(); 00023 } 00024 catch (...) {} 00025 GetPipe() *= m_amplitude; 00026 }
void Amp::SetAmplitude | ( | float | amp | ) |
Definition at line 11 of file Amp.cpp.
References m_amplitude.
Referenced by BOOST_PYTHON_MODULE().
00012 { 00013 Lock l(this); 00014 cout << "Amplitude at " << amp << endl; 00015 m_amplitude = amp; 00016 }
float Amp::m_amplitude [private] |