MCPcopy Create free account
hub / github.com/LabSound/LabSound / initPure

Method initPure

src/extended/PdNode.cpp:101–122  ·  view source on GitHub ↗

return true on successful initialization

Source from the content-addressed store, hash-verified

99
100// return true on successful initialization
101bool PdNode::PdNodeInternal::initPure(const int numInChannels, const int numOutChannels,
102 const int sampleRate, const int ticksPerBuffer)
103{
104
105 if (!pd.init(numInChannels, numOutChannels, sampleRate))
106 {
107 return false;
108 }
109 blockSizeAsLog = log2int(libpd_blocksize());
110
111 // subscribe to receive source names
112 pd.subscribe("toOF");
113 pd.subscribe("env");
114
115 // add the data/pd folder to the search path
116 pd.addToSearchPath("pd");
117
118 // audio processing on
119 pd.computeAudio(true);
120
121 return true;
122}
123
124//--------------------------------------------------------------
125void PdNode::PdNodeInternal::print(const std::string & message)

Callers 1

PdNodeMethod · 0.80

Calls 1

log2intFunction · 0.85

Tested by

no test coverage detected