MCPcopy Create free account
hub / github.com/Yaafe/Yaafe / init

Method init

src_cpp/yaafe-components/audio/Envelope.cpp:91–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

StreamInfoClass · 0.85
addMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected