| 89 | } |
| 90 | |
| 91 | bool Envelope::init(const ParameterMap& params, const Ports<StreamInfo>& inp) |
| 92 | { |
| 93 | assert(inp.size()==1); |
| 94 | const StreamInfo& in = inp[0].data; |
| 95 | |
| 96 | int decim = getIntParam("EnDecim",params); |
| 97 | m_context = new ComputingContext(in.sampleRate, in.size, decim); |
| 98 | |
| 99 | outStreamInfo().add(StreamInfo(in,m_context->m_envSize)); |
| 100 | return true; |
| 101 | } |
| 102 | |
| 103 | bool Envelope::process(Ports<InputBuffer*>& inp, Ports<OutputBuffer*>& outp) |
| 104 | { |
nothing calls this directly
no test coverage detected